Creates a network endpoint with an address structure.
SDKs
- iOS 12.0+
- macOS 10.14+
- Mac Catalyst 13.0+
- tvOS 12.0+
- watchOS 5.0+
Framework
- Network
Declaration
nw _endpoint _t nw_endpoint_create_address(const struct sockaddr *address);
Creates a network endpoint with an address structure.
SDKs
Framework
nw _endpoint _t nw_endpoint_create_address(const struct sockaddr *address);
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.
nw _endpoint _copy _port _string
Copies the port of an endpoint as a string.