Class: Hoof::ControlServer
- Inherits:
-
EventMachine::Connection
- Object
- EventMachine::Connection
- Hoof::ControlServer
- Defined in:
- lib/hoof/control_server.rb
Instance Method Summary collapse
Instance Method Details
#receive_data(data) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/hoof/control_server.rb', line 4 def receive_data data puts "Comand #{data}" result = send data send_data result close_connection_after_writing end |