Protocols/OSCAR/SNAC/ICQ DB QUERY/REQ INFORMATION/SEARCH WHITE

From NINA Wiki
Revision as of 06:29, 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={{Proto...")
(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/0533 CLI_WHITE_PAGES_SEARCH


This is client white pages search request request. Server should respond with 1 or more packets. Last reply packet allways SNAC(15,03)/07DA/01AE, other reply packets SNAC(15,03)/07DA/01A4. Client should fill all fields. Empty strings and zero values (exept online_only flag) are not used in search.

 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
 33 05   word (LE)   data subtype: META_WHITE_PAGES_SEARCH
 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)   nickname string length
 xx .. xx 00   asciiz str   nickname string
 xx xx   word (LE)   email string length
 xx .. xx 00   asciiz str   email string
 xx xx   word (LE)   minimum age
 xx xx   word (LE)   maximum age
 xx   char   gender
 xx   char   speaking language
 xx xx   word (LE)   city string length
 xx .. xx 00   asciiz str   city string
 xx xx   word (LE)   state string length
 xx .. xx 00   asciiz str   state string
 xx xx   word (LE)   country code
 xx xx   word (LE)   company string length
 xx .. xx 00   asciiz str   company string
 xx xx   word (LE)   department string length
 xx .. xx 00   asciiz str   department string
 xx xx   word (LE)   position string length
 xx .. xx 00   asciiz str   position string
 xx xx   word (LE)   ocupation field code
 xx xx   word (LE)   past category code
 xx xx   word (LE)   past keywords string length
 xx .. xx 00   asciiz str   past keywords string
 xx xx   word (LE)   interests category code
 xx xx   word (LE)   interests keywords string length
 xx .. xx 00   asciiz str   interests keywords string
 xx xx   word (LE)   affilations category code
 xx xx   word (LE)   affilations keywords string length
 xx .. xx 00   asciiz str   affilations keywords string
 xx xx   word (LE)   homepage category code
 xx xx   word (LE)   homepage keywords string length
 xx .. xx 00   asciiz str   homepage keywords string
 xx   char   0-search all users, 1-search online only


Example SNAC dump with flap header:


  2A 02 79 7D 00 D9 00 15 00 02 00 00 00 0F 00 02 *.y.............
  00 01 00 CB C9 00 8F E4 5E 00 D0 07 10 00 33 05 ........^.....3.
  0A 00 46 69 72 73 74 4E 61 6D 65 00 09 00 4C 61 ..FirstName...La
  73 74 4E 61 6D 65 00 09 00 4E 69 63 6B 4E 61 6D stName...NickNam
  65 00 0F 00 45 6D 61 69 6C 40 65 6D 61 69 6C 2E e...Email@email.
  72 75 00 12 00 16 00 02 26 05 00 43 69 74 79 00 ru......&..City.
  03 00 53 74 00 07 00 08 00 43 6F 6D 70 61 6E 79 ..St.....Company
  00 0B 00 44 65 70 61 72 74 6D 65 6E 74 00 09 00 ...Department...
  70 6F 73 69 74 69 6F 6E 00 01 2E 01 0C 00 63 6F position......co
  6C 6C 65 67 65 5F 6B 65 79 00 68 00 1D 00 63 6F llege_key.h...co
  6D 70 75 74 65 72 73 5F 6B 65 79 2C 63 6F 6D 70 mputers_key,comp
  75 74 65 72 73 5F 6B 65 79 32 00 CD 00 0E 00 46 uters_key2.....F
  61 6E 20 63 6C 75 62 73 20 6B 65 79 00 D5 0A 0D an clubs key....
  00 61 6D 69 67 61 5F 68 70 5F 6B 65 79 00 01    .amiga_hp_key..