low level data types

Diez B. Roggisch deets at nospam.web.de
Wed Feb 15 11:27:32 EST 2006


dementrio wrote:

> Thanks for the hint!
> 
> However now I have another problem - endianness (the client runs on
> powerpc, the server on x86). I found that simply reversing the stuff I
> recv() works, but is there any cleaner way for taking care of this?

Have you actually _read_ the struct documentation?

"""
Alternatively, the first character of the format string can be used to
indicate the byte order, size and alignment of the packed data, according
to the following table: 

...

"""

Diez



More information about the Python-list mailing list