Function

nw_endpoint_create_host(_:_:)

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

Declaration

func nw_endpoint_create_host(_ hostname: UnsafePointer<Int8>, _ port: UnsafePointer<Int8>) -> nw_endpoint_t

See Also

Host Endpoints

func nw_endpoint_get_port(nw_endpoint_t) -> UInt16

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