dtukyb8095 2013-03-06 22:42
浏览 39
已采纳

在我开始之前需要帮助,将图像显示给多个人[关闭]

I am looking into what language I would need to learn to do the following,

The screen needs to be view able by multiple people such as a map First they would log in, 1 Person has control over the entire map including controls such as Fog of War, Place tokens down. 1-5 People should be able to see the map but with out being able to make any changes to it.

Any help into the right direction would be helpful. If this does have a name in programming or what not, please let me know and I at least go do some research on it.

  • 写回答

1条回答 默认 最新

  • douwei3280 2013-03-06 22:49
    关注

    This is achievable in a couple ways, but one newer technique/methodology that would fit well is Comet. The basic idea is that users subscribe to various server feeds and receive updates when the server broadcasts new events.

    In this way, Person 1 could send a request to the server to trigger placing a token on the map. Then the server would be set up to broadcast this event to all subscribers (People 2-5).

    The glue would be some kind of client-side application you put together in Javascript that will handle the responses from the server and function as an application for the users. You would need to consider some means for controlling the difference between Person 1 and Person 2-5. That could be done via client-server setup where the client application depends on permissions and authentications from an application server.

    You can accomplish the tasks in the last paragraph with any number of technologies, choose whatever feels most comfortable to you. If I were to do it, I might use backbone.js on the client-side and then some kind of RESTful API on the server side. RESTful is rather ubiquitous so just implement the server side in any language you prefer that has a 3rd party library support for Comet and REST.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了