8 #ifndef vlTcpSocketMgr_H_
9 #define vlTcpSocketMgr_H_
20 #ifdef DtUSE_UTILITIES_NAMESPACE
21 namespace DtUSE_UTILITIES_NAMESPACE
55 virtual void processConnections();
58 virtual int isOk()
const;
62 virtual int addrInUse()
const;
74 virtual int currentClientPort()
const;
80 virtual int currentSockFd()
const;
83 virtual const DtList* socketList();
92 void setNoDelay(
bool onOff);
96 virtual void addSocketAdditionCallback(
98 virtual void removeSocketAdditionCallback(
103 virtual void addSocketRemovalCallback(
105 virtual void removeSocketRemovalCallback(
111 virtual int sizeOffset();
112 virtual int sizeLength();
113 virtual void setSizeOffset(
int offset);
114 virtual void setSizeLength(
int length);
118 virtual void setPacketBundling(
unsigned int maxBundleSize );
123 virtual void emptyCallbackLists();
178 #ifdef DtUSE_UTILITIES_NAMESPACE
void * mySocketCreator
Pointer to the object that will create the specialized socket.
Definition: vlTcpSocketMgr.h:155
DtU32 DtIpv4Addr
Definition: vlUtil.h:245
DtSocketCreationCallback mySocketCreationCb
Callback for creation of specialized sockets.
Definition: vlTcpSocketMgr.h:153
An implementation of DtSocket which uses a TCP connection.
Definition: vlTcpSocket.h:47
DtSocket provides a low level interface for packet I/O with VR-Link applications. ...
Definition: vlSocket.h:110
DtSocketAdditionCallback DtSocketRemovalCallback
Definition: vlTcpSocketMgr.h:29
int serverSockfd
Definition: vlTcpSocketMgr.h:133
virtual int sizeOffset()
Sets offset and length so that it can create sockets whose lengthOffset and lengthSize are different ...
Definition: vlTcpSocketMgr.h:173
DtIpv4Addr myServAddr
Unused.
Definition: vlTcpSocketMgr.h:141
bool myNoDelay
Definition: vlTcpSocketMgr.h:149
virtual int isOk() const
Returns 1 if the object is OK to use, 0 otherwise.
Definition: vlTcpSocketMgr.h:163
DtSocket *(* DtSocketCreationCallback)(void *creator, DtTcpSocketMgr *mgr)
Specialized socket creation callback signature.
Definition: vlTcpSocketMgr.h:33
unsigned int myMaxBundleSize
Definition: vlTcpSocketMgr.h:150
#define DtDEFAULT_PORT
Definition: vlSocket.h:49
int myCurrentSockFd
Socket descriptor associated with most recently accessed connection.
Definition: vlTcpSocketMgr.h:139
DtList * mySockList
Pointer to list of all open TCP sockets.
Definition: vlTcpSocketMgr.h:146
DtList is deprecated, please use std::list<T>.
Definition: vlList.h:71
int mySizeOffset
Definition: vlTcpSocketMgr.h:134
int myOk
Definition: vlTcpSocketMgr.h:147
int mySizeLength
Definition: vlTcpSocketMgr.h:135
int myAddrInUse
Definition: vlTcpSocketMgr.h:148
virtual int sizeLength()
Definition: vlTcpSocketMgr.h:168
DtList myRemovalCallbacks
Definition: vlTcpSocketMgr.h:160
DtList myAdditionCallbacks
Lists of pointers to DtSocketCbInfos.
Definition: vlTcpSocketMgr.h:159
int myCliPort
Peer TCP port of most recent client to connect.
Definition: vlTcpSocketMgr.h:144
void(* DtSocketAdditionCallback)(DtTcpSocket *sock, void *usr)
Definition: vlTcpSocketMgr.h:27
#define DT_DLL_NETCOMPAT
Definition: vlMachineTypes.h:111
provides basic Operating Independent Methods useful to a federate
This file contains the declaration of DtTcpSocket.
This file contains typedefs for machine dependant types.
Definition: vlTcpSocketMgr.h:37
DtIpv4Addr myCliAddr
Definition: vlTcpSocketMgr.h:142