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

From NINA Wiki
Revision as of 06:14, 14 February 2021 by AD (talk | contribs) (Created page with " {{Protocols/OSCAR}} {{Protocols/OSCAR/SNAC/Stats |origin={{Protocols/OSCAR/SNAC/ICQ__DB_QUERY/Origin}} |name=ICQ__DB_QUERY |id=0x0015, 0x0002 |foodgroup=ICQ |service={{Protoc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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/0C3A CLI_SET_FULLINFO


This is client tlv-based set personal info request used by ICQLite. Server should respond with SNAC(15,03)/07DA/0C3F - which contain result flag. This snac contain tlv chain and this chain may contain several TLVs of same type (for example 3 tlv(0x186) - language codes). Client can change all its information via single packet. See also list of TLVs that modern clients use in TLV-based requests.

 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_REQ
 02 00   word (LE)   request sequence number
 3A 0C   word (LE)   data subtype: CLI_SET_FULLINFO
 xx xx   word (LE)   TLV.Type(0x0xxxx) - info to save
 xx xx   word (LE)   TLV.Length
 xx xx     info data (format depends on tlv type)
 ....   ....   ....
 xx xx   word (LE)   TLV.Type(0x0xxxx) - info to save
 xx xx   word (LE)   TLV.Length
 xx xx     info data (format depends on tlv type)



Example SNAC dump with flap header:


  2a 02 14 34 02 9f 00 15  00 02 00 00 00 0e 00 02  *..4............
  00 01 02 91 8f 02 8f e4  5e 00 d0 07 7f 4e 3a 0c  ........^...?N:.
  5e 01 15 00 12 00 70 72  69 6d 61 72 79 40 65 6d  ^.....primary@em
  61 69 6c 2e 6f 72 67 00  01 5e 01 17 00 14 00 73  ail.org..^.....s
  65 63 6f 6e 64 61 72 79  40 65 6d 61 69 6c 2e 6f  econdary@email.o
  72 67 00 00 5e 01 12 00  0f 00 74 68 69 72 64 40  rg..^.....third@
  6d 61 69 6c 2e 6f 72 67  00 00 76 02 15 00 13 00  mail.org..v.....
  2b 37 20 28 39 30 32 29  20 31 31 31 31 31 31 31  +7 (902) 1111111
  31 31 00 80 02 14 00 12  00 2b 37 20 28 34 32 31  11.......+7 (421
  32 29 20 32 32 32 32 32  32 32 00 8a 02 14 00 12  2) 2222222......
  00 2b 37 20 28 39 30 32  29 20 33 33 33 33 33 33  .+7 (902) 333333
  33 33 00 c6 02 14 00 12  00 2b 37 20 28 34 32 31  33.......+7 (421
  32 29 20 34 34 34 34 34  34 34 00 d0 02 14 00 12  2) 4444444......
  00 2b 37 20 28 34 32 31  32 29 20 35 35 35 35 35  .+7 (4212) 55555
  35 35 00 90 01 08 00 06  00 48 43 69 74 79 00 9a  55.......HCity..
  01 06 00 04 00 48 53 74  00 a4 01 02 00 07 00 20  .....HSt.......
  03 08 00 06 00 4f 43 69  74 79 00 2a 03 06 00 04  .....OCity.*....
  00 4f 73 74 00 34 03 02  00 07 00 62 02 0e 00 0c  .Ost.4.....b....
  00 48 6f 6d 65 41 64 64  72 65 73 73 00 6c 02 04  .HomeAddress.l..
  00 67 2b 00 00 13 02 1c  00 00 00 18 00 68 74 74  .g+..........htt
  70 3a 2f 2f 68 6f 6d 65  2e 77 65 62 70 61 67 65  p://home.webpage
  2e 75 72 6c 00 16 03 01  00 ec 54 01 0b 00 09 00  .url......T.....
  4e 69 63 6b 4e 61 6d 65  00 40 01 0c 00 0a 00 46  NickName.@.....F
  69 72 73 74 4e 61 6d 65  00 4a 01 0b 00 09 00 4c  irstName.J.....L
  61 73 74 4e 61 6d 65 00  58 02 12 00 10 00 75 73  astName.X.....us
  65 72 5f 61 62 6f 75 74  5f 74 65 78 74 00 72 01  er_about_text.r.
  02 00 18 00 7c 01 01 00  02 3a 02 06 00 bb 07 03  ....|....:......
  00 0e 00 86 01 02 00 44  00 86 01 02 00 37 00 86  .......D.....7..
  01 02 00 26 00 b8 01 0d  00 0b 00 44 65 70 61 72  ...&.......Depar
  74 6d 65 6e 74 00 c2 01  0b 00 09 00 50 6f 73 69  tment.......Posi
  74 69 6f 6e 00 ae 01 0a  00 08 00 43 6f 6d 70 61  tion.......Compa
  6e 79 00 94 02 0e 00 0c  00 57 6f 72 6b 41 64 64  ny.......WorkAdd
  72 65 73 73 00 a8 02 06  00 04 00 57 53 74 00 9e  ress.......WSt..
  02 08 00 06 00 57 43 69  74 79 00 da 02 1a 00 18  .....WCity......
  00 68 74 74 70 3a 2f 2f  77 6f 72 6b 2e 77 65 62  .http://work.web
  70 61 67 65 2e 75 72 6c  00 bc 02 04 00 ce 56 00  page.url......V.
  00 b2 02 02 00 07 00 cc  01 02 00 05 00 ea 01 12  ................
  00 64 00 0e 00 69 6e 74  65 72 65 73 74 5f 6b 65  .d...interest_ke
  79 31 00 ea 01 12 00 67  00 0e 00 69 6e 74 65 72  y1.....g...inter
  65 73 74 5f 6b 65 79 32  00 ea 01 12 00 68 00 0e  est_key2.....h..
  00 69 6e 74 65 72 65 73  74 5f 6b 65 79 33 00 ea  .interest_key3..
  01 12 00 6f 00 0e 00 69  6e 74 65 72 65 73 74 5f  ...o...interest_
  6b 65 79 34 00                                   key4.