Function SocketFD_ZERO() Professional

Resets an existing descriptor set to its initial state.

SocketFD_ZERO( <nFDSet>, [@<nError>] ) --> lSuccess
The numeric handle of a descriptor set previously created with SocketFDSetNew() must be passed for this parameter.
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.

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


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().


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.