class

Socket

Inherits Crystal::System::Socket < IO::Buffered < IO < Reference < Object

Instance methods

connect(addr, timeout = nil, &)

Tries to connect to a remote address. Yields an IO::TimeoutError or an Socket::ConnectError error if the connection failed.

Source