Zen API
 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
socketsAn array of sockets to wait on.
countThe number of sockets in the array.
timeoutTimeout, in microseconds.
Returns
Operation status.