Class

NWHostEndpoint

A network endpoint specified by DNS name (or IP address) and port.

Declaration

class NWHostEndpoint : NWEndpoint

Topics

Initializing Host Endpoints

init(hostname: String, port: String)

Create a host endpoint with a hostname and port.

Getting Endpoint Properties

var hostname: String

The endpoint's hostname.

var port: String

The endpoint's port, represented as a string.

Relationships

Inherits From

Conforms To

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