A beginner's question on thread
Timothy Wu
huggiepython at graffiti.idv.tw
Tue Apr 6 06:00:33 EDT 2004
Aurelio Martin wrote:
> Well, when the user wants to exit, the main thread could open a socket
> connection to the server thread, and send a special message telling it
> to stop.
>
> The server thread would have to distinguish between normal connections
> from clients and special connections from the main thread.
>
> Hope this helps
>
> Aurelio
I've thought about doing that and I thought that was more of a hack.
Is it the proper way to handle it?
Timothy
More information about the Python-list
mailing list