SOCKADDR_IN6_W2KSP1 structure (ws2ipdef.h)

The SOCKADDR_IN6 structure specifies a transport address and port for the AF_INET6 address family.

Syntax

typedef struct sockaddr_in6_w2ksp1 {
  short           sin6_family;
  USHORT          sin6_port;
  ULONG           sin6_flowinfo;
  struct in6_addr sin6_addr;
  ULONG           sin6_scope_id;
} SOCKADDR_IN6_W2KSP1, *PSOCKADDR_IN6_W2KSP1, *LPSOCKADDR_IN6_W2KSP1;

Members

sin6_family

The address family for the transport address. This member should always be set to AF_INET6.

sin6_port

A transport protocol port number.

sin6_flowinfo

The IPv6 flow information.

sin6_addr

An IN6_ADDR structure that contains an IPv6 transport address.

sin6_scope_id

A ULONG representation of the IPv6 scope identifier that is defined in the sin6_scope_struct member.

Remarks

All of the data in the SOCKADDR_IN6 structure, except for the address family, must be specified in network-byte-order (big-endian).

The size of the SOCKADDR_IN6 structure is too large to fit in the memory space that is provided by a SOCKADDR structure. For a structure that is guaranteed to be large enough to contain a transport address for all possible address families, see SOCKADDR_STORAGE.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Header ws2ipdef.h (include Ws2ipdef.h)

See also

AF_INET6

IN6_ADDR

SOCKADDR

SOCKADDR_STORAGE