Talk:MSNC:Client ID
From MSNPiki
Hello there
are those IDs set to 2^n?
how does the server recognize the 2 + 8 from the 10 ?
thank you Elie
- Since 2 and 8 are the only 2^n which sum up to 10 there are no collisions. A sum always contains the largest 2^n smaller than the sum. To get the next smaller number, substract the larger 2^n from the sum and repeat.
- Example:
- Sum is 10
- The 2^n lesser than or equal to 10 are 1, 2, 4 and 8.
- Since 8 is the largest it is a part of 10.
- New sum is 10 - 8 = 2
- The 2^n lesser than or equal to 2 are 1 and 2.
- Since 2 is the largest is is a part of 2 and a part of the 10.
- New sum is 2 - 2 = 0
- Since the sum is now zero, there are no more parts.
- --Shredder 00:39, 2 Aug 2005 (NZST)
Custom ClientID flag
Are there any "standard" among developers about inventing custom ClientID flags? I use flag 0x4000000 for telling the users is on Phpmsn. --Shredder 01:43, 2 Aug 2005 (NZST)
As Microsoft probably will add more functions later, wouldn't it be better to only use one ClientID flag to tell you'r using a non-msn messenger-client?
For my client to be backwards-compitable with older versions of it self, i added ClientID flag 67108864 to tell that it will send a text/x-clientinfo message if somebody requests it with a text/x-requestclientinfo msg. Then it will send something like
MIME-Version: 1.0
Content-Type: text/x-clientinfo
Client-Name: Alltech's Messenger
Client-Hash: MD5("Alltech's Messenger")
Client-Version: 1.0.0
Client-ID: 1
Where the Client-ID is my owns values. (currently only 1 for moving DP's like GIF's)
Somebody else than me that feels like adding something like that to their client? Then we could make our own archive with client-ids etc..
Alltech

