Apply P2P network into chatting
- Send multiple consecutive chat message
- Private chat with multiple user (multiple 1-1 conversations)
Linux 4.4+
Run following command to build both client and server:
make -C src
To build only one server or client, run one of these commands:
make -C src server
make -C src client
From root folder, run:
./bin/server
or
./bin/client
Cannot read db/account.txt
if run from other folder.
We will debug via syslog
. Monitor syslog file with those commands:
- For server:
tail -f -n -300 /var/log/syslog | grep "P2P Chat Server"
- For client:
tail -f -n -300 /var/log/syslog | grep "P2P Chat Client"