makeAddressResolvingHost(_:port:)

Creates a new SocketAddress for the given host (which will be resolved) and port.

SocketAddresses.swift:467
static func makeAddressResolvingHost(_ host: String, port: Int) throws -> SocketAddress

Parameters

host

the hostname which should be resolved.

port

the port itself

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).