Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IUdpSocket::recvFrom ( P6UINT8 pBuffer,
P6UINT32  cBuffer,
P6UINT32 pcBytesRead,
P6INTERVAL  timeout,
P6NETADDR *  pRemoteAddr 
)
pure virtual

Receives data from the socket.

The socket does not have to be connected first and can receive data from multiple remote endpoints, returning the remote address of each datagram received.

Parameters
pBuffer[ in out ] A pointer to a buffer in which the received datagram will be placed.
cBuffer[ in ] The size in bytes of pBuffer
pcBytesRead[ out ] The address of a P6UINT32 in which will be placed the number of bytes placed in pBuffer on a successful read.
timeout[ in ] The timeout to wait for data in milliseconds.
pRemoteAddr[ out ] The address of the sending client.
Returns
SuccesseOk 
FailureeNotInitializedThe initialize() method was not called successfully before calling this method.
P6R::eInvalidArgOne of the agruments was NULL
P6R::eTimeoutThere was no data received within the specfied time period.
Any valid P6ERR.