Menu

packet_structures

Josh Tyree

Table of Contents


General Chat - plain text/string
- The general packet structure is as follows:
- COMMAND:user_name:command args

Login Packet - plain text/string
- LOGIN:user_name:password << Client sends
- LOGINRESP:response_from_DBEngine (string giving failure reason or success/etc) << Server sends

Disconnect Packet - plain text/string (not fully implemented)
- DISCONNECT:user_name:reason << Client sends
- DISCONNECT:reason << Server sends (in case of kick or something)

Logged in users list - plain text/string
- LISTUSERS:user_name << Client sends
- USRLST:user_name << Server sends to the client that requests the user list
- Server loops over every connected client and sends a USRLST packet for each one

Message Packet - plain text/string
- MSG:user_name:message << Client sends
- MSG:original_user_name:message << Server replicates to all connected users