method
open_socket
v1_9_2_180 -
Show latest stable
- Class:
Net::FTP
open_socket(host, port)private
No documentation available.
# File lib/net/ftp.rb, line 184
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