public Socket(host as String, port as Int) throws IOException
Connects to the specified endpoint; an invalid endpoint is never treated as a request for an unconnected socket.
| Parameter | Description |
|---|---|
host | Required remote hostname. @param port Remote TCP port. |
socket = Socket("example.com", 80)