7 #ifndef _DATAGRAM_SOCKET_CLASS_HEADER_
8 #define _DATAGRAM_SOCKET_CLASS_HEADER_
108 tResult Open(tInt nPort = 0, tUInt32 dwMode = cSocket::OM_Block, tUInt32 ui32InterfaceAddress = 0);
194 tResult Write(const cString& strDest, tInt nPort, const tVoid* pData, tInt nDataLength, tInt* pnBytesWritten=nullptr);
278 tResult Write(tUInt32 dwDest, tInt nPort, const tVoid* pData, tInt nDataLength, tInt* pnBytesWritten=nullptr);
346 tResult Read(tVoid* pBuffer, tInt nBufferSize, tInt* pnBytesRead=nullptr, tUInt32* pSenderAddr=nullptr, tUInt16* pSenderPort = nullptr);
void tVoid
The tVoid is always the definition for the void (non-type).
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).
uint32_t tUInt32
type definition for unsigned integer values (32bit) (platform and compiler independent type).
tResult JoinMulticastGroup(tUInt32 nGroupAddr)
Joins a specified multicast group.
cDatagramSocket()
Constructor.
tResult LeaveMulticastGroup(tUInt32 nGroupAddr)
Leaves a specified multicast group.
tResult EnableBroadcasts(tBool bEnable=tTrue)
If enabled, the socket will receive packets sent to a broadcast address and will be able to send pack...
virtual ~cDatagramSocket()
Destructor.
A common result class usable as return value throughout.
#define tTrue
Value for tBool.
#define A_UTILS_D(__pclassname_)
Helper macro for d-pattern definitions.
ADTF A_UTIL Namespace - Within adtf this is used as adtf::util or adtf_util.