#include <TcpServerSocketIo.h>
◆ ~TcpServerSocketIo()
| virtual inet::TcpServerSocketIo::~TcpServerSocketIo |
( |
| ) |
|
|
inlinevirtual |
◆ acceptSocket()
20 socket =
new TcpSocket(availableInfo);
◆ getSocket()
| virtual TcpSocket* inet::TcpServerSocketIo::getSocket |
( |
| ) |
|
|
inlinevirtual |
◆ handleMessage()
| void inet::TcpServerSocketIo::handleMessage |
( |
cMessage * |
message | ) |
|
|
overrideprotectedvirtual |
28 if (message->arrivedOn(
"socketIn")) {
32 else if (message->arrivedOn(
"trafficIn"))
33 socket->
send(check_and_cast<Packet *>(message));
35 throw cRuntimeError(
"Unknown message");
◆ socketAvailable()
◆ socketClosed()
| virtual void inet::TcpServerSocketIo::socketClosed |
( |
TcpSocket * |
socket | ) |
|
|
inlineoverridevirtual |
◆ socketDataArrived()
| void inet::TcpServerSocketIo::socketDataArrived |
( |
TcpSocket * |
socket, |
|
|
Packet * |
packet, |
|
|
bool |
urgent |
|
) |
| |
|
overridevirtual |
Notifies about data arrival, packet ownership is transferred to the callee.
Implements inet::TcpSocket::ICallback.
40 packet->removeTag<SocketInd>();
41 send(packet,
"trafficOut");
◆ socketDeleted()
| virtual void inet::TcpServerSocketIo::socketDeleted |
( |
TcpSocket * |
socket | ) |
|
|
inlineoverridevirtual |
◆ socketEstablished()
| virtual void inet::TcpServerSocketIo::socketEstablished |
( |
TcpSocket * |
socket | ) |
|
|
inlineoverridevirtual |
◆ socketFailure()
| virtual void inet::TcpServerSocketIo::socketFailure |
( |
TcpSocket * |
socket, |
|
|
int |
code |
|
) |
| |
|
inlineoverridevirtual |
◆ socketPeerClosed()
| virtual void inet::TcpServerSocketIo::socketPeerClosed |
( |
TcpSocket * |
socket | ) |
|
|
inlineoverridevirtual |
◆ socketStatusArrived()
◆ socket
| TcpSocket* inet::TcpServerSocketIo::socket = nullptr |
|
protected |
The documentation for this class was generated from the following files: