[icq-devel] Additional Emails count
gambit47 at yahoo.com
Thu Sep 11 01:10:36 CEST 2003
--- Vadim Winebrand <amilw at bezeqint.net> wrote:
> Does someone have more info about this?
Yup, the count byte is definately 0 in your sample
(just had to make sure you processed the bytes
Since the email addresses are the last data in the
packet after all of the other stuff, once you have
made it to the count byte, you could just process the
remaining data in a loop until you reach the end of
the packet. Then it won't matter what the count byte
actually states. For example:
... process other data...
count = read byte
... ignore count ...
while (position < packetsize)
flag = read byte
increment position by 1
length = read LE word
increment position by 2
email = read length bytes
increment position by length
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
More information about the icq-devel