如何多播鼠标移动 [英] how to multicast mouse movement

查看:90
本文介绍了如何多播鼠标移动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试开发一个电子学习的Web应用程序,该应用程序将具有某种白板.是否有一种多播鼠标移动的方式,即当讲座在白板"上书写时,所有其他客户端都可以看到这些书写内容. .我希望这很清楚,并且这是问这个问题的正确位置.

I am trying to develop an elearning web application that is going to have some kind of white board.Is there a way of multicasting mouse movement i.e when the lecture writes on the "white board " these writings are visible to all other clients .I hope this is clear and that this is the right place to ask this.

推荐答案

不要像其他海报所说的那样进行任何轮询".这是完全错误的.

您需要编写客户端服务器程序,并验证本地路由器是否支持多播并启用了多播.

通过服务器程序执行此操作:

从服务器应用程序(一个预定的IP,在可用的多播IP插槽中)中创建一个多播组.现在,服务器应用程序可以根据需要简单地将数据包连续不断地发送到该IP地址.

通过您的客户端程序执行此操作:


加入所述多播组并在预定的端口上侦听.路由器会自动通知所有已加入该组的对等方,并将数据包发送到多播组.

我所描述的内容适用于本地级别(LAN).要在网络上进行此操作,您需要连接到 MBone [
Do not do any "polling" like the other poster said to you. It''s completely wrong.

You need to write a client server program and verify that the local router supports multicasting and is multicasting enabled.

Do this from your server program:

Create a multicasting group from within your server application (a predecided IP, amongst the available multicasting IP slots). Now the server application simply sends packets to this IP address continuously, as and when required.

Do this from your client program:


Join the said multicasting group and listen on the preagreed port. All the peers that have joined the group will be automatically notified by the router with the packets sent to the multicasting group.

What I described would apply for local level (LAN). For taking this on the web, you''ll need to be connected to the MBone[^] first and then proceed from there. (Explaining the architecture of MBone or Multicasting itself is out of scope of this thread).

Important: If you have further queries or doubts, click on the "New Message" at the bottom of this page to provide more clarification.


我想我会设置一个轮询的客户端应用程序经常使用网络服务.
I think I would set up a client app that polled a webservice every so often.


这篇关于如何多播鼠标移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆