Skip to content

yang-fu-git/distributed-chat-system-with-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Distributed Chat System

Members of Group 2

This is an distributed Chat System realized by Python, it will use Server-Client Model and will fullfil the requirments of

  • Architecture model
  • Dynamic discovery
  • Fault tolerance
  • Voting
  • Ordered reliable multicast

Usage

  1. Open one terminal run the following to give permission
    chmod +x ./run_servers.sh
    chmod +x ./stop_all.sh
  2. Run
    ./run_servers.sh number
    to start number of servers
  3. Open new terminal and run
    python client.py
  4. write the message you wanna send in the running client terminal
  5. Repeat step 3 and 4 to add clients
  6. Open a new terminal and run ps -T | grep server to check all the running servers.
    Run kill PID to kill servers
  7. Run ./stop_all to kill all the threads

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published