Method: Net::FTPS::Implicit#connect

Defined in:
lib/net/ftps_implicit.rb

#connect(host, port = FTP_PORT) ⇒ Object



54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/net/ftps_implicit.rb', line 54

def connect(host, port=FTP_PORT)
  @sock = open_socket(host, port)
  mon_initialize
  getresp
  at_exit {
    if @sock && !@sock.closed?
      voidcmd("ABOR") rescue EOFError
      voidcmd("QUIT") rescue EOFError
      close
    end
  }
end