sockaddr_gen union

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

Syntax


typedef union {
  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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Ws2ipdef.h (include Ws2tcpip.h);
Ws2tcpip.h on Windows Server 2003, Windows XP and Windows 2000

See also

sockaddr
sockaddr_in
sockaddr_in6_old

 

 

Show: