Re: [Tutor] socket and lost data

2006-01-27 Thread le dahut
for the second sending so how can I resolve this problem ? Putting a time.sleep() in the client is ineffective ... Any idea ? Kent Johnson a écrit : > le dahut wrote: > >>Hi, >>I try to send some data across a network (between 400KB and 10MB) like >>this : >

Re: socket examples

2006-01-24 Thread le dahut
le 1: data += conn.recv(1024) if data[-5:] == '#': #the end of the data break data2='1'*1024*1024 data2=data2[:-5]+'#' #the end of the data conn.send(data2) conn.close() Fredrik Lundh a écrit : > "le

socket examples

2006-01-24 Thread le dahut
Hi, I've read the Gordon McMillan's "Socket Programming HOWTO" and I'm looking for other documents that show examples on how to write a socket server that can answer multiple clients at the same time. Does someone know where I can find those documents/tutorials ? Very thanks, K. -- http://mail

network parameters

2005-09-14 Thread le dahut
Hi, Is there a way to get network parameters (number of network interfaces, ip address(es), DNS, gateway) on a linux station using python 2.3 ? Klaas -- http://mail.python.org/mailman/listinfo/python-list