Windows Dev Center

Expand Minimize

NET_ADDRESS_INFO structure

Describes a network address.

Syntax


typedef struct NET_ADDRESS_INFO_ {
  NET_ADDRESS_FORMAT Format;
  union {
    struct {
      WCHAR Address[DNS_MAX_NAME_BUFFER_LENGTH];
      WCHAR Port[6];
    } NamedAddress;
    SOCKADDR_IN  Ipv4Address;
    SOCKADDR_IN6 Ipv6Address;
    SOCKADDR     IpAddress;
  };
} NET_ADDRESS_INFO, *PNET_ADDRESS_INFO;

Members

Format

Type: NET_ADDRESS_FORMAT

One of the following values that indicates the format of the address provided in the remainder of this structure.

NET_ADDRESS_DNS_NAME

A named network address.

NET_ADDRESS_IPV4

An IP version 4 address.

NET_ADDRESS_IPV6

An IP version 6 address.

NET_ADDRESS_FORMAT_UNSPECIFIED

No format information is provided.

NamedAddress

A structure that contains a named address. A network string that represents an Internet host/router cannot specify a port. However, a network string that represents an Internet service must specify a port, for example, www.example.com:443.

Address

Type: WCHAR[DNS_MAX_NAME_BUFFER_LENGTH]

A null-terminated, Unicode string that contains the domain name.

Port

Type: WCHAR[6]

The port number of service.

Ipv4Address

Type: SOCKADDR_IN

A structure to describe a IP version 4 (IPv4) address.

Ipv6Address

Type: SOCKADDR_IN6

A structure to describe a IP version 6 (IPv6) address. For the definition of this structure, see Ws2ipdef.h.

IpAddress

Type: SOCKADDR

A structure that describes an address that is independent of the IP version in use; for instance, an address defined at the application layer using Windows Sockets 2. Once a network string is parsed successfully, an application can connect using this address.

Remarks

The NET_ADDRESS_INFO structure is sent with the NetAddr_GetAddress macro.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Iphlpapi.h

 

 

Community Additions

ADD
Show:
© 2015 Microsoft