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

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/03EA META_SET_BASIC_USERINFO


Client use this to change basic user information. Server should reply via SNAC(15,03)/07DA/0064 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
 EA 03   word (LE)   data subtype: META_SET_BASIC_USERINFO
 xx xx   word (LE)   nickname string length
 xx .. xx 00   asciiz str   nickname string
 xx xx   word (LE)   first name string length
 xx .. xx 00   asciiz str   first name string
 xx xx   word (LE)   last name string length
 xx .. xx 00   asciiz str   last name string
 xx xx   word (LE)   email string length
 xx .. xx 00   asciiz str   email string
 xx xx   word (LE)   home city string length
 xx .. xx 00   asciiz str   home city string
 xx xx   word (LE)   home state string length
 xx .. xx 00   asciiz str   home state string
 xx xx   word (LE)   home phone string length
 xx .. xx 00   asciiz str   home phone string
 xx xx   word (LE)   home fax string length
 xx .. xx 00   asciiz str   home fax string
 xx xx   word (LE)   home address string length
 xx .. xx 00   asciiz str   home address string
 xx xx   word (LE)   cell phone string length
 xx .. xx 00   asciiz str   cell phone string
 xx xx   word (LE)   home zip code string length
 xx .. xx 00   asciiz str   home zip code string
 xx xx   word (LE)   home country code
 xx   char   GMT offset
 xx   char   publish primary email flag


Example SNAC dump with flap header:


  2A 02 05 5F 00 B2 00 15 00 02 00 00 00 0B 00 02 *.._............
  00 01 00 A4 A2 00 31 DE 0B 00 D0 07 0E 00 EA 03 ......1.........
  09 00 4E 69 63 6B 4E 61 6D 65 00 0A 00 46 69 72 ..NickName...Fir
  73 74 4E 61 6D 65 00 09 00 4C 61 73 74 4E 61 6D stName...LastNam
  65 00 11 00 70 75 70 6B 69 6E 40 65 6D 61 69 6C e...pupkin@email
  2E 6F 72 67 00 09 00 48 6F 6D 65 63 69 74 79 00 .org...Homecity.
  04 00 53 74 61 00 11 00 2B 37 20 28 34 32 31 32 ..Sta...+7 (4212
  29 20 48 50 48 4F 4E 45 00 0F 00 2B 37 20 28 34 ) HPHONE...+7 (4
  32 31 32 29 20 48 46 41 58 00 0B 00 48 4F 4D 45 212) HFAX...HOME
  53 54 52 45 45 54 00 13 00 2B 37 20 28 39 30 32 STREET...+7 (902
  29 20 48 43 45 4C 4C 20 53 4D 53 00 06 00 31 31 ) HCELL SMS...11
  31 31 31 00 07 00 EC 01                         111.....