[icq-devel] Additional Emails count



Remy Lebeau 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
correctly).

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
    }

Gambit

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



More information about the icq-devel mailing list