Function

nw_endpoint_get_port(_:)

Accesses the port stored in an endpoint, in host-byte order.

Declaration

func nw_endpoint_get_port(_ endpoint: nw_endpoint_t) -> UInt16

See Also

Host Endpoints

func nw_endpoint_create_host(UnsafePointer<Int8>, UnsafePointer<Int8>) -> nw_endpoint_t

Creates a network endpoint with a hostname and port, where the hostname may be interpreted as an IP address.