method

open_socket

v1_8_6_287 - Show latest stable - Class: Net::FTP
open_socket(host, port)
private

No documentation available.

# 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