NET_ADDRESS_INFO structure
Applies to: desktop apps only
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.
- 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 |
|---|---|
|
Minimum supported server | Windows Server 2008 |
|
Header |
|
Send comments about this topic to Microsoft
Build date: 3/7/2012