Function

nw_endpoint_get_hostname(_:)

Accesses the hostname stored in an endpoint.

Declaration

func nw_endpoint_get_hostname(_ endpoint: nw_endpoint_t) -> UnsafePointer<Int8>

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.

func nw_endpoint_get_port(nw_endpoint_t) -> UInt16

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