Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kUdpClient_Receive ( kUdpClient  client,
kIpEndPoint endPoint,
kSize received,
k64u  timeout 
)

Blocks until a datagram is received into kUdpClient's read buffer (or until a timeout occurs).

The Receive method is used to receive a datagram into kUdpClient's internal read buffer. Once the datagram has been received, the kStream_Read method can be used to read out the datagram.

Parameters
clientUDP client object.
endPointReceives the end point of the sender.
receivedReceives the size of the received datagram.
timeoutTimeout, in microseconds.
Returns
Operation status.