Detailed Description
- Deprecated:
- This class is replaced by DtInetSocketMgr and other classes as of VR-Link 3.13
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 owner of a DtTcpSocketMgr object to create specialized sockets (such as compression-enabled TCP sockets).
| virtual DtTcpSocketMgr::~DtTcpSocketMgr |
( |
| ) |
|
|
virtual |
Copy CTOR Not Implemented.
Member Function Documentation
| virtual int DtTcpSocketMgr::addrInUse |
( |
| ) |
const |
|
virtual |
Returns 1 if the socket could not be created because the given port is already in use; 0 otherwise.
Add/remove socket addition callback to be callled when a new socket connection is accepted.
Add/remove socket addition callback to be callled when a managed socket connection is removed.
| virtual DtIpv4Addr DtTcpSocketMgr::currentClientAddr |
( |
| ) |
const |
|
virtual |
Returns the current client address.
This method may be invoked by specialized socket creation callback functions when a new connection is accepted which requires a non-standard socket type, such as a socket which supports TCP compression.
| virtual int DtTcpSocketMgr::currentClientPort |
( |
| ) |
const |
|
virtual |
Returns the current client port.
This method may be invoked by specialized socket creation callback functions when a new connection is accepted which requires a non-standard socket type, such as a socket which supports TCP compression.
| virtual int DtTcpSocketMgr::currentSockFd |
( |
| ) |
const |
|
virtual |
Returns the current client socket descriptor.
This method is invoked by specialized socket creation callback functions when a new connection is accepted which requires a non-standard socket type, such as a socket which supports TCP compression.
| virtual void DtTcpSocketMgr::emptyCallbackLists |
( |
| ) |
|
|
protectedvirtual |
Empty the callback lists.
| int DtTcpSocketMgr::isOk |
( |
| ) |
const |
|
inlinevirtual |
Returns 1 if the object is OK to use, 0 otherwise.
Assignment Operator Not Implemented.
| virtual void DtTcpSocketMgr::processConnections |
( |
| ) |
|
|
virtual |
Check to see if any clients are trying to connect.
If so, add new DtTcpSockets to handle the connections.
| void DtTcpSocketMgr::removeAndDelete |
( |
DtTcpSocket * |
sock | ) |
|
Remove the socket from the list, and delete it.
non virtual since called in DTOR
| void DtTcpSocketMgr::setNoDelay |
( |
bool |
onOff | ) |
|
If true (the default), set the TCP_NODELAY sockopt in all child DtTcpSockets to 1.
Otherwise, set this option to 0 in all child DtTcpSockets. non virtual since called in CTOR
| virtual void DtTcpSocketMgr::setPacketBundling |
( |
unsigned int |
maxBundleSize | ) |
|
|
virtual |
Enable / Disable packet bundling.
- maxBundleSize = 0 disables bundling
| virtual void DtTcpSocketMgr::setSizeLength |
( |
int |
length | ) |
|
|
virtual |
| virtual void DtTcpSocketMgr::setSizeOffset |
( |
int |
offset | ) |
|
|
virtual |
| int DtTcpSocketMgr::sizeLength |
( |
| ) |
|
|
inlinevirtual |
| int DtTcpSocketMgr::sizeOffset |
( |
| ) |
|
|
inlinevirtual |
Sets offset and length so that it can create sockets whose lengthOffset and lengthSize are different from the default values.
| virtual const DtList* DtTcpSocketMgr::socketList |
( |
| ) |
|
|
virtual |
Return a list of sockets that we are managing.
Member Data Documentation
| DtList DtTcpSocketMgr::myAdditionCallbacks |
|
protected |
Lists of pointers to DtSocketCbInfos.
| int DtTcpSocketMgr::myAddrInUse |
|
protected |
| int DtTcpSocketMgr::myCliPort |
|
protected |
Peer TCP port of most recent client to connect.
| int DtTcpSocketMgr::myCurrentSockFd |
|
protected |
Socket descriptor associated with most recently accessed connection.
| unsigned int DtTcpSocketMgr::myMaxBundleSize |
|
protected |
| bool DtTcpSocketMgr::myNoDelay |
|
protected |
| DtList DtTcpSocketMgr::myRemovalCallbacks |
|
protected |
| int DtTcpSocketMgr::mySizeLength |
|
protected |
| int DtTcpSocketMgr::mySizeOffset |
|
protected |
Callback for creation of specialized sockets.
| void* DtTcpSocketMgr::mySocketCreator |
|
protected |
Pointer to the object that will create the specialized socket.
| DtList* DtTcpSocketMgr::mySockList |
|
protected |
Pointer to list of all open TCP sockets.
| int DtTcpSocketMgr::serverSockfd |
|
protected |
The documentation for this class was generated from the following file: