[Tutor] revisiting struct and bytes again.
nephish at gmail.com
Wed Oct 4 19:35:05 CEST 2006
this time my question is a bit simpler.
i can make a byte a string or number or whatever now. Up to the number 255.
I now have a problem with something that comes in as a 4 byte representation
the number of seconds since 1970.
I have been using ord(byte) to make sense of the messages so far, but i
don't know how to add bytes greater than 255.
the c program that sends us these defines the variable as an unsigned long
anyone know how to make these four bytes a number of seconds ?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor