newbie sending hex values over UDP socket

Grant Edwards grante at
Tue Sep 14 21:58:12 CEST 2004

On 2004-09-14, Bill Seitz <fluxent at> wrote:

> OK, so I'm clear on sending a string.
> If I want to send a numeric value, do I use something like
>   struct.pack('b',int)
> ?

That will work, but for single characters, chr() is simpler:


Grant Edwards                   grante             Yow!  MMM-MM!! So THIS is
                                  at               BIO-NEBULATION!

More information about the Python-list mailing list