Create a host endpoint with a hostname and port.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+Beta
A string representation of the hostname or address, such as
.0 .0 .1
A string containing the port on the host, such as
If the hostname is a domain name, such as
www, starting a connection to the host endpoint causes the hostname to be resolved to an address during the connection process. If the hostname is an IPv4 or IPv6 address, such as
fe80::, starting a connection to the host endpoint will cause the address to be used directly.