Class OSC::UDPServer
In: lib/osc/udp.rb
Parent: OSC::UDPSocket

Methods

reply   serve  

Included Modules

Server

Constants

MAX_MSG_SIZE = 32768

Public Instance methods

send msg2 as a reply to msg1

[Source]

    # File lib/osc/udp.rb, line 25
25:     def reply(msg1, msg2)
26:       domain, port, host, ip = msg2.source
27:       send(msg2, 0, host, port)
28:     end

[Source]

    # File lib/osc/udp.rb, line 17
17:     def serve
18:       loop do
19:         p, sender = recvfrom(MAX_MSG_SIZE)
20:         dispatch p
21:       end
22:     end

[Validate]