The difference between Winsock and SELECT parameters in UNIX POSIX

xiaoxiao2021-03-06  79

Winsock: int SELECT (int NFDS, FD_SET FAR * READDS, FD_SET FAR * WRITEFDS, FD_SET FAR * EXCEPTFDS, CONST STRUCT TIMEVAL FAR * TIMEOUT);

NFDS [in] this parameter is ignored; it is inclined Only for Compatibility with Berkeley Sockets.

UNIX POSIX: INT SELECT (int NFDS, FD_SET * READFDS, FD_SET * WRITEFDS, FD_SET * ERRORFDS, STRUCT TIMEVAL * TIMEOUT);

..................................

Winsock This parameter is ignored, and there must be actual significance in UNIX POSIX, representing the scope of the file descriptor.

转载请注明原文地址:https://www.9cbs.com/read-121950.html

New Post(0)