#include <EthernetSocketTable.h>
◆ ~EthernetSocketTable()
| inet::EthernetSocketTable::~EthernetSocketTable |
( |
| ) |
|
|
virtual |
◆ addSocket()
| void inet::EthernetSocketTable::addSocket |
( |
int |
socketId, |
|
|
MacAddress |
localAddress, |
|
|
MacAddress |
remoteAddress, |
|
|
const Protocol * |
protocol, |
|
|
bool |
steal |
|
) |
| |
|
virtual |
38 throw cRuntimeError(
"Socket already added");
39 Socket *socket =
new Socket(socketId);
40 socket->localAddress = localAddress;
41 socket->remoteAddress = remoteAddress;
43 socket->steal = steal;
◆ findSockets()
60 std::vector<EthernetSocketTable::Socket *> result;
62 auto socket = it.second;
63 if (!socket->localAddress.isUnspecified() && !localAddress.isBroadcast() && localAddress != socket->localAddress)
65 if (!socket->remoteAddress.isUnspecified() && !remoteAddress.isBroadcast() && remoteAddress != socket->remoteAddress)
67 if (socket->protocol !=
nullptr &&
protocol != socket->protocol)
69 result.push_back(socket);
◆ initialize()
| void inet::EthernetSocketTable::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
◆ removeSocket()
| void inet::EthernetSocketTable::removeSocket |
( |
int |
socketId | ) |
|
|
virtual |
55 throw cRuntimeError(
"Socket not found");
◆ socketIdToSocketMap
| std::map<int, Socket *> inet::EthernetSocketTable::socketIdToSocketMap |
|
protected |
The documentation for this class was generated from the following files: