#include <TcpClientSocketIo.h>
◆ ~TcpClientSocketIo()
| virtual inet::TcpClientSocketIo::~TcpClientSocketIo |
( |
| ) |
|
|
inlinevirtual |
◆ handleMessage()
| void inet::TcpClientSocketIo::handleMessage |
( |
cMessage * |
message | ) |
|
|
overrideprotectedvirtual |
34 if (message->arrivedOn(
"socketIn")) {
38 else if (message->arrivedOn(
"trafficIn")) {
41 socket->
send(check_and_cast<Packet *>(message));
44 throw cRuntimeError(
"Unknown message");
◆ open()
| void inet::TcpClientSocketIo::open |
( |
| ) |
|
|
protectedvirtual |
22 const char *localAddress = par(
"localAddress");
23 int localPort = par(
"localPort");
24 socket->
bind(*localAddress ? L3AddressResolver().resolve(localAddress) : L3Address(), localPort);
25 const char *connectAddress = par(
"connectAddress");
26 int connectPort = par(
"connectPort");
27 L3Address destination;
28 L3AddressResolver().tryResolve(connectAddress, destination);
Referenced by handleMessage().
◆ socketAvailable()
◆ socketClosed()
| virtual void inet::TcpClientSocketIo::socketClosed |
( |
TcpSocket * |
socket | ) |
|
|
inlineoverridevirtual |
◆ socketDataArrived()
| void inet::TcpClientSocketIo::socketDataArrived |
( |
TcpSocket * |
socket, |
|
|
Packet * |
packet, |
|
|
bool |
urgent |
|
) |
| |
|
overridevirtual |
Notifies about data arrival, packet ownership is transferred to the callee.
Implements inet::TcpSocket::ICallback.
49 packet->removeTag<SocketInd>();
50 send(packet,
"trafficOut");
◆ socketDeleted()
| virtual void inet::TcpClientSocketIo::socketDeleted |
( |
TcpSocket * |
socket | ) |
|
|
inlineoverridevirtual |
◆ socketEstablished()
| virtual void inet::TcpClientSocketIo::socketEstablished |
( |
TcpSocket * |
socket | ) |
|
|
inlineoverridevirtual |
◆ socketFailure()
| virtual void inet::TcpClientSocketIo::socketFailure |
( |
TcpSocket * |
socket, |
|
|
int |
code |
|
) |
| |
|
inlineoverridevirtual |
◆ socketPeerClosed()
| virtual void inet::TcpClientSocketIo::socketPeerClosed |
( |
TcpSocket * |
socket | ) |
|
|
inlineoverridevirtual |
◆ socketStatusArrived()
◆ socket
| TcpSocket* inet::TcpClientSocketIo::socket = nullptr |
|
protected |
The documentation for this class was generated from the following files: