13 #ifdef DtUSE_UTILITIES_NAMESPACE
14 namespace DtUSE_UTILITIES_NAMESPACE
18 class DtInetTcpSockPimpl;
77 bool immediateOpen =
true );
88 virtual bool setDestination(
const DtInetEndpoint& addr )
override;
94 virtual bool openSocket()
override;
99 virtual bool closeSocket()
override;
108 virtual bool bindToDevice(
const DtInetDevice* hostIf =
nullptr )
override;
111 virtual bool listenForConnections();
131 virtual bool connectToDestination()
override;
140 virtual int send( caddr_t packet,
size_t size,
DtU32 flags = 0 )
override;
141 virtual int sendTo( caddr_t packet,
size_t size,
163 DtU32 flags = 0 )
override;
169 DtU32 flags = 0 )
override;
176 DtU32 flags = 0 )
override ;
179 DtU32 flags = 0 )
override;
195 virtual bool isOk()
override;
198 virtual unsigned descriptor()
const override;
204 virtual bool setNonBlockingOption(
bool onOrOff );
205 virtual bool setReuseAddressOption(
bool onOrOff );
206 virtual bool setSendBufferSize(
DtU32 size );
207 virtual bool setReceiveBufferSize(
DtU32 size );
208 virtual bool setDoNotRouteOption(
bool onOrOff );
209 virtual bool setSendLowWatermark(
DtU32 size );
210 virtual bool setReceiveLowWatermark(
DtU32 size );
211 virtual bool setTcpNoDelayOption(
bool onOrOff );
212 virtual bool setTcpLingerOption(
DtU16 timeout );
213 virtual bool setConnAbortedOption(
bool onOrOff );
214 virtual bool setTcpKeepAliveOption(
bool onOrOff );
216 virtual DtU32 getSendBufferSize();
217 virtual DtU32 getReceiveBufferSize();
218 virtual DtU32 getBytesAvailable();
219 virtual bool getReuseAddressOption();
220 virtual bool getDoNotRouteOption();
221 virtual DtU32 getSendLowWatermark();
222 virtual DtU32 getReceiveLowWatermark();
223 virtual bool getTcpLingerOption(
DtU16& timeout );
224 virtual bool getConnAbortedOption();
225 virtual bool getTcpKeepAliveOption();
237 virtual bool openAcceptedConnection(
const DtInetEndpoint& peer );
243 virtual void* tcpSocket();
244 virtual void* tcpServerSocket();
247 bool isServerSock()
const;
257 friend class DtInetTcpSockPimpl;
272 #ifdef DtUSE_UTILITIES_NAMESPACE
This file contains the declaration of the DtInetSocket base class.
Definition: vlInetAddrUtils.h:58
Definition: vlInetEndpoint.h:25
DtInetSockRcvStatus
Socket state enumeration.
Definition: vlInetSocket.h:129
std::vector< DtInetBuffer * > DtInetBufferChain
Socket state enumeration.
Definition: vlInetSocket.h:105
The DtInetSocket class provides a protocol independant, address family independant base class for TCP...
Definition: vlInetSocket.h:201
int recv(int s, char *buf, int bufLen, int flags)
#define DtSockOptNoDelay
Tell TCP sockets to disable Nagle packet coalescing and enables TCP_NODELAY operation.
Definition: vlInetSocket.h:65
DtInetTcpSockPimpl * myAsyncPimpl
Definition: vlInetTcpSocket.h:258
DtInetAddrFamily
Definition: vlInetAddrUtils.h:55
The DtInetEndpoint class provides a protocol independant, address family independent mechanism to rep...
Definition: vlInetEndpoint.h:34
Definition: vlInetDevice.h:101
DtInetUtils::DtInetAddrFamily myAddrFamily
Definition: vlInetTcpSocket.h:268
void * myIoService
Definition: vlInetTcpSocket.h:261
DtInetProtocol
Specifies the protocol used by the endpoint.
Definition: vlInetEndpoint.h:22
unsigned short DtU16
A 16 bit unsigned integer value.
Definition: vlMachineTypes.h:152
int send(int s, char *buf, int bufLen, int flags)
unsigned long DtU32
A 32 bit unsigned integer value.
Definition: vlMachineTypes.h:165
void * myTcpAcceptor
Definition: vlInetTcpSocket.h:263
The DtInetSocket class provides an address family independent stream socket.
Definition: vlInetTcpSocket.h:23
#define DtDefaultSockOpts
Marks the Socket as Writable.
Definition: vlInetSocket.h:90
void * myTcpSocket
Definition: vlInetTcpSocket.h:262
#define DT_DLL_VLUTIL
Definition: vlMachineTypes.h:121