Skip to content

socket

In std/io/net.

fn socket(host: String, port: Int) : Socket

The TCP endpoint host on port, as a Socket. Constructing it opens no connection.