On 7 Feb 2007 19:14:13 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > struct module pack and unpack will only work for fixed size buffer : > pack('>1024sIL', buffer, count. offset) but the buffer size can vary > from one packet to the next :-(
Then send the size of the buffer before the buffer, so the recipient can expect that many bytes. -- Felipe. -- http://mail.python.org/mailman/listinfo/python-list