Class: EtherPing::Server::ConnectionWrapper

Inherits:
Object
  • Object
show all
Includes:
Connection
Defined in:
lib/ether_ping/server.rb

Instance Method Summary collapse

Methods included from Connection

#receive_data

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