Compartilhar via


SOCKADDR_IN6_PAIR (Compact 2013)

3/26/2014

This structure contains pointers to a pair of IP addresses that represent a source and destination address pair.

Syntax

typedef struct _sockaddr_in6_pair {
  PSOCKADDR_IN6 SourceAddress;
  PSOCKADDR_IN6 DestinationAddress;
} SOCKADDR_IN6_PAIR,
  *PSOCKADDR_IN6_PAIR;

Members

  • SourceAddress
    A pointer to an IP source address represented as a SOCKADDR_IN6 structure. The address family is in host byte order and the IPv6 address, port, flow information, and zone ID are in network byte order.
  • DestinationAddress
    A pointer to an IP source address represented as a SOCKADDR_IN6 structure. The address family is in host byte order and the IPv6 address, port, flow information, and zone ID are in network byte order.

Remarks

Any IPv4 addresses in the SOCKADDR_IN6_PAIR structure must be represented in the IPv4-mapped IPv6 address format which enables an IPv6 only application to communicate with an IPv4 node.

The SOCKADDR_IN6_PAIR structure is used by the CreateSortedAddressPairs function.

Note that the Ws2ipdef.h header file is automatically included in Ws2tcpip.h header file, and should never be used directly.

See Also

Reference

IP Helper Structures
CreateSortedAddressPairs
sockaddr