Login sequence
From XfirePlusWiki
In this document, line starting with <<< means data coming from the server and >>> data coming from the client.
Starting connection
>>> Packet UA01 - Specify network protocol
( <<< Packet af 00 if you connected to wrong server, end connection!)
Logging in
>>> Packet 03 00 - Specify client version
( <<< Packet 86 00 if the client has wrong version, end connection!)
<<< Packet 80 00 - Get login salt
>>> Packet 01 00 - Send login info
( <<< Packet 81 00 if wrong username/password was used, end connection!)
<<< Packet 82 00 - Send client info
>>> Packet 10 00 - Send personal info
Information exchange
These packets are not tightly tied to in which order they are sent, though there are some dependencies, for example the client cannot query group chat room information before it knows what group chats it has access to.
Some packets may be sent multiple times, containing different data, complementing each other. Usually the status packages (online, playing games, etc.) are sent in multiple parts.
<<< Packet 90 01
<<< Packet 8d 00 - Client preferences
<<< Packet 97 00 - Custom friend groups
<<< Packet 98 00 - Group associations?
<<< Packet 94 00 - Favorite servers
<<< Packet 9b 00 - Persistent group chat rooms
<<< Packet 9d 00 - Screenshots
>>> Packet 11 00 - Network info
<<< Packet b3 00 - Uploaded videos
<<< Packet 9e 00 - Clan names
<<< Packet 9f 00 - Member list for a clan * Number of clans the user is in
<<< Packet b1 00 - Clan news
<<< Packet a3 00 - Clan group ordering
>>> Packet 17 00 - 9d 3a - Status of files
>>> Packet 17 00 - a1 3a -
>>> Packet 17 00 - 9e 3a - Peer status
>>> Packet 18 00 - 24 45 - File ID numbers
>>> Packet 19 00 - fa 4c - Request info about chat rooms
<<< Packet 83 00 - Friends list
<<< Packet 84 00 - Online friends
<<< Packet 87 00 - Friends playing
<<< Packet 9c 00 - Extended Game info
<<< Packet 9a 00 - Status message * Friends who have custom status
<<< Packet 93 00 - Friends using voice software
<<< Packet c2 01 - Download channel * number of channels subscribed to
<<< Packet 66 01 - Group chat room information
