search for: myemconnection

Displaying 1 result from an estimated 1 matches for "myemconnection".

Did you mean: myconnection
2007 May 24
4
Multiple EM connections on separate threads
..., I can access each connection separately using: em_thread = Thread.new do EventMachine::run { t = Thread.current [:c1, :c2, :c3].each do |i| t[i] = EventMachine::connect host, port, IB::MyEMConnection puts "Established connection #{i} to address #{host}, port #{port}..." end # conn_list.each do |i| } # EventMachine::run { This means that all connections are running in one thread. What I would like to d...