tags:

views:

2537

answers:

4

Recently, I would like to develop a simple chat program using c# and Winform,Main feature is chat and file transfer ,But i can't found example about implement p2p using dotnet,Who can help me?

A: 

Here is a related question I answered about how to do peer to peer connections over SSL in C#. It might be of some assistance.

Scott Whitlock
+2  A: 

Check out WCF

Mitch Wheat
Incredibly terse, but accurate answer.
Robert Harvey
A: 

Do you want to implement p2p functionality or a specific p2p protocol?

For generic p2p functionality, or any kind of communication functionality, you should probably use WCF.

For specific p2p protocols, like direct connect, BitTorrent and the like you need to decide first which protocol you want to use, and most likely there will be an already existing .Net library for it.

Remus Rusanu
Thanks!I don't want to implement a specific p2p protocol,My aim is to make on the Internet between two computers communicate with each other,And that both computers are on different LAN
guaike
+1  A: 

did you try to google? here what i found P2P And C# , P2P based chat, Making Peer-to-Peer Chatting Easy

ArsenMkrt
Thank you!!The first one is what I want.<a href='http://www.csharphelp.com/archives/archive261.html'> P2P And C# </a>
guaike