Instances of the DtTcpForwarder__vl__ class manage TCP connections for variants of Forwarder (servers) which accept TCP connections.
More...
Instances of the DtTcpForwarder__vl__ class manage TCP connections for variants of Forwarder (servers) which accept TCP connections.
| DtTcpForwarder__vl__::DtTcpForwarder__vl__ |
( |
int |
port, |
|
|
const DtInetAddr & |
networkInterface = DtInetAddr::inaddrAny() |
|
) |
| |
Constructor.
Accepts port number and interface on which to listen for incoming client connections.
| DtTcpForwarder__vl__::DtTcpForwarder__vl__ |
( |
| ) |
|
Constructor which will NOT open up a socket manager.
Instead, construction of the socket manager is left to a derived class.
| virtual DtTcpForwarder__vl__::~DtTcpForwarder__vl__ |
( |
| ) |
|
|
virtual |
Copy CTOR Not Implemented – Copy Not Allowed!
Assignment Operator Not Implemented – Assignment Not Allowed!
| virtual void DtTcpForwarder__vl__::readAndForward |
( |
DtTime |
maxTimeOverAll, |
|
|
DtTime |
maxTimePerSocket |
|
) |
| |
|
virtual |
Retrieve all messages from each TCP connection and forward each to all other TCP connections.
The amount of time spent processing each individual connection is limited by maxTimePerSocket and the total amount of time spent processing all connections is limited by maxTimeOverAll.
| virtual void DtTcpForwarder__vl__::readAndForward |
( |
DtTcpMsgSocket * |
sock, |
|
|
DtTime |
stopTime |
|
) |
| |
|
virtual |
Retrieve all messages from a single TCP connection and forward each to all other TCP connections, stopping when the clock reaches the specified stop time.
| virtual void DtTcpForwarder__vl__::sendToAll |
( |
caddr_t |
packet, |
|
|
size_t |
size |
|
) |
| |
|
virtual |
Return a pointer to the socket manager object owned by this instance.
The socket to begin processing next time we readAndForwarder.
| DtClock DtTcpForwarder__vl__::myClock |
|
protected |
Clock object used to meter processing time .
Pointer to the socket manager object owned by this instance.
The documentation for this class was generated from the following file: