SOCKADDR_IN structure (winsock.h)

The sockaddr structure varies depending on the protocol selected. Except for the sin*_family parameter, sockaddr contents are expressed in network byte order.

Syntax

typedef struct sockaddr_in {
  short          sin_family;
  u_short        sin_port;
  struct in_addr sin_addr;
  char           sin_zero[8];
} SOCKADDR_IN, *PSOCKADDR_IN, *LPSOCKADDR_IN;

Members

sin_family

sin_port

sin_addr

sin_zero[8]

Requirements

Requirement Value
Header winsock.h (include Ws2ipdef.h)

See also

SOCKADDR_STORAGE