11 #ifndef tcpMsgSocketMgr_H_
12 #define tcpMsgSocketMgr_H_
15 #include <vlutil/vlInetSocketMgr.h>
18 using namespace MAKRti;
36 return (myCb == rhs.
myCb && myUsr == rhs.
myUsr);
51 size_t recvBufferSize = 20000,
int maxQueuedMsgs = -1);
63 virtual bool openServerSocket( DtU16 localPort, DtInetDevice* hostIf =
NULL,
64 DtInetUtils::DtInetAddrFamily family = DtInetUtils::DtInetAddrFamily_IPv4,
65 DtU32 flags = (DtDefaultSockOpts | DtSockOptNonBlocking) );
71 virtual void processConnections();
78 static bool socketAdded(DtInetSocket* sock,
void* usr);
79 bool socketAdded(DtInetSocket* sock);
91 static bool socketRemoved(DtInetSocket* sock,
void* usr);
92 bool socketRemoved(DtInetSocket* sock);
107 virtual void enableBundling(
size_t maxBundleSize);
110 virtual void disableBundling();
113 virtual void enableCompression(DtU8 compressionLevel);
116 virtual void disableCompression();
119 virtual void setTcpNoDelay(
bool enable);
122 virtual void setSendBufferSize(DtU32 size);
125 virtual void setRecvBufferSize(DtU32 size);
128 virtual DtInetSockState serverSocketState()
const;
131 virtual DtU32 maxMsgSize()
const;
141 DtString getLastError()
const;
144 bool isListening()
const {
return serverSocketState() == DtInetSockState_LISTENING; }
201 DtTcpMsgSocketMap::iterator iter = mySockets.end();
207 iter = mySockets.find(inetSock);