Re: Plz help..SocketServer UDP server losing lots of packets

2008-11-06 Thread I D
Hello James, Thanks for your response. But I cannot use a third party software, I need to use the exisiting API's within python. As I am new to python, I suspected that I should go by a simpler approach and so scrapped off the below code and wrote a very simple UDP server code as follows:

Re: Plz help..SocketServer UDP server losing lots of packets

2008-11-06 Thread James Mills
On Fri, Nov 7, 2008 at 12:57 AM, I D [EMAIL PROTECTED] wrote: Thanks for your response. But I cannot use a third party software, I need to use the exisiting API's within python. Why ? Even this seems to lose packets, I would really appreciate if any pointers can be provided to improve my

Re: Plz help..SocketServer UDP server losing lots of packets

2008-11-06 Thread I D
On Thu, Nov 6, 2008 at 10:27 AM, James Mills [EMAIL PROTECTED]wrote: On Fri, Nov 7, 2008 at 12:57 AM, I D [EMAIL PROTECTED] wrote: Thanks for your response. But I cannot use a third party software, I need to use the exisiting API's within python. Why ? @Sam@ That is the requirement of

Re: Plz help..SocketServer UDP server losing lots of packets

2008-11-06 Thread Ben Sizer
On Nov 6, 12:46 am, James Mills [EMAIL PROTECTED] wrote: Try these instead:  * UDPServer -http://trac.softcircuit.com.au/circuits/browser/examples/udpserver.py  * UDPClient   -http://trac.softcircuit.com.au/circuits/browser/examples/udpclient.py Since there's no contact details on the

Re: Plz help..SocketServer UDP server losing lots of packets

2008-11-06 Thread Steve Holden
I D wrote: Hello James, Thanks for your response. But I cannot use a third party software, I need to use the exisiting API's within python. As I am new to python, I suspected that I should go by a simpler approach and so scrapped off the below code and wrote a very simple UDP server code as

Re: Plz help..SocketServer UDP server losing lots of packets

2008-11-06 Thread James Mills
On Fri, Nov 7, 2008 at 1:43 AM, Ben Sizer [EMAIL PROTECTED] wrote: On Nov 6, 12:46 am, James Mills [EMAIL PROTECTED] wrote: Try these instead: * UDPServer -http://trac.softcircuit.com.au/circuits/browser/examples/udpserver.py * UDPClient

Plz help..SocketServer UDP server losing lots of packets

2008-11-05 Thread id . engg
logFileName = 'log.txt' logfile = open(logFileName, a) class MyUDPServer(SocketServer.UDPServer): def server_bind(self): self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF, 8388608)

Re: Plz help..SocketServer UDP server losing lots of packets

2008-11-05 Thread James Mills
On Thu, Nov 6, 2008 at 9:53 AM, [EMAIL PROTECTED] wrote: logFileName = 'log.txt' logfile = open(logFileName, a) class MyUDPServer(SocketServer.UDPServer): def server_bind(self): self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF,