socket.recvfrom() & sendto()

Steve Holden sholden at holdenweb.com
Tue May 8 03:11:52 EDT 2001


"Ron Johnson" <ron.l.johnson at home.com> wrote in ...
> Ulrich Berning wrote:
>
[Ulrich's suggestion]
> This is exactly what I want!  I might, though, try threading,
> since global data must be kept: depending on what client1 does,
> data is sent to client2..clientN.
>
> This is looking more and more like a chat program, where clients
> and server are chatting back and forth, instead of clients chatting.
>
> Still, I have to think how the client can wait for a possible message
> from the server while simultaneously letting the client do "stuff"
> like send messages to the server.  Threading at the client, too?
> One thread waiting for chat from the server, while the other waits
> for user input to send to the server?
>
> Something seems too complicated here...
>
Ron, you really should take a look at Medusa, Sam Rushing's asyncore-based
technology. For your requirements it seems almost ideally-suited, and it's
not *too* badly documented for a Python project ;-)

regards
 Steve





More information about the Python-list mailing list