method

connect_internal

Importance_1
connect_internal(local_addrinfo, timeout=nil) private

creates a new Socket connected to the address of local_addrinfo.

If local_addrinfo is nil, the address of the socket is not bound.

The timeout specify the seconds for timeout. Errno::ETIMEDOUT is raised when timeout occur.

If a block is given the created socket is yielded for each address.

Show source
Register or log in to add new notes.