Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

Simple-Chat

Chat program based on self-developed Simple Chat protocol

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

Chat program based on self-developed Simple Chat protocol.

Protocol description

Client -> Server direction

  • Establish a connection. $u <nickname>
  • Enter the room $j <roomname>
  • Exit the room $p <roomname>
  • Send message to the room $m <roomname> <message>
  • Send message to another client $m <nickname> <message>
  • Get the information about client $i <nickname>

Server -> Client direction

  • Notifycation about entrance to the room $n <nickname> <roomname>
  • Notifycation about leaving the room $p <nickname> <roomname>
  • List of the clients in the room $l <roomname> <nickname1> <nickname2> … <nicknameN>
  • Message delivery $m <to_roomname> <from_nickname> <message> $m <from_nickname> <message>
  • Error $e <errorcode> <errorstring>
  • Sending information about the client $i <nickname> <age> [<email>]