Protocols/OSCAR/SNAC/ICQ DB QUERY/REQ INFORMATION/INFO SET AFFILAT

From NINA Wiki
Jump to navigation Jump to search
OSCAR Protocol
IntroductionTermsClients
Basic
DatatypesFLAPSNACTLV
UUIDsErrorsTool IDs
Host Interaction
Rate LimitsMigrationMessages
Other Services
ADMINADVERTALERT
BARTBOSBUCPCHAT
CHAT_NAV
Tutorials
Sign OnBARTRendezvous
ICBMLocateBuddies
Foodgroups
OSERVICE (0x0001)
LOCATE (0x0002)
BUDDY (0x0003)
ICBM (0x0004)
ADVERT (0x0005)
INVITE (0x0006)
ADMIN (0x0007)
POPUP (0x0008)
PD (0x0009)
USER_LOOKUP (0x000A)
STATS (0x000B)
TRANSLATE (0x000C)
CHAT_NAV (0x000D)
CHAT (0x000E)
ODIR (0x000F)
BART (0x0010)
FEEDBAG (0x0013)
ICQ (0x0015)
BUCP (0x0017)
ALERT (0x0018)
PLUGIN (0x0022)
UNNAMED_FG_24 (0x0024)
MDIR (0x0025)
ARS (0x044A)
ID Origin Name Foodgroup Service Status Version
0x0015, 0x0002 Client ICQ__DB_QUERY ICQ BOS Active 1.2


From Aleksandr Shutko: SNAC(15,02)/07D0/041A META_SET_AFFILATIONS_USERINFO


Client use this to change past/affilations user info. Server should reply via SNAC(15,03)/07DA/0096 which contain flag byte. If flag byte doesn't equal 0x0A - there was an error saving info.

 00 15   word   SNAC family
 00 02   word   SNAC subtype
 00 01   word   SNAC flags
 xx xx xx xx   dword   SNAC request-id
 00 01   word   TLV.Type(1) - encapsulated META_DATA
 xx xx   word   TLV.Length
 xx xx   word (LE)   data chunk size (TLV.Length-2)
 xx xx xx xx   dword (LE)   request owner uin
 D0 07   word (LE)   data type: META_DATA
 02 00   word (LE)   request sequence number
 1A 04   word (LE)   data subtype: META_SET_AFFIL_USERINFO
 03   char   number of past categories (allways 3)
 
 xx xx   word (LE)   past1 category code
 xx xx   word (LE)   past1 keyword string length
 xx .. xx 00   asciiz str   past1 keyword string
 xx xx   word (LE)   past2 category code
 xx xx   word (LE)   past2 keyword string length
 xx .. xx 00   asciiz str   past2 keyword string
 xx xx   word (LE)   past3 category code
 xx xx   word (LE)   past3 keyword string length
 xx .. xx 00   asciiz str   past3 keyword string
 
 03   char   number of aff categories (allways 3)
 
 xx xx   word (LE)   aff1 category code
 xx xx   word (LE)   aff1 keyword string length
 xx .. xx 00   asciiz str   aff1 keyword string
 xx xx   word (LE)   aff2 category code
 xx xx   word (LE)   aff2 keyword string length
 xx .. xx 00   asciiz str   aff2 keyword string
 xx xx   word (LE)   aff3 category code
 xx xx   word (LE)   aff3 keyword string length
 xx .. xx 00   asciiz str   aff3 keyword string


Example SNAC dump with flap header:


  2A 02 05 7F 00 70 00 15 00 02 00 00 00 1E 00 02 *....p..........
  00 01 00 62 60 00 31 DE 0B 00 D0 07 2E 00 1A 04 ...b`.1.........
  03 2E 01 0A 00 70 6B 65 79 77 6F 72 64 31 00 2C .....pkeyword1.,
  01 0A 00 70 6B 65 79 77 6F 72 64 32 00 2D 01 0A ...pkeyword2.-..
  00 70 6B 65 79 77 6F 72 64 33 00 03 C9 00 0A 00 .pkeyword3......
  67 6B 65 79 77 6F 72 64 31 00 C8 00 0A 00 67 6B gkeyword1.....gk
  65 79 77 6F 72 64 32 00 CC 00 0A 00 67 6B 65 79 eyword2.....gkey
  77 6F 72 64 33 00                               word3.