Git Product home page Git Product logo

chatapplication's Introduction

Chat Application

The following repository consists of a chat-client application. The server is provided by the Vrije Universiteit Amsterdam.

Requirements

The chat client must meet the following requirements:

  1. Connect to the chat server and log in using a unique name.
  2. Ask for another name is the chosen name is already taken.
  3. Shutdown the client by typing !quit.
  4. List all currently logged-in users by typing !who.
  5. Send messages to other users by typing @username message.
  6. Receive messages from other users and display them to the user.

Chat Application Protocol

Message Sent by Description
HELLO-FROM \n Client First hand-shake message.
HELLO \n Server Second hand-shake message.
WHO\n Client Request for all currently logged-in users.
WHO-OK ,...,\n Server A list containing all currently logged-in users.
SEND \n Client A chat message for a user. Note that the message cannot containthe newline character, because it is used as the message delimiter.
SEND-OK\n Server Response to a client if their β€˜SEND’ message is processedsuccessfully.
UNKNOWN\n Server Sent in response to a SEND message to indicate that thedestination user is not currently logged in.
DELIVERY \n Server A chat messagefroma user.
IN-USE\n Server Sent during handshake if the user cannot log in because thechosen username is already in use.
BUSY\n Server Sent during handshake if the user cannot log in because themaximum number of clients has been reached.
BAD-RQST-HDR\n Server Sent if the last message received from the client contains an errorin the header.
BAD-RQST-BODY\n Server sent if the last message received from the client contains an errorin the body.

Table 1: Chat Application Protocol. Angular brackets (<>) indicate variable content.

chatapplication's People

Contributors

haracewiat avatar venoivankovic avatar

Stargazers

 avatar

Watchers

 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.