Class: OSC::SimpleClient
- Inherits:
-
Object
- Object
- OSC::SimpleClient
- Defined in:
- lib/osc.rb
Instance Method Summary collapse
-
#initialize(host, port) ⇒ SimpleClient
constructor
A new instance of SimpleClient.
- #send(mesg) ⇒ Object
Constructor Details
#initialize(host, port) ⇒ SimpleClient
Returns a new instance of SimpleClient.
366 367 368 369 |
# File 'lib/osc.rb', line 366 def initialize(host, port) @so = UDPSocket.new @so.connect(host, port) end |
Instance Method Details
#send(mesg) ⇒ Object
371 372 373 |
# File 'lib/osc.rb', line 371 def send(mesg) @so.send(mesg.encode, 0) end |