Initializes a new connection to a host and port.


convenience init(host: NWEndpoint.Host, port: NWEndpoint.Port, using: NWParameters)

See Also

Creating Connections

init(to: NWEndpoint, using: NWParameters)

Initializes a new connection to a remote endpoint.

func start(queue: DispatchQueue)

Starts establishing a connection, and sets the queue on which to deliver all connection events.

func restart()

Restarts a connection that is in the waiting state.