All message types sent to an
Ares chat room is in the following format.
[Packet Length - 2 Bytes] [Packet
Type - 1 Byte] [Data - Any Size]
Msg_Chat_Server_Error:
Command ID: 0x00 [0]
Sender: Server
Data Format: [Unknown]
Description:
Just informs the client if there was an error.
Msg_Chat_Client_Login:
Command ID: 0x02 [2]
Sender: Client
Data Format: [16 Bytes - GUID] [2 Bytes - Shared File Count] [1 Byte
- Skipped] [2 Bytes - Data Port] [4 Bytes - SuperNode IP]
[2 Bytes - Super Node Port] [4 Bytes - Connection Speed] [Null Terminated - Username] [Null Terminated - Client Version]
[4 Bytes - Internal IP] [4 Bytes - External IP] [1 Byte - Allow Browse] [1 Byte - Upload Count] [1 Byte - Max Uploads]
[1 Byte - Queued Uploads]
Description:
This is how you join the chat room.
Msg_Chat_Server_Login_Ack:
Command ID: 0x03 [3]
Sender: Server
Data Format: [Null Terminated - Your Username]
Description:
Just tells the client that you have joined the room and its going to send you
the user list now.
Msg_Chat_Client_Update_Status:
Command ID:
0x04 [4]
Sender:
Client
Data Format: [2 Bytes - File
Count] [1 Bytes - Allow Browse] [4 Bytes - SuperNode IP]
[2 Bytes -
SuperNode Port] [4 Bytes - External IP] [1 Bytes - Number of Uploads] [1
Byte - Upload Slots] [1 Byte - Queued Uploads]
Description:
This needs to be send about every few minutes
or so to keep you in the chat room.
Msg_Chat_Server_Update_User_Status:
Command ID:
0x05 [5]
Sender:
Server
Data Format: [2 Bytes - File
Count] [1 Bytes - Allow Browse] [4 Bytes - SuperNode IP] [2 Bytes -
SuperNode Port]
[4 Bytes - External IP] [1 Bytes - Number of Uploads] [1
Byte - Upload Slots] [1 Byte - Queued Uploads] [1 Byte - Admin Status]
Description:
This just sends you any updates that a user
has made when they send their Msg_Chat_Client_Update_Status packet to the
server. This also keeps you in most rooms.
Msg_Chat_Server_Redirect:
Command ID:
0x06 [6]
Sender:
Server
Data Format: [2 Bytes - File
Count] [4 Bytes - External IP] [2 Bytes - Port] [4 Bytes - Internal IP]
[Null Terminated - Channel Name]
[Null Terminated - Reason For Redirect]
Description:
This is for when sending someone to another
chat room. Msg_Chat_Client_Public:
Command ID: 0x0A [10]
Sender: Client
Data Format: [Text]
Description:
Sends text to the room.
Msg_Chat_Server_Public:
Command ID: 0x0A [10]
Sender: Server
Data Format: [Null Terminated - Username] [Null Terminated - Text]
Description:
A message in the chat.
Msg_Chat_Client_Emote:
Command ID: 0x0B [11]
Sender: Client
Data Format: [Text]
Description:
Sends emote to the room.
Msg_Chat_Server_Emote:
Command ID: 0x0B [11]
Sender: Server
Data Format: [Null Terminated - Username] [Null Terminated - Text]
Description:
A emote message in the chat.
Msg_Chat_Server_Join:
Command ID: 0x14 [20]
Sender: Server
Data Format: [2 Bytes - Shared File Count] [4 Bytes - Connection
Speed] [4 Bytes - Users IP] [2 Bytes - User Port] [4 Bytes - User's Super-
Node] [1 Byte - Nothing] [Null Terminated - Username] [4 Bytes - User's Internal IP] [1 Byte - Allow Browse] [1 Byte - Admin Status]
Description:
A User Joined the Room.
Msg_Chat_Server_Part:
Command ID: 0x16 [22]
Sender: Server
Data Format: [Null Terminated - Username]
Description:
A User Left The Room.
Msg_Chat_Client_PVT:
Command ID: 0x19 [25]
Sender: Client
Data Format: [Null Terminated - Username] [Null Terminated -
Message]
Description:
Private Message sent from client.
Msg_Chat_Server_PVT:
Command ID: 0x19 [25]
Sender: Server
Data Format: [Null Terminated - Username] [Null Terminated -
Message]
Description:
Private Message sent from Client is now sent to the client that needs the
message.
Msg_Chat_Server_IsIgnoringyou:
Command ID: 0x1A [26]
Sender: Server
Data Format: [Null Terminated - Username]
Description:
The user you are trying to pm is ignoring you]
Msg_Chat_Server_OfflineUser:
Command ID: 0x1B [27]
Sender: Server
Data Format: [Null Terminated - Username]
Description:
The user you are trying to pm is offline.
Msg_Chat_Server_Channel_User_List:
Command ID: 0x1E [30]
Sender: Server
Data Format: [2 Bytes - Shared File Count] [4 Bytes - Connection
Speed] [4 Bytes - Users IP] [2 Bytes - User Port] [4 Bytes - User's Super-
Node] [1 Byte - Nothing] [Null Terminated - Username] [4 Bytes - User's Internal IP] [1 Byte - Allow Browse] [1 Byte - Admin Status]
Description:
The user list of the chat.
Msg_Chat_Server_Topic:
Command ID: 0x1F [31]
Sender: Server
Data Format: [Null Terminated - Topic]
Description:
Topic Change of room.
Msg_Chat_Server_Topic_First:
Command ID: 0x20 [32]
Sender: Server
Data Format: [Null Terminated - Topic]
Description:
The topic you get when you join.
Msg_Chat_Server_Channel_User_List_End:
Command ID: 0x23 [35]
Sender: Server
Data Format: [1 Byte - Nothing]
Description:
Indicates end of user list.
Msg_Chat_Server_No Such:
Command ID: 0x2C [44]
Sender: Server
Data Format: [Null Terminated - Text]
Description:
This is the motd.
Msg_Chat_Client_Ingore_List:
Command ID: 0x2D [45]
Sender: Client
Data Format: [Unknown]
Description: Unknown.
Msg_Chat_Client_Add_Share:
Command ID: 0x32 [50]
Sender: Server
Data Format: [1 Byte - File Type][4 Bytes - File Size][2 Bytes - Length Of Search Words +
Null][Search Words + Null][X Bytes - Share Data]
Description:
Adds a file to the list of files people will see when they browse you.
Msg_Chat_Client_Rem_Share:
Command ID: 0x33 [51]
Sender: Client
Data Format: [1 Byte - Nothing]
Description:
Removes a file from the list of files that people see when they browse you.
Msg_Chat_Client_Browse:
Command ID:
0x34 [52]
Sender:
Client
Data Format:
[2 Bytes - Browse ID] [1 Byte - Type Of Browse] [x Bytes - Username]
Description:
Gets the list of files a user is sharing.
Msg_Chat_Client_End_Of_Browse:
Command ID:
0x35 [52]
Sender:
Client
Data Format:
[2 Bytes - Browse ID]
Description:
Indicates the end of a browse.
Msg_Chat_Client_Browse_Error:
Command ID: 0x36 [54]
Sender: Client
Data Format: [Unknown]
Description: Indicates an
error while browsing a user.
Msg_Chat_Client_Browse_Item:
Command ID: 0x37 [55]
Sender: Client
Data Format: [2 Bytes - Browse ID] [1 Bytes - Type of File] [4 Bytes - Size Of File] [X Bytes
- Share Data]
Description: Shared file information you get when you browse a user.
Msg_Chat_Client_Start_Of_Browse:
Command ID: 0x38 [56]
Sender: Client
Data Format: [2 Bytes - Browse ID] [2 Bytes - Number of Files Shared]
Description:
Indicates that you are starting a browse of a user.
Msg_Chat_Client_Search:
Command ID: 0x3C [60]
Sender: Client
Data Format: [2 Bytes - Search ID] [2 Bytes - Search Type] [2 Bytes -
Search Words Length] [Null Terminated - Search Words]
Description:
Starts a search for a file in the chat.
Msg_Chat_Server_Search_Hit:
Command ID: 0x3D [61]
Sender: Server
Data Format: [Unknown]
Description:
A result from your file search.
Msg_Chat_Server_End_Of_Search:
Command ID: 0x3E [62]
Sender: Server
Data Format: [2 Bytes - Search ID]
Description:
Indicates that the server is done searches for files.
Msg_Chat_Server_My_Features:
Command ID: 0x5C [92]
Sender: Server
Data Format: [Null Terminated - Server Version] [3 Bytes - Browse And Search Features
Avalaible] [X Bytes - Sharable Types]
Description: Sends Information about the chat server to the
client.
Msg_CCache_Send_Channels:
Command ID: 0x47 [71]
Sender: Client
Data Format: [Null]
Description:
Requests the channel list.
Msg_CCache_Here_Channel:
Command ID: 0x48 [72]
Sender: Server
Data Format: [4 Bytes -
External IP Address] [2 Bytes - Port] [2 Bytes - User Count] [Null Terminated - Channel Name]
[Null Terminated - Topic] [4 Bytes - Internal IP]
Description:
Channel, This data is zipped when it is sent. Internal IP Address is only
sent if it is different than external ip.
Msg_CCache_End of Channels:
Command ID: 0x49 [73]
Sender: Server
Data Format: [Null]
Description:
Indicates End of Channel Listing.
Msg_Chat_Server_OP_Change:
Command ID: 0x4B [75]
Sender: Server
Data Format: [1 Byte - Admin Status] [1 Byte Nothing]
Description:
Changes Users Admin Status/ Adds Blue or Yellow Star. 0 = User and 1 =
Admin.
Msg_Chat_Server_Url_Update:
Command ID: 0x49 [73]
Sender: Server
Data Format: [Null Terminated - Url Link] [Null Terminated - Url
Caption]
Description:
Changes Rooms URL Tag.
Msg_Chat_Client_Command:
Command ID: 0x4A [74]
Sender: Client
Data Format: [X Bytes - Command Text]
Description:
Sends a /Command Text
|