28 SocketMap::iterator i = socketMap.begin();
29 while (i != socketMap.end()) {
30 if (i->second->getRemoteAddress().equals(remoteAddress)) {
31 if (i->second->getRemotePort() == remotePort) {
42 SocketMap::iterator i = socketMap.find(connId);
43 ASSERT(i==socketMap.end() || i->first==i->second->getConnectionId());
44 return (i==socketMap.end()) ? NULL : i->second;