makeAddressResolvingHost(_:port:)
Creates a new SocketAddress
for the given host (which will be resolved) and port.
static func makeAddressResolvingHost(_ host: String, port: Int) throws -> SocketAddress
Parameters
Returns
the SocketAddress
for the host / port pair.
Throws
a SocketAddressError.unknown
if we could not resolve the host
, or SocketAddressError.unsupported
if the address itself is not supported (yet).