Displaying 2 results from an estimated 2 matches for "conn_list".
Did you mean:
chan_list
2007 May 24
4
Multiple EM connections on separate threads
...nt
[: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 do, is make each connection run in a separate
thread. I have tried unsuccessfully to do this two ways.
First, by starting a new thread inside the EM::run{..}...
2000 Jun 23
2
tinc 0.3.3 vs. 1.0pre2
...ave to
modify netutl.c like I did for tinc 0.3.3 (which is working fine that way):
diff -u tinc-1.0pre2/src/netutl.c tinc-1.0pre2-i2c/src/netutl.c
--- tinc-1.0pre2/src/netutl.c Wed May 31 20:23:06 2000
+++ tinc-1.0pre2-i2c/src/netutl.c Fri Jun 23 14:14:42 2000
@@ -56,6 +56,9 @@
for(p = conn_list; p != NULL; p = p->next)
if(((ip & p->vpn_mask) == (p->vpn_ip & p->vpn_mask)) &&
p->status.active)
return p;
+ p = conn_list;
+ if(p->status.outgoing)
+ return p;
cp
return NULL;
}
This small patch causes everything to be sent to the uplink...