sockaddr_gen union (ws2ipdef.h)

The sockaddr_gen union provides generic socket address information, and is used with the INTERFACE_INFO structure.

Syntax

typedef union sockaddr_gen {
  struct sockaddr         Address;
  struct sockaddr_in      AddressIn;
  struct sockaddr_in6_old AddressIn6;
} sockaddr_gen;

Members

Address

IP address information expressed in a sockaddr structure.

AddressIn

IP address information expressed in a sockaddr_in structure.

AddressIn6

IP address information expressed in a sockaddr_in6_old structure.

Remarks

On the Microsoft Windows Software Development Kit (SDK) released for Windows Vista and later, the organization of header files has changed and the sockaddr_gen union is defined in the Ws2ipdef.h header file which is automatically included in the Ws2tcpip.h header file. The Ws2ipdef.h header files should never be used directly.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header ws2ipdef.h (include Ws2tcpip.h)

See also

sockaddr

sockaddr_in

sockaddr_in6_old