Zen API
|
kStatus kUdpClient_ReadFrom | ( | kUdpClient | client, |
kIpEndPoint * | endPoint, | ||
void * | buffer, | ||
kSize | capacity, | ||
kSize * | received, | ||
k64u | timeout | ||
) |
Blocks until a datagram is received into the provided buffer (or until a timeout occurs).
This method can be used when read buffering is disabled to read a datagram directly from the underlying socket.
client | UDP client object. |
endPoint | Receives the end point of the sender. |
buffer | Destination for received bytes. |
capacity | Maximum count of bytes to read. |
received | Receives the size of the received datagram. |
timeout | Timeout, in microseconds. |