开发者

Flash p2p: managing clients

开发者 https://www.devze.com 2023-02-13 18:45 出处:网络
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\")

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.


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

0

精彩评论

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