Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
selectex() z/OS Communications Server: IP Sockets Application Programming Interface Guide and Reference SC27-3660-00 |
|
The selectex() call provides an extension to the select() call by allowing you to use an ECB or ECB list that defines an event not described by readfs, writefds, or exceptfds. The selectex() call monitors activity on a set of different sockets until a timeout expires to see whether any sockets are ready for reading or writing, or if any exception conditions are pending. See select() for more information about selectex().
Return valuesThe total number of ready
sockets (in all bit sets) is returned. The returned value -1 indicates
an error. The returned value of 0 indicates either an expired time
limit or that the caller ECB has been posted. To determine which of
these two conditions occurred, check the ECB value. If the value of
the ECB is nonzero, then the ECB has been POSTed; otherwise, the time
limit has expired. The caller must initialize the ECB value to 0 before
issuing selectex(). If the caller's ECB has been POSTed, the caller
descriptor sets are also set to 0. If the return value is greater
than 0, the socket descriptors in each bit set that are ready are
set to 1. All others are set to 0.
Note: If the number of ready sockets is greater than
65535, only 65535 is reported.
Related callsaccept(), connect(), getdtablesize(), recv(), send(), select() |
Copyright IBM Corporation 1990, 2014
|