Constructor & Destructor Documentation
Constructor.
Accepts socket creator callback function pointer, a pointer to the object that will create said socket, and the port number which said socket will listen on. This ctor allows the parent class of a DtTcpForwarder object to create specialized sockets (such as compression-enabled TCP sockets).
| virtual DtTcpForwarder::~DtTcpForwarder |
( |
| ) |
|
|
virtual |
Member Function Documentation
| virtual void DtTcpForwarder::readAndForward |
( |
DtTime |
maxTimeOverAll, |
|
|
DtTime |
maxTimePerSocket |
|
) |
| |
|
virtual |
Read packets from sock, and forward them to all sockets in the list.
Stop reading when current time reaches stopTime.
| virtual void DtTcpForwarder::sendToAll |
( |
caddr_t |
packet, |
|
|
size_t |
size |
|
) |
| |
|
virtual |
| virtual void DtTcpForwarder::setSizeLength |
( |
int |
offset | ) |
|
|
virtual |
| virtual void DtTcpForwarder::setSizeOffset |
( |
int |
length | ) |
|
|
virtual |
| int DtTcpForwarder::sizeLength |
( |
| ) |
|
|
inlinevirtual |
Sets TcpSockManager's offset and length so that it can create sockets whose lengthOffset and lengthSize are different from the default values.
| int DtTcpForwarder::sizeOffset |
( |
| ) |
|
|
inlinevirtual |
Member Data Documentation
| const DtList* DtTcpForwarder::mySockList |
|
protected |
Pointer to the socket manager's list.
The documentation for this class was generated from the following file: