Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kSocket_WaitAny | ( | const kSocket * | sockets,
|  | kSize | count,
|  | k64u | timeout
| ) |  |

Waits until an event occurs on one or more sockets.

Before calling this function, use kSocket_SetEvents to specify the events that the sockets should wait on. After calling this function, use the kSocket_Events function to determine which events have occurred.

This function will return kERROR_TIMEOUT if no socket events occur by the end of the timeout period.

Parameters

  sockets | An array of sockets to wait on.
  count | The number of sockets in the array.
  timeout | Timeout, in microseconds.

Returns
  Operation status.