Functions

Finds a random available TCP port.

Converts an object into a resolved SocketAddr.

Attempts to parse a socket_addr. If no port is defined, it just accepts the address and uses the given default port.