Does WCF supports Peer-to-peer implementation?

99封情书 提交于 2019-12-06 08:00:03

问题


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?


回答1:


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.




回答2:


Yes. Check out the NetPeerTCPBinding.



来源:https://stackoverflow.com/questions/2202301/does-wcf-supports-peer-to-peer-implementation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!