What is a good C ++ implementation of a peer-to-peer chat program with a server for assigning connections?

For a while, I was interested in building a proof-of-concept chat program using C ++. I thought about this a lot and even wrote about how I would design the system, but I ran into a barrier in my thinking when it comes to implementation.

I want to know what implementation of a peer-to-peer chat client with a server for routing connections would look like in C ++.

The server will be used as a central peer registry, but not used as the main connection. The server will not interact with clients in any way other than assigning peer-to-peer connections to achieve an optimal path between peers. In the first version, it is simply a directory that all clients connect to, and clients can then use this directory to connect to other chat-enabled clients. (I hope this explains it a little more.) :)

+1


a source to share


2 answers


You should look at XMPP . It's about routing and coordinating messaging. It uses decentralization and peer-to-peer architecture.

There are also many open source versions available. For instance,



+4


a source


I can't think of anything better than the chat example in the Boost.Asio documentation. Find documentation for examples at Boost.Asio.



+1


a source







All Articles