public Socket() throws IOException:
Creates a socket and connects when endpoint parameters are provided.