Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET and P2P - writing a P2P messenger

Tags:

c#

.net

vb.net

p2p

Does anyone have any advice how to write such app? Or maybe knows some nice tutorial? I would like to use System.Net.PeerToPeer namespace, but everything I can find about it is MSDN which I can't read without getting mad. Or maybe using "old-school" TCP/IP would more efficient?

I will appreciate every piece of advice. Every sample code I will shower with gold ;)

And please, don't send me back to Google for I have searched for a long time for sth useful - maybe inaccurately but time is running out and I really need some help.

[edit]
What about the Brunet library? Has anyone used it?

like image 560
brovar Avatar asked Mar 22 '10 21:03

brovar


1 Answers

There is a sample at MSDN that you may find interesting: Peer Channel Chat.

Quote from the page:

The Chat sample demonstrates how to implement a multiparty chat application by using Peer Channel. Messages sent by any instance of a chat application are received by all other instances.

The Chat sample is not based on the concept of client and service. It is a true peer-to-peer application with each instance acting as a peer of other instances. Each instance can send messages to other instances and receive messages from other instances using the IChat duplex contract.

like image 75
Fredrik Mörk Avatar answered Oct 01 '22 21:10

Fredrik Mörk