Class: EtherPing::Server::ConnectionWrapper
- Inherits:
-
Object
- Object
- EtherPing::Server::ConnectionWrapper
- Includes:
- Connection
- Defined in:
- lib/ether_ping/server.rb
Instance Method Summary collapse
-
#initialize(socket) ⇒ ConnectionWrapper
constructor
A new instance of ConnectionWrapper.
- #send_data(data) ⇒ Object
Methods included from Connection
Constructor Details
#initialize(socket) ⇒ ConnectionWrapper
Returns a new instance of ConnectionWrapper.
28 29 30 |
# File 'lib/ether_ping/server.rb', line 28 def initialize(socket) @socket = socket end |
Instance Method Details
#send_data(data) ⇒ Object
32 33 34 |
# File 'lib/ether_ping/server.rb', line 32 def send_data(data) @socket.send data, 0 end |