Function

nw_endpoint_copy_port_string

Copies the port of an endpoint as a string.

Declaration

char * nw_endpoint_copy_port_string(nw_endpoint_t endpoint);

Discussion

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

See Also

Address Endpoints

nw_endpoint_create_address

Creates a network endpoint with an address structure.

nw_endpoint_get_address

Accesses the address structure stored in an address endpoint.

nw_endpoint_copy_address_string

Copies the address of an endpoint as a string.