PRoblem with UDP sockets

Steve Holden sholden at holdenweb.com
Fri Feb 16 09:28:36 EST 2001


"Pierre Blanchet" <Pierre.Blanchet at solsoft.fr> wrote in message
news:mailman.982332924.15258.python-list at python.org...
> I'm trying to code a TFTP client with python 1.5.2 under
> Linux.
>
> I cannot find a way to send UDP packets shorter than 14
> bytes.
>
> By example, if i try to send (using sendto) the string ' 0
> 4 0 1', i get on the wire '0 4 0 1 1 1 1 1 1 1 1 1 1 1 1' althougth
> sendto tell me it has send 4 bytes.
>
> Do i do something wrong ? Is there a bug in python in Linux
> ?
>
> TIA,
>
> Pierre.
>
Have you checked the data length in the UPD header? Wondered whether this
might be more to do with the minimum Ethernet frame size...

regards
 Steve
--
Tools, training and technology to help you meet your information needs








More information about the Python-list mailing list