Function SocketFD_ZERO() Professional

Resets an existing descriptor set to its initial state.

Syntax
SocketFD_ZERO( <nFDSet>, [@<nError>] ) --> lSuccess
Parameters
<nFDSet>
The numeric handle of a descriptor set previously created with SocketFDSetNew() must be passed for this parameter.
<nError>
If this parameter is passed by reference to the function, it gets assigned a numeric error code when the function fails. #define constants beginning with WSAE are available in the file SOCKET.CH to identify an error condition.
Return

The function returns .T. (true) when the descriptor set could be reset, otherwise .F. (false) is returned.

Description

The function removes all sockets form a descriptor set so that an empty set is available, being in the same state as if it were created with SocketFDSetNew().

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.