[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Re: pygame networking



Don't know if it will work in your situation, but a Dameon thread (self.setDaemon (True)) will exit when the main thread exits.. also the sys.exit() call should terminate all threads. But this doesn't help if you want to do kill threads while the program is running.

Frode


Bryce Allen wrote:
I have Trac/svn for my pygame networking project, courtesy of webfaction.com. Here is the URL:

http://pygamenetworking.python-hosting.com

I haven't had much time to work on the project, but I did post some code. At the moment I'm trying to figure out how to properly kill off a thread that's blocking on socket calls. Does anyone have a simple example of threading with the python socket API?

Thanks,
Bryce