lib/osc-ruby/em_server.rb in osc-ruby-0.7.0 vs lib/osc-ruby/em_server.rb in osc-ruby-1.0.0
- old
+ new
@@ -3,10 +3,11 @@
module OSC
Channel = EM::Channel.new
class Connection < EventMachine::Connection
def receive_data data
- Channel << OSC::OSCPacket.messages_from_network( data )
+ ip_info = get_peername[2,6].unpack "nC4"
+ Channel << OSC::OSCPacket.messages_from_network( data, ip_info )
end
end
class EMServer