Clan x86

General Forums => General Discussion => Topic started by: Joe on April 04, 2005, 05:53:24 AM

Title: BnChat Protocol Specification
Post by: Joe on April 04, 2005, 05:53:24 AM
A few days ago I got *really* bored and wrote this up, while working on prjTAHCBot. I think someone could use this, instead of actually having to look it all up themselves. :)

BNCHAT PROTOCOL SPECIFICATION
DOCUMENT VERSION V1.0
WRITTEN BY JOETHEODD

Definitions:
Packet - A line of data sent from the server to the client. These can be sent together, delimited by a CRLF.
String - A string of characters terminated by a space.
String Array - A set of strings contained within a set of ASCII Character 34's (Quotation marks). These will be denoted as STRING[]
Integer - Like a string, but always a number. This is a Base-16 integer.
Product ID - The foreward, 4-byte product code, contained within brackets ("[ ]")

Basic Packet Format:
(STRING) Packet ID
(STRING) Packet Name
(VOID)   Packet Data

Packet 1001 - USER:
This packet is sent when the client joins a channel, knotifing the client there is a user in the channel.
(STRING)  Username
(INTEGER) Flags
(STRING)  Product ID

Packet 1002 - JOIN:
This packet is sent when a user joins the client's channel.
(STRING)  Username
(INTEGER) Flags
(STRING)  Product ID

Packet 1003 - LEAVE:
This packet is sent when a user leaves the client's channel.
(STRING)  Usernanme
(INTEGER) Flags

Packet 1005 - TALK:
This packet is sent whenever a user talks.
(STRING)   Username
(STRING[]) Message

Packet 1007 - CHANNEL:
This packet is sent once a client joins a channel.
(STRING[]) Channel name

Packet 1018 - INFO:
(STRING[]) Message

Packet 2000 - NULL:
This is a keepalive packet an should be completely ignored.
No packet format.

Packet 2010 - NAME:
This packet is sent when a client logs on. This specifys the unique username.
(STRING) Unique Username
Title: Re: BnChat Protocol Specification
Post by: Warrior on April 04, 2005, 02:53:34 PM
Thanks, welcome to the amazing world of my new about
Title: Re: BnChat Protocol Specification
Post by: Joe on April 04, 2005, 06:30:22 PM
For a second time? Cool.
Title: Re: BnChat Protocol Specification
Post by: Warrior on April 04, 2005, 11:05:29 PM
note the word new