|
Zen API
|
| kStatus kUdpClient_ReceiveEx | ( | kUdpClient | client, |
| kIpEndPoint * | endPoint, | ||
| kSize * | received, | ||
| k64u | timeout, | ||
| kSize * | index | ||
| ) |
Blocks until a datagram is received into kUdpClient's read buffer (or until a timeout occurs) and reports receiving interface.
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.
If the underlying platform does not provide the necessary functionality interface index is set to kSIZE_NULL.
| client | UDP client object. |
| endPoint | Receives the end point of the sender. |
| received | Receives the size of the received datagram. |
| timeout | Timeout, in microseconds. |
| index | Receives the interface index. |