Class: OSC::Connection

Inherits:
EventMachine::Connection
  • Object
show all
Defined in:
lib/osc-ruby/em_server.rb

Instance Method Summary collapse

Instance Method Details

#receive_data(data) ⇒ Object



7
8
9
10
# File 'lib/osc-ruby/em_server.rb', line 7

def receive_data(data)
  ip_info = get_peername[2,6].unpack("nC4")
  Channel << OSC::OSCPacket.messages_from_network(data, ip_info)
end