SOCKADDR 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 {
  u_short sa_family;
  char    sa_data[14];
} SOCKADDR, *PSOCKADDR, *LPSOCKADDR;

Members

sa_family

sa_data[14]

Requirements

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

See also

SOCKADDR_STORAGE