Computer Network Project - Chat Application Using P2P Model
- Sign Up/ Sign In (Client - Server)
- Add Friend (Client - Server)
- Chat (P2P)
- Send Files (P2P)
I'm using Tkinter and Websocket in Python for this application.
You should change the database in server file to be able to use it.
Remember to CD to the directory which has my project.
1.Change the admin database in all of my files, run my SQL file Here:
- Run server.py
and let the server open, don't turn it off
- Run testasyncserver.py This is my client file, though it could be a server file too cause I use a P2P Hybrid model.
Simple Explanation: Peers Sign In/SignUp/AddFriend with the support of server. Peers can find each other by the help of server but make a connection to chat with each other directly (P2P), which means the message go directly between 2 peers, not going through server
My Friendlist Interface: (Because a2 is offline, the chat button is disabled)
When a2 is online, both can chat with each other.
If friend is not in account database, its failed
A little bit of demo of my simple database (when using add friends, the fuser table got updated) you can check mysql file in this repository to see DDL files.
Thank you for visiting my repository.