Method: Net::FTP#set_socket
- Defined in:
- lib/net/ftp.rb
#set_socket(sock, get_greeting = true) ⇒ Object
Set the socket used to connect to the FTP server.
May raise FTPReplyError if get_greeting is false.
432 433 434 435 436 437 438 439 |
# File 'lib/net/ftp.rb', line 432 def set_socket(sock, get_greeting = true) synchronize do @sock = sock if get_greeting voidresp end end end |