Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
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.

Parameters
clientUDP client object.
endPointReceives the end point of the sender.
bufferDestination for received bytes.
capacityMaximum count of bytes to read.
receivedReceives the size of the received datagram.
timeoutTimeout, in microseconds.
Returns
Operation status.