Hi all, I was trying to build a rather simple server (with a twist) using asyncore and got myself complicated. Well, here's the deal:
My server will handle multiple connections, some require reply, and some not (they will disconnect by themselves) all the clients want to to deliver binary data to a socket we'll call P socket. this socket is a device that hopefully always wating for new data (It's actually a hardware). The replies will come on a different socket, we'll call socket T. When the server receives a reply (again binary data) it will send it to all the "wating for reply" clients (the client will determine if it is for him or not). My problems arise when I need to write to socket P and then somehow, somewhen, read the responses from socket T. Hopefully, the description is clear enough I tried to use asyncore and got tangled up with the reactiveness of it. Any ideas? how to use it with asyncore? other implementations? -- http://mail.python.org/mailman/listinfo/python-list