Function

nw_endpoint_copy_port_string(_:)

Copies the port of an endpoint as a string.

Declaration

func nw_endpoint_copy_port_string(_ endpoint: nw_endpoint_t) -> UnsafeMutablePointer<Int8>

Discussion

This function allocates a new string. You should free the returned buffer when done using the string.

See Also

Address Endpoints

func nw_endpoint_create_address(UnsafePointer<sockaddr>) -> nw_endpoint_t

Creates a network endpoint with an address structure.

func nw_endpoint_get_address(nw_endpoint_t) -> UnsafePointer<sockaddr>

Accesses the address structure stored in an address endpoint.