method

connect_internal

v2_2_9 - Show latest stable - Class: Addrinfo
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.