[icq-devel] Additional Emails count



Vadim Winebrand amilw at bezeqint.net
Thu Sep 11 03:40:29 CEST 2003


Thanx

So what are the rules?. when the server gives 0 or actual count?
----- Original Message ----- 
From: "Remy Lebeau" <gambit47 at yahoo.com>
To: <icq-devel at blipp.com>
Sent: Thursday, September 11, 2003 2:10 AM
Subject: Re: [icq-devel] Additional Emails count


> 
> --- 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
> -------------------------------------------------
> icq-devel - The forum for ICQ protocol discussion
> For unsubscribe and other mailing list info, see:
> http://www.d.kth.se/~d95-mih/icq/icq-devel/
> 
> 




More information about the icq-devel mailing list