471,325 Members | 1,513 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,325 software developers and data experts.

building a rather simple server in python

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?

Aug 10 '07 #1
0 693

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Jeremy Sanders | last post: by
1 post views Thread by Ed | last post: by
10 posts views Thread by James Stroud | last post: by
20 posts views Thread by Thorsten Kampe | last post: by
reply views Thread by boazin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.