Re: asyncore based port splitter code questions

2010-01-08 Thread George Trojan
Thanks for your help. Some comments below. George Giampaolo Rodola' wrote: On 4 Gen, 18:58, George Trojan wrote: Secondly, to temporarily "sleep" your connections *don't* remove anything from your map. The correct way of doing things here is to override readable() and writable() methods and

Re: asyncore based port splitter code questions

2010-01-08 Thread Giampaolo Rodola'
On 4 Gen, 18:58, George Trojan wrote: > asyncore based code is supposed to be simple, > but I need while loops and a lot of try/except clauses. First of all: you DON'T have to use while loops or anything which is blocking where by "blocking" I mean anything like time.sleep(). asyncore, just like