Protocols/OSCAR/SNAC/LOCATE SET DIR INFO

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
0x0002, 0x0009 Client LOCATE__SET_DIR_INFO Unspecified BOS Active 1.19

Set directory info. Host will reply LOCATE__SET_DIR_REPLY.

SNAC Header

Foodgroup uint16 (word) 00 02
Subgroup uint16 (word) 00 09
Flags uint16 (word) 00 00
Request ID uint32 (dword) 00 00 00 00

SNAC Data

Unconfirmed: This SNAC contains no data

From Aleksandr Shutko: SNAC(02,09) LOCATE__SET_DIR_INFO


AIM client query to save directory info. Server should reply via SNAC(02,0A).

 00 02   word   SNAC family
 00 09   word   SNAC subtype
 00 00   word   SNAC flags
 xx xx xx xx   dword   SNAC request-id
 00 01   word   TLV.Type(0x01) - first name
 xx xx   word   TLV.Length
 xx ..   string   first name
 00 02   word   TLV.Type(0x02) - last name
 xx xx   word   TLV.Length
 xx ..   string   last name
 00 03   word   TLV.Type(0x03) - middle name
 xx xx   word   TLV.Length
 xx ..   string   middle name string
 00 04   word   TLV.Type(0x04) - maiden name
 xx xx   word   TLV.Length
 xx ..   string   maiden name
 00 06   word   TLV.Type(0x06) - country
 xx xx   word   TLV.Length
 xx ..   string   country (two letter code)
 00 07   word   TLV.Type(0x07) - state
 xx xx   word   TLV.Length
 xx ..   string   state name string
 00 08   word   TLV.Type(0x08) - city
 xx xx   word   TLV.Length
 xx ..   string   city
 00 0A   word   TLV.Type(0x0A) - unknown
 xx xx   word   TLV.Length
 00 01   word   unknown
 00 0C   word   TLV.Type(0x0C) - nick name
 xx xx   word   TLV.Length
 xx ..   string   nick name
 00 0D   word   TLV.Type(0x0D) - zip code
 xx xx   word   TLV.Length
 xx ..   string   zip code number
 00 21   word   TLV.Type(0x21) - Street addr
 xx xx   word   TLV.Length
 xx ..   string   Street address



Example SNAC dumps with flap header:


  00 02 00 09 00 00 00 04  00 09 00 1C 00 08 75 73  ........ ......us
  2D 61 73 63 69 69 00 0A  00 02 00 01 00 01 00 09  -ascii.. ........
  46 69 72 73 74 4E 61 6D  65 00 02 00 08 4C 61 73  FirstNam e....Las
  74 4E 61 6D 65 00 03 00  0A 4D 69 64 6C 64 65 4E  tName... .MidldeN
  61 6D 65 00 04 00 0A 4D  61 69 64 65 6E 4E 61 6D  ame....M aidenNam
  65 00 06 00 02 52 55 00  07 00 02 53 54 00 08 00  e....RU. ...ST...
  04 43 69 74 79 00 0C 00  08 4E 69 63 6B 4E 61 6D  .City... .NickNam
  65 00 0D 00 06 36 38 30  30 33 38 00 21 00 0A 53  e....680 038.!..S
  74 72 65 65 74 41 64 64  72                       treetAdd r



LOCATE SNACs

SNAC List
Subgroup Origin Name
0x0001 Any LOCATE__ERR
This is the error SNAC for the LOCATE foodgroup.
0x0002 Client LOCATE__RIGHTS_QUERY
This query is sent to the server by the client to discover what some of its rights are with respect to the PD SNAC group.
0x0003 Host LOCATE__RIGHTS_REPLY
This is the response to the LOCATE__RIGHTS_QUERY SNAC.
0x0004 Client LOCATE__SET_INFO
The client may set SIG, UNAVAILABLE, and CAPABILITIES type and data tags with this SNAC.
0x0005 Client LOCATE__USER_INFO_QUERY
Request user information for profiles, capabilities, away message, and certificates.
0x0006 Host LOCATE__USER_INFO_REPLY
This is the usual response to a LOCATE__USER_INFO_QUERY2 SNAC.
0x0007 Client LOCATE__WATCHER_SUB_REQUEST
Watcher sub request.
0x0008 Host LOCATE__WATCHER_NOTIFICATION
Watcher sub notification.
0x0009 Client LOCATE__SET_DIR_INFO
Set directory info. Host will reply LOCATE__SET_DIR_REPLY.
0x000A Host LOCATE__SET_DIR_REPLY
Reply to LOCATE__SET_DIR_INFO.
0x000B Client LOCATE__GET_DIR_INFO
Get directory information for user. Host should reply with LOCATE__GET_DIR_REPLY.
0x000C Host LOCATE__GET_DIR_REPLY
Host reply to LOCATE__GET_DIR_INFO.
0x000D NCD LOCATE__GROUP_CAPABILITY_QUERY
This is not currently documented. Want to contribute?
0x000E NCD LOCATE__GROUP_CAPABILITY_REPLY
This is not currently documented. Want to contribute?
0x000F Client LOCATE__SET_KEYWORD_INFO
Set profile keywords and interests. Host should reply with LOCATE__SET_KEYWORD_REPLY.
0x0010 Host LOCATE__SET_KEYWORD_REPLY
This is the host reply to LOCATE__SET_KEYWORD_REPLY.
0x0011 Client LOCATE__GET_KEYWORD_INFO
Set profile keywords and interests. Host should reply with LOCATE__SET_KEYWORD_REPLY.
0x0012 Host LOCATE__GET_KEYWORD_REPLY
This is the host reply to LOCATE__SET_KEYWORD_REPLY.
0x0013 Client LOCATE__FIND_LIST_BY_EMAIL
This is a query sent to the server that looks up a list of users by their email address and returns one NickwInfo for each email account queried.
0x0014 Host LOCATE__FIND_LIST_REPLY
This SNAC provides the results of the LOCATE__FIND_LIST_BY_EMAIL.
0x0015 Client LOCATE__USER_INFO_QUERY2
This SNAC is sent by the client to perform the basic locate query on a user.