hex sending

hiroc hiroc13 at hotmail.com
Wed Oct 4 04:30:01 EDT 2006


I want send pairs of hexadecimal characters, abc is only my test hex
char is real





Fredrik Lundh wrote:
> "hiroc" wrote:
>
> > s.send("abc") # send test string
> >
> > I need to send hex:"10 06 00 0f 02 bc d1" instead of "abc"
>
> do you want to send seven binary bytes, or pairs of hexadecimal characters
> separated by whitespace ?
>
> how do you map from "abc" to "10 06 00 0f 02 bc d1", by the way?  what
> encoding is that?
> 
> </F>




More information about the Python-list mailing list