I want to make a P2P Chat client, all I want it to do is to be able to send text across to each peer.
I looked at a Chat Client from this example:
http://www.geekpedia.com/tutorial239_Csharp-Chat-Part-1—Building-the-Chat-Client.html
And am wondering if it can be converted to a p2p program?
If so how can it be and can someone provide some code as it will help a lot.
If it can’t how can I make a really simple p2p chat program?
Codes and examples will be very helpful.
btw I did look at this article, but it didn’t help me:
http://msdn.microsoft.com/en-us/library/ms751502.aspx
For P2P, you need to use UdpClient instead of TcpClient. Google should help you from here 🙂
Edit: Sorry, I made false assumptions in this answer. If you want to continue using TCP, that’s just fine. Instead of creating a separate server application, add the server code to your client application, so that either the sender or receiver acts as the server.