Thursday, August 19, 2021

Do P2P softwares have seperate two sockets?

I'm trying to make a p2p chat software with C. For this i will use sockets with multithreading. For this i designed only Server/Client applications but now i want to design p2p systems.

I got the basics, what is p2p etc. But i dont know how to implement.

Question : Should i create two seperate socket for one peer to connect/listen. So when a peer_1 tries to connect peer_2 peer_1 client socket will connect to peer_2 server socket and same for peer_2 to peer_1.

Or is there another solution?



No comments:

Post a Comment