To make up a packet in python, with this format:
1 Byte (seq)+ 1 Byte (length) + N Bytes data (data, n<255),
then it will be easy to just:
newdata = chr(seq)+chr(len(data)+data
then data will be just a sequence of chars.
Thursday, December 07, 2006
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment