Plz help..SocketServer UDP server losing lots of packets
id.engg at gmail.com
Thu Nov 6 16:41:23 CET 2008
On Thu, Nov 6, 2008 at 10:27 AM, James Mills
<prologic at shortcircuit.net.au>wrote:
> On Fri, Nov 7, 2008 at 12:57 AM, I D <id.engg at gmail.com> wrote:
> > Thanks for your response.
> > But I cannot use a third party software, I need to use the exisiting
> > within python.
> Why ?
@Sam@ That is the requirement of the assignment.
> > Even this seems to lose packets, I would really appreciate if any
> > can be provided to improve my code.
> You do realize that UDP is the User Datagram
> Protocol and has no Control mechanisms.
> You _cannot_ guarantee that packets will
> arrive in the right order, if at all.
@Sam@ I understand that, but a similar UDP server written in C works
perfect, not even a single packet loss, that leads me to believe that I am
not doing something right in my python code.
> In all my tests however on local machines
> and across machines in a LAN, I don't
> loose packets. I do recommend you use
> circuits (or twisted).
> -- "Problems are solved by method"
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list