[Previous] [Contents] [Index] [Next]

Rselect()

Check for descriptors that are ready for reading or writing (via a SOCKS server)

Synopsis:

int Rselect( int width, 
             fd_set * readfds, 
             fd_set * writefds,
             fd_set * exceptionfds,
             struct timeval * timeout );

Library:

socks3r.lib, socks3s.lib

Description:

The Rselect() function is a cover function for select() - the difference is that Rselect() does its job via a SOCKS server.

For more information about SOCKS and its libraries, see Appendix A: SOCKS - A Basic Firewall.

Returns:

The number of ready descriptors in the descriptor sets, or -1 if an error occurs (errno is set).


Note: If the return value is zero (0), the timeout expired.

Classification:

SOCKS

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

select() in the C Library Reference

Appendix A: SOCKS - A Basic Firewall


[Previous] [Contents] [Index] [Next]