Prashant Cholachagudda
Prashant Cholachagudda

Reputation: 13090

Does WCF supports Peer-to-peer implementation?

I'm trying to implement peer-to-peer messaging and file sharing utility within LAN, So does WCF supports p2p? Does any one tried file sharing trough WCF?

Upvotes: 3

Views: 1778

Answers (2)

Robert Christie
Robert Christie

Reputation: 20695

Yes. Check out the NetPeerTCPBinding.

Upvotes: 1

Andrew Hare
Andrew Hare

Reputation: 351566

Yes, it does. Please see How To Design State Sharing In A Peer Network:

When researching the various ways in which an election scenario might be implemented, I discovered that there is an attribute in WCF that allows you to indicate the maximum number of hops that a particular message will travel. After seeing this, it became obvious that there was a means for sharing state in a peer network that not only required no central server, but was resilient to node drop-off and did not require election. I call it Nearest Peer Synchronization.

Upvotes: 2

Related Questions