Abstract base class for server processes to be used with TCPSrvHostApp.
More...
#include <TCPSrvHostApp.h>
|
virtual void | socketDataArrived (int, void *, cPacket *msg, bool urgent) override |
|
virtual void | socketEstablished (int, void *) override |
|
virtual void | socketPeerClosed (int, void *) override |
|
virtual void | socketClosed (int, void *) override |
|
virtual void | socketFailure (int, void *, int code) override |
|
virtual void | socketStatusArrived (int, void *, TCPStatusInfo *status) override |
|
Abstract base class for server processes to be used with TCPSrvHostApp.
Subclasses need to be registered using the Register_Class() macro.
- See also
- TCPSrvHostApp
inet::TCPServerThreadBase::TCPServerThreadBase |
( |
| ) |
|
|
inline |
TCPSrvHostApp * hostmod
Definition: TCPSrvHostApp.h:65
TCPSocket * sock
Definition: TCPSrvHostApp.h:66
virtual inet::TCPServerThreadBase::~TCPServerThreadBase |
( |
| ) |
|
|
inlinevirtual |
virtual void inet::TCPServerThreadBase::cancelEvent |
( |
cMessage * |
msg | ) |
|
|
inlinevirtual |
TCPSrvHostApp * hostmod
Definition: TCPSrvHostApp.h:65
virtual void inet::TCPServerThreadBase::closed |
( |
| ) |
|
|
inlinevirtual |
TCPSrvHostApp * hostmod
Definition: TCPSrvHostApp.h:65
virtual void removeThread(TCPServerThreadBase *thread)
Definition: TCPSrvHostApp.cc:89
virtual void inet::TCPServerThreadBase::dataArrived |
( |
cMessage * |
msg, |
|
|
bool |
urgent |
|
) |
| |
|
pure virtual |
virtual void inet::TCPServerThreadBase::established |
( |
| ) |
|
|
pure virtual |
virtual void inet::TCPServerThreadBase::failure |
( |
int |
code | ) |
|
|
inlinevirtual |
TCPSrvHostApp * hostmod
Definition: TCPSrvHostApp.h:65
virtual void removeThread(TCPServerThreadBase *thread)
Definition: TCPSrvHostApp.cc:89
virtual TCPSrvHostApp* inet::TCPServerThreadBase::getHostModule |
( |
| ) |
|
|
inlinevirtual |
TCPSrvHostApp * hostmod
Definition: TCPSrvHostApp.h:65
virtual TCPSocket* inet::TCPServerThreadBase::getSocket |
( |
| ) |
|
|
inlinevirtual |
virtual void inet::TCPServerThreadBase::peerClosed |
( |
| ) |
|
|
inlinevirtual |
virtual TCPSocket * getSocket()
Definition: TCPSrvHostApp.h:87
void close()
Closes the local end of the connection.
Definition: TCPSocket.cc:192
virtual void inet::TCPServerThreadBase::scheduleAt |
( |
simtime_t |
t, |
|
|
cMessage * |
msg |
|
) |
| |
|
inlinevirtual |
Schedule an event.
Do not use getContextPointer() of cMessage, because TCPServerThreadBase uses it for its own purposes.
98 { msg->setContextPointer(
this);
hostmod->scheduleAt(t, msg); }
TCPSrvHostApp * hostmod
Definition: TCPSrvHostApp.h:65
virtual void inet::TCPServerThreadBase::socketClosed |
( |
int |
, |
|
|
void * |
|
|
) |
| |
|
inlineoverrideprotectedvirtual |
virtual void inet::TCPServerThreadBase::socketDataArrived |
( |
int |
, |
|
|
void * |
, |
|
|
cPacket * |
msg, |
|
|
bool |
urgent |
|
) |
| |
|
inlineoverrideprotectedvirtual |
virtual void inet::TCPServerThreadBase::socketEstablished |
( |
int |
, |
|
|
void * |
|
|
) |
| |
|
inlineoverrideprotectedvirtual |
virtual void inet::TCPServerThreadBase::socketFailure |
( |
int |
, |
|
|
void * |
, |
|
|
int |
code |
|
) |
| |
|
inlineoverrideprotectedvirtual |
virtual void inet::TCPServerThreadBase::socketPeerClosed |
( |
int |
, |
|
|
void * |
|
|
) |
| |
|
inlineoverrideprotectedvirtual |
virtual void inet::TCPServerThreadBase::socketStatusArrived |
( |
int |
, |
|
|
void * |
, |
|
|
TCPStatusInfo * |
status |
|
) |
| |
|
inlineoverrideprotectedvirtual |
virtual void inet::TCPServerThreadBase::statusArrived |
( |
TCPStatusInfo * |
status | ) |
|
|
inlinevirtual |
virtual void inet::TCPServerThreadBase::timerExpired |
( |
cMessage * |
timer | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: