To Kill a Process that is Accepting Connection on Socket

2006-10-27 Thread mumebuhi
I removed my previous post about this topic because I apparently have pasted the wrong code. Sorry for the confusion and thanks for being patient. I am having problem to kill the following script completely. The script basically does the following. The main thread creates a new thread, which does

Re: To Stop a Process that is Waiting on socket.accept()

2006-10-26 Thread mumebuhi
Hi Steve, The output is as the following (excluding the "---start---" and "---end---"): ---start--- die now Traceback (most recent call last): File "../../../scratch/python/tmp.py", line 39, in ? channel, details = server.accept() File "/usr/lib/python2.4/socket.py", line 169, in accept

To Stop a Process that is Waiting on socket.accept()

2006-10-26 Thread mumebuhi
I am having problem to kill the following script completely. The script basically does the following. The main thread creates a new thread, which does a completely useless thing, and then starts excepting for a connection via socket. # start import pickle import signal import simplejson import soc

Re: Sending Dictionary via Network

2006-10-24 Thread mumebuhi
Bruno Desthuilliers wrote: > mumebuhi a écrit : > > Hi, > > > > Is it possible to send a non-string object from a Python program to > > another? I particularly need to send a dictionary over to the other > > program. However, this is not possible using the so

Re: Sending Dictionary via Network

2006-10-24 Thread mumebuhi
Thank you very much for the reply. Can pickle work directly with socket? The way I am doing right now is to pickle the object to a file then send the file content through the socket. -- http://mail.python.org/mailman/listinfo/python-list

Sending Dictionary via Network

2006-10-24 Thread mumebuhi
Hi, Is it possible to send a non-string object from a Python program to another? I particularly need to send a dictionary over to the other program. However, this is not possible using the socket object's send() function. Help? Buhi -- http://mail.python.org/mailman/listinfo/python-list