314 friend class cServerSocket;
unsigned long tUInt32
type definition for unsigned integer values (32bit) (platform and compiler independent type).
tInt64 tTimeStamp
type definition for a time value.
int tInt
type definition for signed integer value (platform and compiler dependent type).
bool tBool
The tBool defines the type for the Values tTrue and tFalse (platform and compiler dependent).
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
tResult Open(tInt nPort, tUInt32 dwMode=0, tUInt32 ui32InterfaceAddress=0)
Opens the socket.
tResult Accept(cStreamSocket &oStreamSocket)
Accepts an incoming connection.
tResult Accept(tSocketHandle &hClientSocket)
Accepts an incoming connection.
tResult Listen(tInt nMaxRequests=0)
Puts the socket in listen mode.
tBool IsConnected(tTimeStamp nTimeout=0)
Polls the socket for its connection state.
virtual ~cServerSocket()
Destructor.
@ SS_Exclusive
The default SO_REUSEADDR�option is not set when this is specified.
cServerSocket()
Default constructor.
cSocket()
Default constructor.
cStreamSocket()
Default constructor.
virtual ~cStreamSocket()
Destructor.
tResult Write(const void *pData, tInt nDataLength, tInt *pnBytesWritten=nullptr)
Sends a data over the socket.
tResult Connect(tUInt32 dwDest, tInt nPort, tUInt32 dwMode=OM_Block)
Connects the socket with a remote listening socket.
tResult Read(void *pBuffer, tInt nBufferSize, tInt *pnBytesRead=nullptr)
Read incoming data.
tBool IsConnected(tTimeStamp nTimeout=0)
Polls the socket for its connection state.
tResult Connect(const cString &strDest, tInt nPort, tUInt32 dwMode=OM_Block)
Connects the socket with a remote listening socket.
#define A_UTILS_D(__pclassname_)
Helper macro for d-pattern definitions.
ADTF A_UTIL Namespace - Within adtf this is used as util or adtf_util.
int tSocketHandle
work with platform undependend typedefinitions for socket handlers
string_base< cStackString > cString
cString implementation for a stack string which works on stack if string is lower than A_UTILS_DEFAUL...