没有 Cirrus/LCCS 也可以实现 Flash p2p 吗?
如果没有 Cirrus/LiveCycle 协作服务?我见过一个类似的问题,它是在那里声称这是不可能的。那么,为什么不呢?另外,我看到 back2dos 同志对一些想法问题,但他被否决了,所以我想知道他是否正确?
Is it true that Flash p2p cannot be done without Cirrus/LiveCycle Collaboration Service? I've seen a similar question on SO and it is claimed there that it cannot be done. So, why not? Also, I've seen comrade back2dos had some thoughts on the problem, but he was downvoted, so I am wondering whether he's right?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果您只需要 LAN 上的点对点,请查看此内容: http://www.flashrealtime.com/local-flash-peer-to-peer-communication-over-lan-without-cirrus/
Check this out if you only need peer to peer on a LAN: http://www.flashrealtime.com/local-flash-peer-to-peer-communication-over-lan-without-cirrus/
真正的 P2P 实际上是不可能的,因为 FlashPlayer 无法接受来自对等方的传入连接,只能接受来自公共主机服务的中介连接。
因此,虽然 Cirrus 和 LCCS 提供了某种 P2P 功能,但这并不是真正的 P2P。
也就是说,他们提供的内容可以“轻松”复制,注册基于闪存的客户端(必须与主机保持持久连接)并调解它们之间的通信的主机并不是世界上最复杂的事情。
这实际上取决于您想要构建的应用程序的具体类型,例如,Torrent 客户端(由于缺乏直接传入连接支持)是不可能的。但是,如果没有 Cirrus/LCCS,协作和其他类似的 P2P 应用程序也是可能的。
True P2P isn't really possible since the FlashPlayer can't accept incoming connections from peers, only mediated connections from a common host service.
So while Cirrus and LCCS offer a sort of P2P functionality, it's not true P2P.
That said, what they do provide could "easily" be replicated, a host which registers Flash based clients (persistent connection to the host is mandatory) and mediates communication between them is not the most complex thing in the world.
It really depending on the specific sort of application you want to build, a Torrent client is (due to the lack of direct incoming connection support) for example, impossible. But collaboration and other similar P2P apps are quite possible without Cirrus/LCCS.
我对那些技术不熟悉。但是,我确实知道 Flash 已经实现了低级
XMLSocket
类。根据您正在执行的操作的复杂性,这可能是一个合适的解决方案。我个人没有使用过它,但我有一个朋友使用它创建了一个简单的游戏客户端。I am not familiar with those technologies. However, I do know that Flash has implemented a low-level,
XMLSocket
class. Depending on the complexity of what you're doing, this may be a suitable solution. I haven't used it personally, but I have a friend who created a simple game client using this.Flash Media Server Enterprise 没有提到吗?它就像带有老式 AS1 和高级视频流的 Cirrus。在 AIR 中,您可以执行一些在 Flash Player 中无法执行的操作,例如打开各种侦听套接字。
这太难了,因为他们想保持对 $$$ 的控制(FMS 相当昂贵,尽管 Amazon EC2 有它)。
Flash Media Server Enterprise is not mentioned? It's like Cirrus with old-skool AS1 and advanced video streaming. And in AIR you can do some stuff you cant do in Flash Player, like opening all kinds of listening sockets.
It's so hard because they want to keep control over the $$$ (FMS is pretty expensive, although Amazon EC2 has it).