udp, datagram sockets

7stud bbxx789_05ss at yahoo.com
Mon Aug 6 14:34:57 EDT 2007


On Aug 6, 11:05 am, Jean-Paul Calderone <exar... at divmod.com> wrote:
>
> The network is probably dropping some of your data, causing the server
> to never see the termination marker.  
>

As far as I can tell, the output disproves that notion.  If the
termination character were somehow lost in transmission, then this
statement:

        print "Received message:\n%s" % message[:-1]

would produce the output:


        Received message:
        hell

since the print statement chops off the last character of the received
data.




More information about the Python-list mailing list