Author Topic: BnChat Protocol Specification  (Read 3334 times)

0 Members and 2 Guests are viewing this topic.

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
BnChat Protocol Specification
« 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. :)

Code: [Select]
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
« Last Edit: April 04, 2005, 05:54:58 am by Joey »
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Warrior

  • supreme mac daddy of trolls
  • Hero Member
  • *****
  • Posts: 7503
  • One for a Dime two for a Quarter!
    • View Profile
Re: BnChat Protocol Specification
« Reply #1 on: April 04, 2005, 02:53:34 pm »
Thanks, welcome to the amazing world of my new about
One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: BnChat Protocol Specification
« Reply #2 on: April 04, 2005, 06:30:22 pm »
For a second time? Cool.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Warrior

  • supreme mac daddy of trolls
  • Hero Member
  • *****
  • Posts: 7503
  • One for a Dime two for a Quarter!
    • View Profile
Re: BnChat Protocol Specification
« Reply #3 on: April 04, 2005, 11:05:29 pm »
note the word new
One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling