_WTS_SOCKADDR structure (wtsdefs.h)

Contains a socket address.

Syntax

typedef struct _WTS_SOCKADDR {
#if ...
  USHORT sin_family;
#else
  USHORT sin_family;
#endif
  union {
    struct {
      USHORT sin_port;
      ULONG  in_addr;
      UCHAR  sin_zero[8];
    } ipv4;
    struct {
      USHORT sin6_port;
      ULONG  sin6_flowinfo;
      USHORT sin6_addr[8];
      ULONG  sin6_scope_id;
    } ipv6;
  } u;
} _WTS_SOCKADDR, WTS_SOCKADDR, *PWTS_SOCKADDR, _WRDS_SOCKADDR;

Members

sin_family

An integer index into the following structure members.

u

u.ipv4

An IPv4 address.

u.ipv4.sin_port

Specifies a TCP or UDP port number.

u.ipv4.in_addr

Specifies the IP address.

u.ipv4.sin_zero[8]

Contains an array of zeros.

u.ipv6

An IPv6 address.

u.ipv6.sin6_port

Specifies a TCP or UDP port number.

u.ipv6.sin6_flowinfo

Contains IPv6 flow information.

u.ipv6.sin6_addr[8]

Specifies the IP address.

u.ipv6.sin6_scope_id

Contains a scope ID

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 R2
Header wtsdefs.h (include Wtsprotocol.h)