Freigeben über


fd_set (Compact 2013)

3/26/2014

This structure is used by various Windows Sockets functions and service providers, such as the select function, to place sockets into a set for various purposes. For example, the readfds parameter of the select function can be used for testing a socket for readability.

Syntax

typedef struct fd_set {
  u_int fd_count;
  SOCKET fd_array[FD_SETSIZE];
} fd_set;

Members

  • fd_count
    Number of sockets in the set.
  • fd_array
    Array of sockets that are in the set.

Requirements

Header

winsock2.h

See Also

Reference

Winsock Structures
select
WSAEventSelect