Flash p2p:管理客户端
在 p2p (cirrus) 应用程序中管理客户端的最佳方式是什么?例如,我想制作一款 2 人游戏。用户单击“比赛”按钮,另一个随机用户(也单击“比赛”)将成为他的对手。我试图了解管理此类点击“播放”的在线用户的最佳方式是什么。我怎么知道有人离线了?哪种服务器技术是最好的?我正在考虑 FMS,但是如果我有它,我就不需要 p2p 了,不是吗?我可以只使用 client1 <--> FMS <--> client2 方案来制作游戏。 感谢您的帮助。
What's the best way of managing clients in p2p (cirrus) application? For example, I want to make a game for 2 players. User clicks button "Play", and another random user (who also clicked "play"), will become his opponent. And I'm trying to understand, what's the best way of managing such online users, who clicked "play". And how can I understand, that someone went offline? What server technology will be the best one? I'm thinking of FMS, but if I have it, I do not need p2p, do I? I could just use client1 <--> FMS <--> client2 scheme to make the game.
Thanks for help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以查看 https://github.com/s9tpepper/RealtimeGameLib
或者
http://code.google.com/p/cocoon-p2p/
我使用FMS 和 SharedObject.getRemote() 用于活跃用户名册。
但是,如果您正在构建仅适用于 P2P 用户的应用程序,则可以通过 Stratus/Cirrus
groupspec.serverChannelEnabled = true
使用 NetGroup 和引导用户(就像 tomkrcha 在 realtimegamelib 中所做的那样)。http://www.adobe.com/devnet/flashmediaserver/articles/p2p_rtmfp_groups.html
You could have a look at https://github.com/s9tpepper/RealtimeGameLib
or
http://code.google.com/p/cocoon-p2p/
I use FMS and SharedObject.getRemote() for active users roster.
But if you are building an application available only for P2P users, you could use NetGroup and bootstrap users via Stratus/Cirrus
groupspec.serverChannelEnabled = true
(like tomkrcha does in realtimegamelib).http://www.adobe.com/devnet/flashmediaserver/articles/p2p_rtmfp_groups.html