= private = protected
set_socket(sock, get_greeting = true)
Set the socket used to connect to the FTP server.
May raise FTPReplyError if get_greeting is false.
# File lib/net/ftp.rb, line 399 def set_socket(sock, get_greeting = true) synchronize do @sock = sock if get_greeting voidresp end end end