erlang 如何创建一个P2P网络聊天没有任何服务器?

eoxn13cs  于 2022-12-08  发布在  Erlang
关注(0)|答案(3)|浏览(222)

有没有办法在没有任何服务器情况下创建P2P网络聊天?

9rbhqvlz

9rbhqvlz1#

Yes, but you must decide on a place to meet.
If your friend send his ip over to you, you can connect. Then you only need to tell some more people to join. After some time you will get bigger and bigger. Then, if some link on the net fail, the cloud will be broken up in two clouds(netsplit). Then everyone need to know how to get back to being "one cloud".
Some one in the cloud always have to play the server, that is done with voting. If all agreed on who is the server, then it's decided. If not agreed, shoot one down and vote again.
You have to host your own web-server to serve up the web-interface, I guess.
I have not tried this. But I think it would work.

balp4ylt

balp4ylt2#

Malte Uble的优秀文章UniversalComet正是这样做的,作为一个概念的证明。甚至适用于iPhone和Android手机。

0yg35tkg

0yg35tkg3#

如果您愿意使用Flash,请查看Adobe Stratus,它支持点对点数据和视频流。http://labs.adobe.com/technologies/stratus/

相关问题