select function winsock

int select(
  1. int nfds,
  2. Pointer<fd_set> readfds,
  3. Pointer<fd_set> writefds,
  4. Pointer<fd_set> exceptfds,
  5. Pointer<timeval> timeout,
)

The select function determines the status of one or more sockets, waiting if necessary, to perform synchronous I/O.

int WSAAPI select(
  int           nfds,
  fd_set        *readfds,
  fd_set        *writefds,
  fd_set        *exceptfds,
  const timeval *timeout
);

Implementation

int select(int nfds, Pointer<fd_set> readfds, Pointer<fd_set> writefds,
        Pointer<fd_set> exceptfds, Pointer<timeval> timeout) =>
    _select(nfds, readfds, writefds, exceptfds, timeout);