Hi all,
I will try to be as clear as possible with my application, maybe ppl familiar with asyncore can help me out :-) Basically, I have python 2.5 in SuSe running with a server written using asynchat. I use it to connect to several clients inside the asyncore.loop construct.
This part of the application works fine. However, along with talking to clients through sockets, I need to talk to some Spread groups, obviously using spread. My problem is that all of my spread communication called from a single poll, and my spread implementation is blocking. I'm looking for a way to have the asyncore loop coexist with my spread polling function.
The end result would be, for instance, getting a spread message, and writing it to the appropriate specified socket. Alternatively, I'd like to be able to get spread messages while servicing a socket. Is there a way to do this without queues?
Thanks for everyone's help!
I will try to be as clear as possible with my application, maybe ppl familiar with asyncore can help me out :-) Basically, I have python 2.5 in SuSe running with a server written using asynchat. I use it to connect to several clients inside the asyncore.loop construct.
This part of the application works fine. However, along with talking to clients through sockets, I need to talk to some Spread groups, obviously using spread. My problem is that all of my spread communication called from a single poll, and my spread implementation is blocking. I'm looking for a way to have the asyncore loop coexist with my spread polling function.
The end result would be, for instance, getting a spread message, and writing it to the appropriate specified socket. Alternatively, I'd like to be able to get spread messages while servicing a socket. Is there a way to do this without queues?
Thanks for everyone's help!