Skip to content

GlobalChat2 Protocol

jsilverMDX edited this page Dec 3, 2012 · 4 revisions

PROTOCOL

seperator: ::!!::

all messages have a chat_token to help identify the sender

all commands are \00 (null byte) terminated

any arrays returned are \n (newline) delimited

TO SERVER

SIGNON::!!::handle::!!::password handle - your name password - optional password to get a chat_token

GETHANDLES::!!::chat_token handles - online handles

GETBUFFER::!!::chat_token return the scrollback in text or a blank string if disabled

MESSAGE::!!::message::!!::chat_token message - what to say

SIGNOFF::!!::chat_token exit the system.. should be able to detect and close a dead handle...

PING::!!::chat_token Register a Ping with the server, tell the server that you wanna use connection management Opt-in

TO CLIENT

TOKEN::!!::chat_token::!::handle chat_token - your chat token, used to talk handle - your handle on the server

BUFFER::!!::buffer buffer - the scrollback

HANDLES::!!::handles handles - the handles online

JOIN::!!::handle handle - who just joined

LEAVE::!!::handle handle - who just exited

SAY::!!::handle::!!::message handle - who said it message - what was said

PONG::!!::handles handles - the handles online

Clone this wiki locally