#include <ExtTCPSocketMap.h>
Public Member Functions |
virtual TCPSocket * | findSocketFor (IPvXAddress remoteAddress, int remotePort) |
| Member function to find the TCPSocket by the remote address and port.
|
virtual TCPSocket * | findSocketFor (cMessage *msg) |
| Member function to find the TCPSocket by an incoming tcp message.
|
virtual TCPSocket * | findSocketFor (int connId) |
| Member function to find the TCPSocket by a connection ID given.
|
Detailed Description
Definition at line 30 of file ExtTCPSocketMap.h.
Member Function Documentation
TCPSocket * ExtTCPSocketMap::findSocketFor |
( |
IPvXAddress |
remoteAddress, |
|
|
int |
remotePort |
|
) |
| |
|
virtual |
virtual TCPSocket* ExtTCPSocketMap::findSocketFor |
( |
cMessage * |
msg | ) |
|
|
inlinevirtual |
Member function to find the TCPSocket by an incoming tcp message.
- Parameters
-
- Returns
- The TCPSocket object of the connection wich msg belongs to
Definition at line 50 of file ExtTCPSocketMap.h.
TCPSocket * ExtTCPSocketMap::findSocketFor |
( |
int |
connId | ) |
|
|
virtual |
Member function to find the TCPSocket by a connection ID given.
- Parameters
-
connId | integer ID of an connection |
- Returns
- The TCPSocket object of the connection with connection ID connId
Definition at line 40 of file ExtTCPSocketMap.cc.
{
SocketMap::iterator i = socketMap.find(connId);
ASSERT(i==socketMap.end() || i->first==i->second->getConnectionId());
return (i==socketMap.end()) ? NULL : i->second;
}
The documentation for this class was generated from the following files: