Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Net::FTP#set_socket

set_socket(sock, get_greeting = true)

Set the socket used to connect to the FTP server.

May raise FTPReplyError if get_greeting is false.