Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
/ p2pChat Public archive

A p2p chat client which is more like a BitTorrent sync application

License

Notifications You must be signed in to change notification settings

Quantum-Sicarius/p2pChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

p2pChat

p2pChat is a program I wrote to learn Golang. It started off as a simple peer-to-peer tcp chat program where I simply could telnet into it.

Node:

alt tag

Telnet:

alt tag

Soon I was able to have two nodes talking to each other no more telnet! I added some fancy colors to make the messages more readable.

alt tag

I started working with data synchronization. I calculate a checksum of all the keys in my dataset. I used this approach as it used the least bandwidth.

alt tag

Later on it morphed into a p2p chat sync program in which nodes communicate their current data state and updates other nodes to keep them all up to date with the latest data.

alt tag

Image with no all debugging off:

alt tag

About

A p2p chat client which is more like a BitTorrent sync application

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages