aturancetin / Peer-to-Peer-Encrypted-TCP-Server

This project is a TCP server implementation with encryption and token authentication written in C++.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Peer-to-Peer-Encrypted-TCP-Server

The aim of this project is to set up a TCP based server for multiple clients that can send and receive messages between each other.

How to compile ?

g++ server.cpp -o server -lpthread -lsqlite3
g++ client.cpp -o client -lpthread -lsqlite3

How to run ?

./server
./client

How to use ?

In order to use the server, you must register with a username and a password.
Once registration is complete, your username and your hashed password is saved to the server.
After you register, client side will be closed automatically for you to login to server. Before you log in, close the server and rerun the server.(This will update the users database.)
Log in to the server.

LIST FUNCTION

In order to list the connected online clients give this command ;

LIST

SEND FUNCTION

In order to send message to another client give this command ;

SEND <CLIENT NUMBER> <YOUR MESSAGE>

Here is the number which you receive after you give LIST command.

HISTORY FUNCTION

In order to see history of messages, give this command ;

HISTORY

EXIT FUNCTİON

In order to exit from the server give this command ;

EXIT

For any questions, mail me ; aturancetinn@gmail.com

About

This project is a TCP server implementation with encryption and token authentication written in C++.


Languages

Language:C++ 100.0%