Q: How to UDPServer ??

Peter Hansen peter at engcorp.com
Thu Jan 2 09:30:13 EST 2003


Ripper John wrote:
> 
> "Peter Hansen" <peter at engcorp.com> wrote:
> > Looks to me like you need to call serve_forever() on the UDPQuoteSrv
> > as well, but of course you can't do that on both servers from the
> > same thread and get useful results.  Try changing the last line above
> > to use the UDPQuoteSrv and see if it works.
> 
> You are right! serve_forever() can work!
> But, how can I run both servers in a .py file?

Learn about using threads...

-Peter




More information about the Python-list mailing list