method
open_socket
open_socket(host, port)
private
Hide source
# File lib/net/ftp.rb, line 154 def open_socket(host, port) if defined? SOCKSsocket and ENV["SOCKS_SERVER"] @passive = true return SOCKSsocket.open(host, port) else return TCPSocket.open(host, port) end end