pub fn derive_socket_addr(host: &str, port: &str) -> SocketAddr
Expand description

Derive the std::net::SocketAddr from a given host and port, falling back to a DNS lookup using std::net::ToSocketAddrs if the host is not a valid IP address.