Enumeration

NWEndpoint.Host

A name or address that identifies a network endpoint.

Declaration

enum NWEndpoint.Host

Topics

Creating Hosts

init(String)

Initializes a host with a string.

Accessing Host Types

case name(String, NWInterface?)

A host represented as a name.

case ipv4(IPv4Address)

A host represented as an IPv4 address.

case ipv6(IPv6Address)

A host represented as an IPv6 address.

Requiring Interfaces

var interface: NWInterface?

The interface associated with this host, such as the interface scope stored in an IPv6 address.

Instance Properties

See Also

Host and Ports

struct NWEndpoint.Port

A port number you use along with a host to identify a network endpoint.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software