method
tcp_socket
v2_5_5 -
Show latest stable
- Class:
Net::IMAP
tcp_socket(host, port)private
No documentation available.
# File lib/net/imap.rb, line 1131
def tcp_socket(host, port)
Socket.tcp(host, port, :connect_timeout => @open_timeout)
rescue Errno::ETIMEDOUT
raise Net::OpenTimeout, "Timeout to open TCP connection to " +
"#{host}:#{port} (exceeds #{@open_timeout} seconds)"
end