 |
ws_select ..msdn Add comment W32 Constants Translate this page |
 |
 |
The select function determines the status of one or more sockets, waiting if necessary, to perform synchronous I/O.
|
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
int select(
int nfds,
fd_set* readfds,
fd_set* writefds,
fd_set* exceptfds,
const struct timeval* timeout
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER select IN ws2_32 AS ws_select;
INTEGER nfds,;
STRING @ readfds,;
STRING @ writefds,;
STRING @ exceptfds,;
INTEGER timeout
|
 |
 |
 |
| Parameters: |
 |
nfds
[in] Ignored. The nfds parameter is included only for compatibility with Berkeley sockets.
readfds
[in, out] Optional pointer to a set of sockets to be checked for readability.
writefds
[in, out] Optional pointer to a set of sockets to be checked for writability
exceptfds
[in, out] Optional pointer to a set of sockets to be checked for errors.
timeout
[in] Maximum time for select to wait, provided in the form of a TIMEVAL structure.
|
 |
 |
| Return value: |
 |
| The select function returns the total number of socket handles that are ready and contained in the fd_set structures, zero if the time limit expired, or SOCKET_ERROR if an error occurred. |
 |
 |
| Word Index links for the ws_select : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2003-02-05 19:14:03 | | Modified: | 2003-02-05 19:39:35 | Visited in last 7 days: 11 |