Hosting games locally with Flash?

江枫思渺然 提交于 2019-12-23 18:37:03

问题


I just can't find the right Google search terms for this...

Is it possible to use Flash (or a Flash compatible service) to allow players in a game to host their own games (using their own bandwidth), through a web browser? In a way, to run their own game servers (for a Flash in-browser game) from their computer, but through a web browser using Flash?

If so, any recommendations?

Thanks in advance for any help!


回答1:


I am guessing that you want to make some kind of "game room" on which users can join local sessions hosted by themselves.

The word you are looking for is P2P.

Some useful links:

  • http://www.flashrealtime.com/local-flash-peer-to-peer-communication-over-lan-without-cirrus/
  • http://www.flashrealtime.com/video-on-demand-over-p2p-in-flash-player-101-with-object-replication/
  • http://www.flashrealtime.com/tuts/p2p-in-flash.html
  • http://labs.adobe.com/technologies/cirrus/
  • http://www.adobe.com/devnet/flashmediaserver/articles/p2p_apps_cirrus_lccs.html

Cheers




回答2:


Flash has flash.net.ServerSocket class, which can listen to incoming connections. So it's certainly possible, but I doubt it scales well beyound several players.



来源:https://stackoverflow.com/questions/6249516/hosting-games-locally-with-flash

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!