Displaying 1 result from an estimated 1 matches for "eventmachine_test".
2008 Jan 06
5
Having very odd problems with UDP.
...Bound
(EventMachine::ConnectionNotBound)
from d:/ruby/lib/ruby/gems/1.8/gems/eventmachine-0.8.1-x86-mswin32/lib/eventmachine.rb:223:in
`release_machine''
from d:/ruby/lib/ruby/gems/1.8/gems/eventmachine-0.8.1-x86-mswin32/lib/eventmachine.rb:223:in
`run''
from eventmachine_test.rb:26
This snippet of code kind of works..
module EchoServer
def receive_data data
puts data
send_data ">>>you sent: #{data}"
if data =~ /quit/i
puts "quitting"
close_connection
EventMachine::stop_event_loop
end...