Skip to content
A simple client program supporting peer to peer connection and communication based on the course-defined protocol, with a naive GUI supported by Python.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
2016-17-Programming-Project.pdf
LICENSE
P2PChat.py
P2PChat_NonGUI.py
README.md
room_server_32
room_server_64
room_server_mac

README.md

Peer to Peer Chat Client Server

Project for COMP3234 Computer Networks. A simple client program supporting peer to peer connection and communication based on the course-defined protocol, with a naive GUI supported by Python.

Prerequisites

Currently the program is only tested on Ubuntu 1604 with python version 3.5.2

Getting Started

install python virtual enviroment

pip3 install virtualenv

set up virtual environment according to this guide

clone the project to local folder

git clone git@github.com:whcacademy/P2PChat.git

Running the tests

Firstly, run the room server which is provided by course instructor.

./room_server_64 # depend on the OS

Then, test cases now are currently included by the spec in spec.pdf

run

python3 P2PChat.py localhost 32340 50000

Note that the last argument is the port number which is needed to change if multiple clients are initialized.

Versioning

Try to use SemVer for versioning.

Authors

  • WANG Haicheng - Initial work - Haicheng

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgments

You can’t perform that action at this time.