Zen API
zSocket_WaitAny
C
zStatus zSocket_WaitAny(const zSocket* sockets, z32u count, zBool* status, z64u timeout);
Parameters
Parameters 
Description 
const zSocket* sockets 
An array of sockets to wait on. 
z32u count 
The number of sockets in the array. 
zBool* status 
An array of returned status values, indicating which sockets are ready to be read. 
z64u timeout 
Timeout, in microseconds. 
Description

Waits until one or more of the specified sockets has bytes to read (enqueued connection requests for server sockets) or until the specified timeout period elapses.

This function will return zERROR_TIMEOUT in the event that none of the sockets are ready for reading by the end of the timeout period.

File

zSocket.h

Copyright (c) 2008-2010 by LMI Technologies Inc. All rights reserved.