# File lib/rev/socket.rb, line 142 142: def initialize(family, addr, port, host = addr) 143: @host, @addr, @port = host, addr, port 144: @address_family = nil 145: 146: @socket = super(family, ::Socket::SOCK_STREAM, 0) 147: begin 148: @socket.connect_nonblock(::Socket.sockaddr_in(port, addr)) 149: rescue Errno::EINPROGRESS 150: end 151: end