GithubHelp home page GithubHelp logo

metalink_server's Introduction

Big Brother multi-user chat server.

Protocol structure:
<DataType>+' '+<Size of Message>+' '+<Message>

DataType:
MESSAGE
PING
PONG
NICK
CHAT
LIST

Structure of CHAT message:
“CHAT"+' '<Chat ID>+' '+<ChatCommand>+' '+<Message>

ChatCommand:
INIT
INVITE
LIST
ACCEPT
REJECT
LEAVE

The DataType and ChatCommand LIST both share the same message structure (also called MetaLinkList):
<Number of items in list>+' '+<Length of first item>+' '+<First item>+' '+<Length of second item>+' '+<Second item>+etc. etc.

Structure of INIT: //Only clients initiate this command
“INIT"+' '+<MetaLinkList of participants in new chat>
//Note that INIT is always prepended by chat ID of 0

Structure of INVITE: //Both server and client can do this
“INVITE"+' '+<MetaLinkList of participants to invite>

Structure of LIST //Server command
“LIST"+' '+<MetaLinkList of participants in current chat>

Structure of ACCEPT //Client command
“ACCEPT"+' '+""
//May change in the future

Structure of REJECT //Client command
“REJECT"+' '+""
//May change in the future

Structure of LEAVE //Both client and server (“kick") can do this
“LEAVE"+' '+<Optional leave message>

Structure of MESSAGE (server->client): //Chat ID 0==broadcast
“MESSAGE"+' '+<MetaLinkList with only sender Nick>+' '+<Message>
Structure of MESSAGE (client->server): //Chat ID 0==broadcast
“MESSAGE"+' '+<Message>

metalink_server's People

Contributors

risca avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.