Class: ItunesController::HelloCommand
- Inherits:
-
ServerCommand
- Object
- ServerCommand
- ItunesController::HelloCommand
- Defined in:
- lib/itunesController/controllserver.rb
Overview
The HELO command is used to check that the server is respoinding
Instance Attribute Summary
Attributes inherited from ServerCommand
#name, #requiredLoginState, #singleThreaded
Instance Method Summary collapse
-
#initialize(state, itunes) ⇒ HelloCommand
constructor
The constructor.
-
#processData(line, io) ⇒ Boolean, String
Sends a response to the client “220 ok”.
Methods inherited from ServerCommand
#executeSingleThreaded, #processLine
Constructor Details
#initialize(state, itunes) ⇒ HelloCommand
The constructor
153 154 155 |
# File 'lib/itunesController/controllserver.rb', line 153 def initialize(state,itunes) super(ItunesController::CommandName::HELO,nil,false,state,itunes) end |
Instance Method Details
#processData(line, io) ⇒ Boolean, String
Sends a response to the client “220 ok”
163 164 165 |
# File 'lib/itunesController/controllserver.rb', line 163 def processData(line,io) return true, "220 ok\r\n" end |