Instances of the DtTcpForwarder__vl__ class manage TCP connections for variants of Forwarder (servers) which accept TCP connections.
More...
Public Member Functions |
| | DtTcpForwarder__vl__ (int port, const DtInetAddr &networkInterface=DtInetAddr::inaddrAny()) |
| | Constructor.
|
| | DtTcpForwarder__vl__ () |
| | Constructor which will NOT open up a socket manager.
|
| virtual | ~DtTcpForwarder__vl__ () |
| | Destructor.
|
| virtual void | sendToAll (caddr_t packet, size_t size) |
| | Send a packet to all open TCP connections.
|
| virtual void | readAndForward (DtTime maxTimeOverAll, DtTime maxTimePerSocket) |
| | Retrieve all messages from each TCP connection and forward each to all other TCP connections.
|
| virtual void | readAndForward (DtTcpMsgSocket *sock, DtTime stopTime) |
| | 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 DtTcpMsgSocketMgr * | socketMgr () |
| | Return a pointer to the socket manager object owned by this instance.
|
Detailed Description
Instances of the DtTcpForwarder__vl__ class manage TCP connections for variants of Forwarder (servers) which accept TCP connections.
Constructor & Destructor Documentation
| 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!
Member Function Documentation
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.
Member Data Documentation
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: