The OpenD Programming Language

SocketStream.connect

Make connection to remote site. Bind, handle connection error, try several addresses, etc

class SocketStream
connect
(
string host
,
ushort port
,
Duration timeout = 10.seconds
)

Meta