Class: ItunesController::QuitCommand
- Inherits:
-
ServerCommand
- Object
- ServerCommand
- ItunesController::QuitCommand
- Defined in:
- lib/itunesController/controllserver.rb
Overview
The QUIT command caused the client to disconnect
Instance Attribute Summary
Attributes inherited from ServerCommand
#name, #requiredLoginState, #singleThreaded
Instance Method Summary collapse
-
#initialize(state, itunes) ⇒ QuitCommand
constructor
The constructor.
-
#processData(line, io) ⇒ Boolean, String
Sends the response to the client “221 bye” and causes the client to disconnect.
Methods inherited from ServerCommand
#executeSingleThreaded, #processLine
Constructor Details
#initialize(state, itunes) ⇒ QuitCommand
The constructor
174 175 176 |
# File 'lib/itunesController/controllserver.rb', line 174 def initialize(state,itunes) super(ItunesController::CommandName::QUIT,nil,false,state,itunes) end |
Instance Method Details
#processData(line, io) ⇒ Boolean, String
Sends the response to the client “221 bye” and causes the client to disconnect
184 185 186 |
# File 'lib/itunesController/controllserver.rb', line 184 def processData(line,io) return false, "221 bye\r\n" end |