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
Success | eOk | |
Failure | eNotInitialized | The initialize() method was not called successfully before calling this method. |
P6R::eInvalidArg | One of the agruments was NULL |
P6R::eTimeout | There was no data received within the specfied time period. |
Any valid P6ERR. | |