开发者

P2P for chat and/or broadcasting messages

开发者 https://www.devze.com 2023-01-30 14:48 出处:网络
So basically I want to be write a P2P-software that is able to send text messages to all nodes, kind of like IRC. What kind of network am I adviced to use? I\'ve looked some into DHT Kademlia, and it

So basically I want to be write a P2P-software that is able to send text messages to all nodes, kind of like IRC. What kind of network am I adviced to use? I've looked some into DHT Kademlia, and it seems easy enough to implement, but it doesn't appear to be useful for what I want to do? What kind of protocol does Skype, for example, use?

edit: and I forgot to mention, 开发者_运维知识库it doesn't have to be instant messaging, a latency of several minutes is more than acceptable. I don't suppose I could continously try getting the data corresponding to the to the current time every five minutes or something on all nodes?


What kind of network am I adviced to use?

If Java is an option for you, then you should investigate JXTA and propagated messages.

I've looked some into DHT Kademlia, and it seems easy enough to implement, but it doesn't appear to be useful for what I want to do?

DHT tells you where your information is (i.e. which node), but doesn't tell you how to access it and transfer it. The latter issue is pretty technical and involves NAT traversal and TURN or STUNT P2P implementation.


You say "all nodes".

If you want broadcast functionality i'd suggest using Freepastry. Have a look at the scribe tutorial here. https://trac.freepastry.org/wiki/tut_scribe

I've used free pastry as a file sharing application and have done quite a bit of performance testing. It's very easy to implement and is very reliable. Works great in my experience.

0

精彩评论

暂无评论...
验证码 换一张
取 消