Re: Why does the message send only once?

2007-10-16 Thread Bruno Desthuilliers
danfolkes a écrit : You already posted the same question here one hour and a half ago. Please avoid. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why does the message send only once?

2007-10-16 Thread Marc 'BlackJack' Rintsch
On Tue, 16 Oct 2007 15:55:31 +, danfolkes wrote: > Why does the message send only once? > > The node sends once, then fails after that. Because the `Server` just seems to handle the first connection and is done then. Insert some ``print``\s to see what's going on. Ciao

Re: Why does the message send only once?

2007-10-16 Thread Bjoern Schliessmann
danfolkes wrote: > Why does the message send only once? Because your server is designed to only accept one connection, wait forever except there is an exception, and quit thereafter. > def Server(address): > [...] > s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

Why does the message send only once?

2007-10-16 Thread danfolkes
Why does the message send only once? The node sends once, then fails after that. import socket import thread import time def Node(nodeAddress): '''connect to node and get its file load''' sN = socket.socket(socket.AF_INET, socket.SOCK_STREAM)