Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kSocket_Wait ( kSocket  socket,
k64u  timeout 
)

Waits for a socket event.

Before calling this function, use kSocket_SetEvents to specify the events that the socket 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 events occur by the end of the timeout period.

Parameters
socketSocket object.
timeoutTimeout, in microseconds.
Returns
Operation status.