Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

BrokenSwing/C-Chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C-Chat CI CMake

A C-based chat system

Table of content

Releases

Releases of the client and the server can be found in releases tab.

Version Multiple clients support (2+) Parallel messages sending/receiving File exchange support Rooms
v1.0.0
v2.0.0
v3.0.0
v4.0.0
v5.0.0

Building manually

  • Use CMake
  • Using gcc
    • Unix : gcc -lpthread src/client/** src/common/** -o client and gcc -lpthread src/client/** src/common/** -o server
    • Windows : gcc src/client/** src/common/** -o client and gcc src/client/** src/common/** -o server

Running

Start server binary then client binary.

  • Unix : ./server then ./client
  • Windows : server.exe then client.exe

Features

Commands

You can use commands on client, here are the available commands :

  • /nick <new_username> : defines your new username
  • /file <send | receive>
    • /file send <filename> : sends the file with the given name to other clients of the room
    • /file receive <file_id> : receives the file with the given id (file sent by a client)
  • /quit : quits the server
  • /room <create | join | leave | list>
    • /room create <name> <description> : creates a room with the given name and the given description
    • /room join <name> : joins the room with the given name
    • /room leave : leaves the room you're currently in
    • /room list : list all existing rooms