public Socket(host as String, port as Int) throws IOException:
Creates a socket and connects when endpoint parameters are provided.