public InetSocketAddress(host as String, port as Int):
Creates an internet socket address from host and port.
| Parameter | Description |
|---|---|
host | Host name or textual address. An empty value binds to all interfaces. |
port | Port in the inclusive range 0..65535. |
import klyn.net
endpoint = InetSocketAddress("localhost", 8080)
assert endpoint.port == 8080