Class: OSC::EMServer

Inherits:
Object
  • Object
show all
Defined in:
lib/patch/em_patch.rb

Instance Method Summary collapse

Instance Method Details

#openObject



10
11
12
# File 'lib/patch/em_patch.rb', line 10

def open
  EM::open_datagram_socket("0.0.0.0", @port, Connection)
end

#remove_method(address_pattern) ⇒ Object



14
15
16
17
18
# File 'lib/patch/em_patch.rb', line 14

def remove_method(address_pattern)
  matcher = AddressPattern.new( address_pattern )

  @tuples.delete_if { |pattern, proc| pattern == matcher }
end

#runObject



6
7
8
# File 'lib/patch/em_patch.rb', line 6

def run
  open
end