Plz help..SocketServer UDP server losing lots of packets
I D
id.engg at gmail.com
Thu Nov 6 10:41:23 EST 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
> API's
> > within python.
>
> Why ?
@Sam@ That is the requirement of the assignment.
>
>
> > Even this seems to lose packets, I would really appreciate if any
> pointers
> > 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).
>
> --JamesMills
>
> --
> --
> -- "Problems are solved by method"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20081106/8840e2da/attachment-0001.html>
More information about the Python-list
mailing list