Method: Ftpd::Protocols#initialize

Defined in:
lib/ftpd/protocols.rb

#initialize(socket) ⇒ Protocols

Returns a new instance of Protocols.

Parameters:

  • socket (TCPSocket, OpenSSL::SSL::SSLSocket)

    The socket. It doesn’t matter whether it’s the server socket (the one on which #accept is called), or the socket returned by #accept.



21
22
23
# File 'lib/ftpd/protocols.rb', line 21

def initialize(socket)
  @socket = socket
end