13 #ifdef DtUSE_UTILITIES_NAMESPACE
14 namespace DtUSE_UTILITIES_NAMESPACE
18 class DtInetTcpSockPimpl;
77 bool immediateOpen =
true );
94 virtual bool openSocket();
99 virtual bool closeSocket();
108 virtual bool bindToDevice(
const DtInetDevice* hostIf = NULL );
111 virtual bool listenForConnections();
131 virtual bool connectToDestination();
140 virtual int send( caddr_t packet,
size_t size,
DtU32 flags = 0 );
141 virtual int sendTo( caddr_t packet,
size_t size,
198 virtual unsigned descriptor()
const;
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();
231 virtual bool initAcceptedConnection(
const DtInetAddr& localAddr,
DtU16 localPort,
240 virtual void* tcpSocket();
241 virtual void* tcpServerSocket();
244 bool isServerSock()
const;
254 friend class DtInetTcpSockPimpl;
269 #ifdef DtUSE_UTILITIES_NAMESPACE
This file contains the declaration of the DtInetSocket base class.
Definition: vlInetAddrUtils.h:58
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:255
DtInetAddrFamily
Definition: vlInetAddrUtils.h:55
The DtInetEndpoint class provides a protocol independant, address family independent mechanism to rep...
Definition: vlInetEndpoint.h:33
Represents a IPv4 or IPv6 address.
Definition: vlInetAddr.h:36
Definition: vlInetDevice.h:101
DtInetUtils::DtInetAddrFamily myAddrFamily
Definition: vlInetTcpSocket.h:265
void * myIoService
Definition: vlInetTcpSocket.h:258
unsigned short DtU16
A 16 bit unsigned integer value.
Definition: vlMachineTypes.h:140
int send(int s, char *buf, int bufLen, int flags)
unsigned long DtU32
A 32 bit unsigned integer value.
Definition: vlMachineTypes.h:153
void * myTcpAcceptor
Definition: vlInetTcpSocket.h:260
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:259
#define DT_DLL_VLUTIL
Definition: vlMachineTypes.h:109