FiberSocket.connect

void connect(scope const(char)[] host, ushort port) @trusted

Connect to a remote host. Yields until connected or an error occurs.

Parameters

hostHostname or IP address string.
portRemote port number.

Throws

FiberIoException on connection failure.