Home Submitter: stricq@owlnet.net Edit

CLI_SETSTATUS

Channel: 2SNAC(1,30)

This sets the clients online status code and some other direct client to client information as well.

Parameters

Data type Content Name Description
TLV(6) 00 06 00 04 DWORD STATUS This sets the client's online status and some flags:
00xxxxxx = allow direct connection with everyone
10xxxxxx = allow direct connection upon authorization
20xxxxxx = allow direct connection with users in contact list
xx08xxxx = birthday flag
xx02xxxx = show IP
xx03xxxx = webaware
xxxx0000 = online
xxxx0100 = invisible
xxxx0001 = away
xxxx0005 = NA
xxxx0011 = Occupied
xxxx0013 = DND
xxxx0020 = Free for chat
TLV(8) 00 08 00 02 WORD ERROR Error code.
TLV(12) 00 0c xx xx ... CLI2CLI Direct connection status as follows:
    IP xx xx xx xx IP The client computer's local IP address.
    DWORD 00 00 xx xx PORT This is the port to connect with when making client to client connections.
    BYTE xx TCPFLAG 01 = Firewall (or HTTPS proxy)
02 = SOCKS4/5 proxy
04 = 'normal' connection
    WORD xx xx TCPVERSION The highest client to client protocol version this client uses.
    DWORD xx xx xx xx COOKIE Random connection cookie required for direct connections using v8. Set to zero; it will be randomly chosen by the server for each pair of contacts.
    WORD 00 00 NULL Unknown: empty.
    WORD 00 50 UNKNOWN Unknown: 80.
    WORD 00 00 NULL Unknown: empty.
    WORD xx xx COUNT The number of following timestamps, usually 3.
    TIME xx xx xx xx TIME1 A timestamp. This one is abused for version information:
 7d xx xx xx - licq; reminder wxxy decimal is version w.x.y.
               Note: if & 0x0000ffff is > 1000, mICQ.
 00 80 00 00 - licq SSL flag
 ff ff ff ff - Miranda
 ff ff ff 8f - StrICQ
 ff ff ff 42 - mICQ
Otherwise unknown client.
    TIME xx xx xx xx TIME2 A timestamp. This one is also abused for version information:
80 00 00 00 Miranda unknown flag
aa bb cc dd Version a.b.c.d, if not determined by TIME1.
    TIME xx xx xx xx TIME3 Another timestamp.
    WORD 00 00 NULL Unknown: Empty.

Examples

2A 02 14 BF 00 37                   Flap: Channel 2, Sequence 5311, Length 55
   00 01 00 1E 00 00 00 00 00 00    Snac: Type x01/x1E, ID x0000, Flags 0
      00 06 00 04 20 02 00 00       Status: Direct connect=List, Show IP, Online
      00 08 00 02 00 00             Error code
      00 0C 00 25 C0 A8 01 02       192.168.1.2, Internal IP
                  00 00 2E 44       11844, Port
                  01                 1, TCP Flag: Firewall
                  00 08              8, Protocol version: ICQ2001=v8
                  89 9F CD A0       Direct connect cookie
                  00 00              0, Unknown
                  00 50             80, Unknown
                  00 00              0, Unknown
                  00 03             Count: 3
                     3B A8 DB AF    time(NULL): Wed Sep 19 13:53:51 2001
                     3B EB 53 73    time(NULL): Thu Nov 08 22:54:27 2001
                     3B EB 52 62    time(NULL): Thu Nov 08 22:49:54 2001
                  00 00              0, Unknown


2A 02 14 BF 00 37                   Flap: Channel 2, Sequence 5311, Length 55
   00 01 00 1E 00 00 00 00 00 00    Snac: Type x01/x1E, ID x0000, Flags 0
      00 06 00 04 00 00 00 00       Status: Online
      00 0c 00 25 ac 14 2d 1b       Internal IP: 172.20.45.27
         00 00 84 d0                TCP Port: 34000
         04                         TCP Flag: normal connection
         00 06                      TCP version: 6
         00 00 2a ad                TCP connection cookie: 0x2aad
         00 00                      unknown
         00 50                      unknown
         00 00                      unknown
         00 03                      3 time stamps:
         7d 00 01 e7                mICQ 0.4.8.pl7
         00 00 00 00                NULL
         3c d6 b6 18                time(NULL)
         00 00                      unknown
      00 08 00 02 00 00             Error: none.


HomeEdit