A connectionless socket to send and receive datagrams
![]() | ODatagramSocket (TAddrFamily Family= af_inet, TProtocol Protocol= protocol_ip, TSocketType Type= sock_dgram) Creates a datagram socket |
![]() | ODatagramSocket (const ODatagramSocket& Socket) Copy constructor |
![]() | recvFrom (void* pBuffer, int BufferSize, OSocketAddr* pSenderAddr= 0, TSocketMsgFlag Flag= msg_normal) Tries to receives BufferSize data from the socket, if no error occurs |
![]() | sendTo (const OSocketAddr& ReceiverAddr, const void* pBuffer, int BufferSize, TSocketMsgFlag Flag= msg_normal) Tries to send one datagram with BytesToSend data to the given ReceiverAddr |
![]() | ~ODatagramSocket () Destructor |
A connectionless socket to send and receive datagrams
ODatagramSocket(const ODatagramSocket& Socket)
~ODatagramSocket()
int recvFrom(void* pBuffer, int BufferSize, OSocketAddr* pSenderAddr= 0, TSocketMsgFlag Flag= msg_normal)
pBuffer - [out] Points to a buffer that will be filled with the received
datagram.
BufferSize - [in] The size of pBuffer.
Flag - [in] Modifier for the call. Valid values are:
int sendTo(const OSocketAddr& ReceiverAddr, const void* pBuffer, int BufferSize, TSocketMsgFlag Flag= msg_normal)
pBuffer - [in] Points to a buffer that contains the send-data.
BufferSize - [in] The number of bytes to send. pBuffer must have at least
this size.
Flag - [in] Modifier for the call. Valid values are:
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de