[go: up one dir, main page]

CN107770219A - A kind of sharing method, gateway server and the system of form window - Google Patents

A kind of sharing method, gateway server and the system of form window Download PDF

Info

Publication number
CN107770219A
CN107770219A CN201610693802.4A CN201610693802A CN107770219A CN 107770219 A CN107770219 A CN 107770219A CN 201610693802 A CN201610693802 A CN 201610693802A CN 107770219 A CN107770219 A CN 107770219A
Authority
CN
China
Prior art keywords
client
server
data
monitoring
controlled
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610693802.4A
Other languages
Chinese (zh)
Inventor
魏国强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201610693802.4A priority Critical patent/CN107770219A/en
Priority to PCT/CN2017/094774 priority patent/WO2018032953A1/en
Publication of CN107770219A publication Critical patent/CN107770219A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/08Protocols specially adapted for terminal emulation, e.g. Telnet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明公开了一种视窗窗口的共享方法、网关服务器和系统,利用设置在控制客户端和被控服务器之间的网关服务器,可以接收控制客户端的输入发送给被控服务器以便控制被控服务器操作,接收被控服务器的反馈的输出数据并发给控制至少一个客户端,由于输出数据中存在反映控制客户端对被控服务器的操作的监控数据,将监控数据发送给监控客户端,监控客户端可以实时监控控制客户端对被控服务器的操作,实现将某用户访问被控服务器的操作实时分享给一个或多个用户。相对于现有技术,本发明对远程桌面服务的应用模式没有限制,且在被控服务器上不需要额外安装共享软件,共享过程的传输效率得到了提高,用户体验度更好,具有更高的实用性和更好的适应性。

The invention discloses a window sharing method, a gateway server and a system. The gateway server arranged between the control client and the controlled server can receive the input of the control client and send it to the controlled server so as to control the operation of the controlled server. , receive the output data fed back by the controlled server and send it to at least one control client. Since there is monitoring data reflecting the operation of the control client on the controlled server in the output data, the monitoring data is sent to the monitoring client. The monitoring client can Real-time monitoring and control of the operation of the client to the controlled server, realizing the real-time sharing of a user's operation of accessing the controlled server to one or more users. Compared with the prior art, the present invention has no restriction on the application mode of the remote desktop service, and does not need to install additional sharing software on the controlled server, the transmission efficiency of the sharing process is improved, the user experience is better, and it has a higher Practicality and better adaptability.

Description

一种视窗窗口的共享方法、网关服务器和系统A window sharing method, gateway server and system

技术领域technical field

本发明涉及通信领域,具体涉及一种视窗窗口的共享方法、网关服务器和系统。The invention relates to the communication field, in particular to a window sharing method, a gateway server and a system.

背景技术Background technique

桌面共享是在互联网上一种常用的远程交流、协作的方式,能够将一方对于桌面的情况实时传递到远端的另一方。常用的软件有VNC(Virtual Network Computing,虚拟网络计算机)和TeamViewer,其中VNC是点对点的模式,而TeamViewer是通过中心节点转发的模式。中心节点模式可以穿过防火墙,使两个内网客户都可以共享桌面,但是缺点是需要到中心节点注册。国内的QQ软件的共享也是类似的工作模式。至于点对点的VNC,则需要在服务器上运行VNC的服务器软件,并且VNC是通过桌面截屏的方式传输,传输效率没有RDP协议高。Desktop sharing is a commonly used method of remote communication and collaboration on the Internet, which can transmit the status of one party's desktop to the other remote party in real time. Commonly used software includes VNC (Virtual Network Computing, virtual network computer) and TeamViewer, wherein VNC is a point-to-point mode, and TeamViewer is a forwarding mode through a central node. The central node mode can pass through the firewall, so that two intranet clients can share the desktop, but the disadvantage is that it needs to register with the central node. The sharing of domestic QQ software is also a similar working mode. As for point-to-point VNC, you need to run the VNC server software on the server, and VNC is transmitted by means of desktop screenshots, and the transmission efficiency is not as high as that of the RDP protocol.

此外,Windows系统自带的远程桌面服务上有一个共享(shadow)功能,通常在用户同意的情况下才可以将用户的桌面共享给另外一个用户,或者只有管理员才有权限不经某用户同意共享该用户的桌面。但是无论哪种方式,该共享功能只能在桌面模式下使用,在RemoteApp(windows远程桌面服务的另外一种应用模式)的模式下没有办法进行共享。In addition, the remote desktop service that comes with the Windows system has a sharing (shadow) function. Usually, the user's desktop can be shared with another user only with the user's consent, or only the administrator has the right to do so without the consent of a user. Share the user's desktop. But either way, the sharing function can only be used in the desktop mode, and there is no way to share in the mode of RemoteApp (another application mode of Windows Remote Desktop Service).

发明内容Contents of the invention

本发明实施例要解决的主要技术问题是,提供一种视窗窗口的共享方法、网关服务器和系统,解决现有技术中需要额外安装共享软件或者远程桌面服务只能在桌面模式下使用共享功能带来的传输效率低,共享功能受远程桌面服务的应用模式限制的问题。The main technical problem to be solved by the embodiments of the present invention is to provide a window sharing method, gateway server and system, which solves the need to install additional sharing software in the prior art or the remote desktop service can only use the sharing function in the desktop mode. The incoming transmission efficiency is low, and the sharing function is limited by the application mode of the remote desktop service.

为解决上述技术问题,本发明实施例提供一种视窗窗口的共享方法,包括:In order to solve the above technical problems, an embodiment of the present invention provides a method for sharing windows, including:

接收控制客户端发送的输入数据并将其转发给被控服务器;输入数据用于控制被控服务器的操作;Receive the input data sent by the control client and forward it to the controlled server; the input data is used to control the operation of the controlled server;

接收被控服务器发送的对应于输入数据的输出数据;Receive the output data corresponding to the input data sent by the controlled server;

将输出数据发送给控制客户端,对输出数据进行分析,将其中的监控数据发送给至少一个监控客户端;监控数据用于反映控制客户端对被控服务器的操作。Send the output data to the control client, analyze the output data, and send the monitoring data therein to at least one monitoring client; the monitoring data is used to reflect the operation of the control client on the controlled server.

为解决上述技术问题,本发明实施例还提供一种网关服务器,包括:In order to solve the above technical problems, the embodiment of the present invention also provides a gateway server, including:

接收模块,用于接收控制客户端发送的输入数据以及接收被控服务器发送的对应于输入数据的输出数据;输入数据用于控制被控服务器的操作;The receiving module is used to receive the input data sent by the control client and receive the output data corresponding to the input data sent by the controlled server; the input data is used to control the operation of the controlled server;

分析模块,用于对输出数据进行分析,识别出其中的监控数据;监控数据用于反映控制客户端对被控服务器的操作;The analysis module is used to analyze the output data and identify the monitoring data therein; the monitoring data is used to reflect the operation of the control client on the controlled server;

发送模块,用于将输出数据发送给控制客户端,将分析模块分析出的监控数据发送给至少一个监控客户端。The sending module is configured to send the output data to the control client, and send the monitoring data analyzed by the analysis module to at least one monitoring client.

为解决上述技术问题,本发明实施例还提供一种视窗窗口的共享系统,包括控制客户端、被控服务器、监控客户端以及如权利要求6-8任一项的网关服务器;控制客户端、被控服务器、监控客户端分别与网关服务器连接;In order to solve the above-mentioned technical problems, an embodiment of the present invention also provides a window sharing system, including a control client, a controlled server, a monitoring client, and a gateway server according to any one of claims 6-8; the control client, The controlled server and monitoring client are respectively connected to the gateway server;

控制客户端用于向网关服务器发送输入数据,接收网关服务器发送的输出数据;输入数据用于控制被控服务器的操作;The control client is used to send input data to the gateway server and receive output data sent by the gateway server; the input data is used to control the operation of the controlled server;

被控服务器用于接收网关服务器转发的输入数据;向网关服务器发送对应于输入数据的输出数据;The controlled server is used to receive the input data forwarded by the gateway server; send the output data corresponding to the input data to the gateway server;

监控客户端用于接收网关服务器的监控数据。The monitoring client is used to receive the monitoring data of the gateway server.

本发明实施例公开了一种视窗窗口的共享方法、网关服务器和系统,利用设置在控制客户端和被控服务器之间的网关服务器,可以接收控制客户端的输入发送给被控服务器,接收被控服务器的反馈的输出数据并发给控制客户端,由于输入数据是用来控制被控服务器操作的数据,所以本发明实施例的输出数据中必然能存在反映控制客户端对被控服务器的操作的监控数据,再将输出数据中的监控数据发送给监控客户端,监控客户端可以实时监控控制客户端如何控制被控服务器的操作,实现将一个用户访问被控服务器的操作情况实时分享到一个或其他多个用户终端上。现有技术中,虽然远程桌面服务也有共享功能,但是该功能只能在桌面模式下使用,本发明实施例的对远程桌面服务的应用模式没有限制,且在被控服务器上不需要额外安装如VNC等共享软件,只需要Windows自带的远程桌面服务,使用RDP协议传输,传输效率得到了提高,用户体验度更好,此外还提高了对现有资源的有效利用,具有更高的实用性和更好的适应性。The embodiment of the present invention discloses a window sharing method, a gateway server and a system. The gateway server installed between the control client and the controlled server can receive the input from the control client and send it to the controlled server, and receive the input from the controlled server. The output data fed back by the server is sent to the control client. Since the input data is used to control the operation of the controlled server, there must be monitoring in the output data of the embodiment of the present invention that reflects the operation of the controlled server by the control client. data, and then send the monitoring data in the output data to the monitoring client. The monitoring client can monitor and control the operation of the controlled server in real time, and realize the real-time sharing of the operation status of a user's access to the controlled server to one or other on multiple user terminals. In the prior art, although the remote desktop service also has a sharing function, this function can only be used in the desktop mode. The embodiment of the present invention has no restrictions on the application mode of the remote desktop service, and no additional installation such as Shared software such as VNC only needs the remote desktop service that comes with Windows, using the RDP protocol for transmission, the transmission efficiency has been improved, and the user experience is better. In addition, it also improves the effective use of existing resources and has higher practicability and better adaptability.

附图说明Description of drawings

图1为本发明实施例一提供的一种视窗窗口的共享方法的流程图;FIG. 1 is a flowchart of a window sharing method provided by Embodiment 1 of the present invention;

图2为本发明实施例二提供的另一种视窗窗口的共享方法的流程图;FIG. 2 is a flow chart of another window sharing method provided by Embodiment 2 of the present invention;

图3为本发明实施例三提供的一种网关服务器的模块示意图。FIG. 3 is a schematic diagram of modules of a gateway server provided by Embodiment 3 of the present invention.

具体实施方式Detailed ways

下面通过具体实施方式结合附图对本发明作进一步详细说明。The present invention will be further described in detail below through specific embodiments in conjunction with the accompanying drawings.

实施例一:Embodiment one:

参见图1,示出了一种视窗窗口的共享方法,可以在用户使用控制客户端远程操控被被控服务器的情况下,通过对控制客户端和被控服务端之间传输的数据进行拦截,并对被控服务器向控制客户端反馈的输出数据进行分析,从中识别出能反映控制客户端对被控服务器的操作的监控数据,通过将监控数据发送给监控客户端,可以使得监控客户端实现监控控制客户端对被控服务器的操作,达到在监控客户端上实时监控用户操作的目的。Referring to FIG. 1 , it shows a method for sharing windows. When the user uses the control client to remotely control the controlled server, by intercepting the data transmitted between the control client and the controlled server, And analyze the output data fed back from the controlled server to the controlling client, identify the monitoring data that can reflect the operation of the controlling client on the controlled server, and send the monitoring data to the monitoring client, so that the monitoring client can realize Monitor and control the operation of the client to the controlled server to achieve the purpose of real-time monitoring of user operations on the monitoring client.

本实施例的视窗窗口的共享方法包括:The sharing method of the window window of the present embodiment comprises:

S101、接收控制客户端发送的输入数据并将其转发给被控服务器;输入数据用于控制被控服务器的操作;S101. Receive input data sent by the control client and forward it to the controlled server; the input data is used to control the operation of the controlled server;

S102、接收被控服务器发送的对应于输入数据的输出数据;S102. Receive output data corresponding to the input data sent by the controlled server;

S103、将输出数据发送给控制客户端,对输出数据进行分析,将其中的监控数据发送给至少一个监控客户端;监控数据用于反映控制客户端对被控服务器的操作。S103. Send the output data to the control client, analyze the output data, and send the monitoring data therein to at least one monitoring client; the monitoring data is used to reflect the operation of the control client on the controlled server.

由上述的步骤其实可以得到,在本实施例中,控制客户端是用来对被控服务器进行远程控制的客户端,其功能可以由软件程序来实现,当然,控制客户端也可以是安装了远程控制软件的终端,包括电脑、平板、甚至手机等电子设备。In fact, it can be obtained from the above steps. In this embodiment, the control client is a client used to remotely control the controlled server, and its functions can be realized by software programs. Of course, the control client can also be installed Terminals for remote control software, including electronic devices such as computers, tablets, and even mobile phones.

可以预见,为了控制客户端和被控服务器之间的远程控制能实现,被控服务器上也需要安装有与监控客户端对应的实现远程控制的软件。It can be foreseen that in order to realize the remote control between the control client and the controlled server, the controlled server also needs to be installed with remote control software corresponding to the monitoring client.

本实施例的上述步骤可以由设置在控制客户端以及被控服务器之间的网关服务器实现,网关服务器分别与控制客户端和被控服务器连接,可以对它们之间传输的数据进行拦截、分析、分流传输。本实施例的控制客户端与被控服务器之间可以基于RDP(RemoteDesktop Protocol,远程桌面协议)进行通信。为了控制客户端与被控服务器之间可以正确交流,实现控制客户端对被控服务器的远程控制,控制客户端和被控服务器传输的数据的压缩和解压需要满足协议(RDP)要求。本实施例中,控制客户端和监控客户端是满足RDP协议的客户端。The above-mentioned steps of this embodiment can be realized by the gateway server that is arranged between the control client and the controlled server, and the gateway server is respectively connected with the control client and the controlled server, and can intercept, analyze, and analyze the data transmitted between them. Split transmission. The communication between the control client and the controlled server in this embodiment may be based on RDP (RemoteDesktop Protocol, remote desktop protocol). In order to communicate correctly between the control client and the controlled server, and realize the remote control of the controlled server by the control client, the compression and decompression of the data transmitted by the control client and the controlled server must meet the requirements of the protocol (RDP). In this embodiment, the control client and the monitoring client are clients that meet the RDP protocol.

控制客户端可以通过windows自带的远程桌面(mstsc.exe)或RemoteApp模式远程连接到被控服务器上,当然,在本实施例中,也可以采用其他的可行的远程控制的软件实现控制客户端与被控服务器的远程连接,不局限于远程桌面(mstsc.exe)或RemoteApp模式。The control client can be remotely connected to the controlled server through the remote desktop (mstsc.exe) or RemoteApp mode carried by windows. Of course, in this embodiment, other feasible remote control software can also be used to realize the control client The remote connection with the controlled server is not limited to remote desktop (mstsc.exe) or RemoteApp mode.

为了使得控制客户端的输入数据可以发送到被控服务器,并且能接收到被控服务器反馈的输出数据,在S101之前,需要在控制客户端、被控服务器、网关服务器之间进行相应的设置。In order to enable the input data of the control client to be sent to the controlled server and to receive the output data fed back by the controlled server, before S101, corresponding settings need to be made between the control client, the controlled server, and the gateway server.

一般,用户操作的是控制客户端,用户可以通过控制客户端向网关服务器发起连接,控制客户端发起连接的地址是网关服务器的地址。具体的,控制客户端可以向网关服务器发送第一连接请求,第一连接请求中可以携带控制客户端欲控制的被控服务器的信息。Generally, the user operates the control client, and the user can initiate a connection to the gateway server through the control client, and the address of the control client to initiate the connection is the address of the gateway server. Specifically, the control client may send a first connection request to the gateway server, and the first connection request may carry information about the controlled server to be controlled by the control client.

所以在本实施例中S101前,还包括:其接收控制客户端的第一连接请求,根据第一连接请求中的信息实现与控制客户端的连接。其中,第一连接请求携带需要控制的被控服务器的相关信息,此相关信息可以帮助网关服务器确定控制客户端需要控制的服务器具体是哪一个,然后根据被控服务器的信息与控制客户端进行相关协议(例如RDP协议)需要的协商,完成控制客户端到网关服务器之间的连接。其中,如果被控服务器设置有登录用户名和登录密码,第一连接请求中可以携带被控服务器的登录用户名和登录密码,便于与被控服务器的连接时,完成被控服务器的解锁。本实施例中,在与控制客户端完成协议协商后,可以使用控制客户端发送的第一连接请求携带的信息发起与被控服务器的连接,并进行相关协议(例如RDP协议)需要的协商,如用户名和登录密码的认证等等。Therefore, before S101 in this embodiment, it also includes: receiving the first connection request from the control client, and realizing the connection with the control client according to the information in the first connection request. Among them, the first connection request carries the relevant information of the controlled server to be controlled, and this relevant information can help the gateway server determine which server the controlling client needs to control, and then correlate with the controlling client according to the information of the controlled server The negotiation required by the protocol (eg RDP protocol) completes the connection between the control client and the gateway server. Wherein, if the controlled server is provided with a login user name and a login password, the first connection request may carry the login user name and password of the controlled server, so as to complete the unlocking of the controlled server when connecting with the controlled server. In this embodiment, after completing the protocol negotiation with the control client, the information carried in the first connection request sent by the control client can be used to initiate a connection with the controlled server, and carry out the negotiation required by the relevant protocol (such as the RDP protocol), Such as user name and login password authentication and so on.

与控制客户端和被控服务器的协议协商过程均完成后,被控服务器就可以输出包含自身当前操作界面的图像数据和其他的协议规定的通道数据如语音数据等给网关服务器,网关服务器接收到这些输出的协议数据后,可以解压这些协议数据,然后按照RDP协议在对这些数据进行压缩,之后将压缩的数据转发到控制客户端上,上述是被控服务器的数据到达控制客户端的过程。控制客户端的数据到达被控服务器的过程类似。After the protocol negotiation process with the controlling client and the controlled server is completed, the controlled server can output the image data including its own current operation interface and other channel data such as voice data specified by the protocol to the gateway server, and the gateway server receives the After the output protocol data, the protocol data can be decompressed, then compressed according to the RDP protocol, and then the compressed data is forwarded to the control client. The above is the process of the controlled server's data reaching the control client. The process of the control client's data reaching the controlled server is similar.

其中,可以预见,在被控服务器上可能有多个客户端在使用,也就会造成被控服务器上同时存在多个会话,一般为了对多个会话进行区分,被控服务器上的多个会话均有各自对应的会话ID(SESSION ID),在被控服务器发送给网关服务器的协议数据中也包括会话ID,网关服务器在将被控服务器输出的协议数据解压后,可以将其中的会话ID识别出来并保存,在监控客户端需要接入网关服务器对某一对控制客户端和被控服务器进行监控时,将会话ID作为区别监控对象(区别监控客户端具体连接哪一个会话)的标识。Among them, it can be foreseen that there may be multiple clients in use on the controlled server, which will also cause multiple sessions to exist on the controlled server at the same time. Generally, in order to distinguish between multiple sessions, multiple sessions on the controlled server Each has its own corresponding session ID (SESSION ID). The protocol data sent by the controlled server to the gateway server also includes the session ID. The gateway server can identify the session ID after decompressing the protocol data output by the controlled server. Come out and save, when the monitoring client needs to access the gateway server to monitor a certain pair of control client and controlled server, the session ID is used as the identification of distinguishing the monitoring object (distinguishing which session the monitoring client specifically connects to).

其中,协议协商完成后,控制客户端接收用户通过键盘和鼠标等输入工具的输入,生成并发送输入数据给网关服务器,被控服务器根据网关服务器转发给自身的输入数据进行相应的操作,然后返回对应的输出数据到网关服务器。Among them, after the protocol negotiation is completed, the control client receives the user's input through keyboard and mouse input tools, generates and sends input data to the gateway server, and the controlled server performs corresponding operations according to the input data forwarded by the gateway server to itself, and then returns Corresponding output data to the gateway server.

可以预见,当监控客户端欲监控控制客户端对被控服务器的操作时,需要先完成与网关服务器的连接。即在S103中网关服务器向监控客户端发送数据之前。还需要接收至少一个监控客户端的第二连接请求,根据第二连接请求携带的信息建立与监控客户端的连接。其中,当监控客户端通过第二连接请求向网关服务器发起连接时,输入的服务器的地址即为网关服务器的地址,连接请求中还包括了监控客户端自身需要监控的会话的会话ID,该会话ID是监控客户端需要监控的控制客户端与被控服务器的会话的会话ID。It can be foreseen that when the monitoring client wants to monitor and control the client's operation on the controlled server, it needs to complete the connection with the gateway server first. That is, before the gateway server sends data to the monitoring client in S103. It is also necessary to receive a second connection request from at least one monitoring client, and establish a connection with the monitoring client according to the information carried in the second connection request. Wherein, when the monitoring client initiates a connection to the gateway server through the second connection request, the address of the input server is the address of the gateway server, and the connection request also includes the session ID of the session that the monitoring client itself needs to monitor. The ID is the session ID of the session between the control client and the controlled server that the monitoring client needs to monitor.

接收到监控客户端的第二连接请求后,根据会话ID确定监控客户端需要监控的被控服务器具体是哪一个,再根据被控服务器的信息与监控客户端进行相关协议(RDP协议)需要的协商。After receiving the second connection request from the monitoring client, determine which controlled server the monitoring client needs to monitor according to the session ID, and then negotiate with the monitoring client on the relevant protocol (RDP protocol) according to the information of the controlled server .

进一步地,为了避免其他客户端非法连接网关服务器,造成用户的隐私泄露,本实施例中,可以对监控客户端的进行身份认证,认证通过,才完成协议协商。其中,监控客户端可以在第二连接请求中写入自身与网关服务器的认证信息,例如采用令牌作为监控客户端与网关服务器的认证信息。网关服务器根据第二连接请求中的认证信息进行认证,认证通过,则认为监控客户端是合法的监控客户端。Furthermore, in order to prevent other clients from illegally connecting to the gateway server and causing user privacy leakage, in this embodiment, identity authentication can be performed on the monitoring client, and the protocol negotiation is completed only after the authentication is passed. Wherein, the monitoring client may write the authentication information between itself and the gateway server in the second connection request, for example, a token is used as the authentication information between the monitoring client and the gateway server. The gateway server performs authentication according to the authentication information in the second connection request, and if the authentication passes, the monitoring client is deemed to be a legal monitoring client.

其中,网关服务器可以在从第二连接请求中取出会话ID,根据会话ID确定共享的会话的过程之前,先进行上述的认证过程,进一步确保监控客户端的监控行为的合法。Wherein, the gateway server may perform the above-mentioned authentication process before taking out the session ID from the second connection request and determining the shared session according to the session ID, so as to further ensure the legality of the monitoring behavior of the monitoring client.

在网关服务器与监控客户端的协议协商完成后,当网关服务器接收到被控服务器的输出数据,就可以对其中的监控数据进行识别,发送给监控客户端。After the protocol negotiation between the gateway server and the monitoring client is completed, when the gateway server receives the output data from the controlled server, it can identify the monitoring data and send it to the monitoring client.

可以预见,S102中,被控服务器发送的输出数据中一般包含了图像数据,这些图像数据是由被控服务器根据自身的界面获取得到的图像数据,可以准确反映被控服务器在控制客户端的控制下的操作,被控服务器获取图像数据的方式包括但不限于截屏,可以预见,为了在监控客户端和控制客户端上呈现被控服务器的界面,输出数据中的图像数据至少包含一张图片。所以,在S103中,对输出数据进行分析,将其中的监控数据发送给至少一个监控客户端的过程包括:对输出数据进行分析,将输出数据中的图像数据发送给至少一个监控客户端。当然,除了图像数据之外,也可以将其他可以反映控制客户端对被控服务器的操作的数据作为监控数据发送给监控客户端。It can be foreseen that in S102, the output data sent by the controlled server generally includes image data, and these image data are obtained by the controlled server according to its own interface, which can accurately reflect that the controlled server is under the control of the controlling client. The way the controlled server acquires image data includes but is not limited to screenshots. It is foreseeable that in order to present the interface of the controlled server on the monitoring client and the control client, the image data in the output data includes at least one picture. Therefore, in S103, the process of analyzing the output data and sending the monitoring data to at least one monitoring client includes: analyzing the output data and sending the image data in the output data to at least one monitoring client. Of course, in addition to the image data, other data that can reflect the operation of the control client on the controlled server can also be sent to the monitoring client as monitoring data.

在本实施例S103中,收到被控服务器的输出数据后,可以先将输出数据发送给控制客户端,再对输出数据进行分析得到图像数据发送给监控客户端;也可以先对输出数据进行分析得到图像数据发送给监控客户端,再将输出数据发送给控制客户端;或者较优的,在网关服务器将输出数据发送给控制客户端的同时,对输出数据进行分析,将其中的监控数据发送给至少一个监控客户端。In S103 of this embodiment, after receiving the output data of the controlled server, the output data can be sent to the control client first, and then the output data is analyzed to obtain image data and sent to the monitoring client; The analyzed image data is sent to the monitoring client, and then the output data is sent to the control client; or better, when the gateway server sends the output data to the control client, it analyzes the output data and sends the monitoring data to the to at least one monitoring client.

在本实施例中,监控客户端只是监控控制客户端的操作,因此通常不会有任何输入的要求。但是监控客户端一般也是具有如键盘、鼠标等输入工具的,为了防止监控客户端输入对被控服务器造成影响,以及用户在监控客户端的误操作。在网关服务器上需要对监控客户端的输入进行过滤,即在本实施例中,在网关服务器已经完成与监控客户端的协议协商后,若接收到监控客户端发送的输入数据(包括但不限于键盘输入和鼠标输入),则丢弃该输入数据。In this embodiment, the monitoring client only monitors and controls the operation of the client, so generally there is no requirement for any input. However, the monitoring client generally also has input tools such as a keyboard and a mouse, in order to prevent the input of the monitoring client from affecting the controlled server, and the user's misoperation on the monitoring client. On the gateway server, the input of the monitoring client needs to be filtered, that is, in this embodiment, after the gateway server has completed the protocol negotiation with the monitoring client, if the input data (including but not limited to keyboard input) sent by the monitoring client is received and mouse input), the input data is discarded.

采用本实施例的视窗窗口的共享方法,可以接收控制客户端的输入发送给被控服务器,接收被控服务器的反馈的输出数据并发给控制客户端,由于输入数据是用来控制被控服务器操作的数据,所以本发明实施例的输出数据中必然能存在反映控制客户端对被控服务器的操作的监控数据,再将输出数据中的监控数据发送给监控客户端,监控客户端可以实时监控控制客户端如何监控被控服务器,实现将一个用户访问被控服务器的操作情况实时分享到一个或其他多个用户终端上。现有技术中,虽然远程桌面服务也有共享功能,但是该功能只能在桌面模式下使用,本发明实施例的对远程桌面服务的应用模式没有限制,且在被控服务器上不需要安装其他的共享软件,只需要Windows自带的远程桌面服务功能即可,不仅提高了对现有资源的有效利用,还具有更高的实用性和更好的适应性。Adopt the window sharing method of this embodiment, can receive the input of the control client and send to the controlled server, receive the output data of the feedback of the controlled server and send to the control client, because the input data is used to control the operation of the controlled server data, so there must be monitoring data reflecting the operation of the control client on the controlled server in the output data of the embodiment of the present invention, and then the monitoring data in the output data is sent to the monitoring client, and the monitoring client can monitor and control the client in real time How the terminal monitors the controlled server, realizes the real-time sharing of the operation status of a user's access to the controlled server to one or more other user terminals. In the prior art, although the remote desktop service also has a sharing function, this function can only be used in the desktop mode. The embodiment of the present invention has no restrictions on the application mode of the remote desktop service, and there is no need to install other Sharing software only needs the remote desktop service function of Windows, which not only improves the effective use of existing resources, but also has higher practicability and better adaptability.

实施例二:Embodiment two:

参见图2,本实施例提出了一种视窗窗口的共享方法,在本实施例中,客户端A是监控客户端,客户端B是监控客户端,服务器S是被控服务器,本实施例的视窗窗口的共享方法包括:Referring to Fig. 2, present embodiment proposes a kind of sharing method of window window, in present embodiment, client A is monitoring client, client B is monitoring client, server S is controlled server, present embodiment Windows sharing methods include:

S201、客户端A连接网关服务器G。S201. The client A connects to the gateway server G.

客户端A是满足RDP协议要求客户端,如Windows系统自带的“远程桌面连接”。客户端A发起连接的地址是网关服务器G的地址。在连接的过程中,客户端A需要向网关服务器告知自身需要控制的服务器S是哪一个,告知的方式可以通过在连接请求中携带服务器S的信息实现。网关服务器G根据服务器S的信息与客户端A进行RDP协议要求的协商。Client A is a client that meets the requirements of the RDP protocol, such as the "Remote Desktop Connection" that comes with the Windows system. The address where client A initiates the connection is the address of gateway server G. During the connection process, the client A needs to inform the gateway server which server S it needs to control, and the notification method can be realized by carrying the information of the server S in the connection request. The gateway server G negotiates with the client A on the RDP protocol requirements according to the information of the server S.

其中,如果远程桌面连接使用的是RemoteApp的模式,就是窗口的共享,否则就是桌面的共享。本实施例的远程桌面连接只是一种示例,并不作为对客户端A的限制。Among them, if the remote desktop connection uses the RemoteApp mode, it is window sharing, otherwise it is desktop sharing. The remote desktop connection in this embodiment is only an example, and is not intended to limit the client A.

S202、网关服务器G连接服务器S。S202. The gateway server G connects to the server S.

网关服务器G使用客户端A的请求信息发起与服务器S连接,并进行RDP协议要求的协商。如用户名和密码的认证等。The gateway server G uses the request information from the client A to initiate a connection with the server S, and conducts the negotiation required by the RDP protocol. Such as user name and password authentication.

S203、网关服务器G接收服务器S的输出数据。S203. The gateway server G receives output data from the server S.

RDP协商过程完毕后,服务器S就会输出图形数据和其他协议规定的通道数据,如语音等。网关服务器G接收这些协议输出数据,然后解压这些协议数据。After the RDP negotiation process is completed, the server S will output graphics data and other channel data stipulated by the protocol, such as voice and so on. The gateway server G receives these protocol output data, and then decompresses these protocol data.

S204、网关服务器G转发输出数据到客户端A。S204. The gateway server G forwards the output data to the client A.

网关服务器再将解压后的数据进行压缩,转发到客户端A上。The gateway server then compresses the decompressed data and forwards it to client A.

在这些协议数据中会有会话ID数据,网关服务器G需要保存会话ID数据。由于服务器S上可能会多个客户端使用,会存在多个会话,因此这个会话ID可以作为客户端B监控具体哪个会话的标识。There will be session ID data in these protocol data, and the gateway server G needs to save the session ID data. Since the server S may be used by multiple clients, there may be multiple sessions, so this session ID can be used as an identification of which session the client B monitors.

S205、网关服务器G接收客户端A的输入数据。S205. The gateway server G receives the input data of the client A.

服务器S将远程桌面或者RemoteApp呈现给用户后,用户在客户端A上就可以通过鼠标和键盘操作服务器S。客户端A连接的是网关服务器G,网关服务器G接收到客户端的输入数据。After the server S presents the remote desktop or RemoteApp to the user, the user can operate the server S through the mouse and keyboard on the client A. The client A connects to the gateway server G, and the gateway server G receives the input data from the client.

S206、网关服务器G转发输入数据到服务器G。S206. The gateway server G forwards the input data to the server G.

网关服务器将接收到得输入数据进行压缩,作为一个客户端将数据发到服务器S。The gateway server compresses the received input data, and sends the data to the server S as a client.

以上是网关服务器G正常转发服务器S的输出和客户端A的输入的过程。The above is the process of the gateway server G normally forwarding the output of the server S and the input of the client A.

S207、客户端B接入网关服务器G。S207. The client B accesses the gateway server G.

客户端B也是满足RDP协议要求客户端。客户端B输入连接的服务器地址为网关服务器G的地址,连接的用户名会包含会话ID以及客户端B与网关服务器G的认证信息,如可以采用令牌作为客户端B与网关服务器G的认证信息。认证通过,就认为是合法的监控客户端。并从用户名中取出会话ID,根据会话ID来定位需要共享哪个会话。Client B is also a client that meets the requirements of the RDP protocol. The server address entered by client B to connect is the address of gateway server G, and the user name of the connection will include the session ID and the authentication information between client B and gateway server G. For example, a token can be used as the authentication between client B and gateway server G information. If the authentication is passed, it is considered to be a legitimate monitoring client. And take out the session ID from the user name, and locate which session needs to be shared according to the session ID.

S208、网关服务器G接收服务器S的输出数据。S208. The gateway server G receives the output data from the server S.

由于已经接入客户端B,网关服务器G需要分析输出数据中那些是图像数据,那些是非图像数据。对于客户端A,全部数据都需要转发过去,流程同S204。Since the client B has been connected, the gateway server G needs to analyze which of the output data is image data and which is non-image data. For client A, all data needs to be forwarded, and the process is the same as S204.

S209、网关服务器G转发输出数据中的图像数据到客户端B。S209. The gateway server G forwards the image data in the output data to the client B.

网关服务器分析出图像数据之后,只将图像输出部分的数据转发到客户端B,这样客户端B就可以看到客户端A的操作情况。After the gateway server analyzes the image data, it only forwards the data of the image output part to the client B, so that the client B can see the operation of the client A.

S210、若网关服务器G接收到客户端B的输入,则丢弃客户端B的输入。S210. If the gateway server G receives the input from the client B, discard the input from the client B.

客户端B只是监控客户端A的操作,因此通常不会有任何输入的要求。如果有意外的输入,被网关服务器G收到之后,网关服务器G将其丢弃。对于客户端A,所有的输出都需要转发到服务器S。Client B just monitors the operation of Client A, so there is usually no requirement for any input. If there is an unexpected input, after being received by the gateway server G, the gateway server G discards it. For client A, all output needs to be forwarded to server S.

采用本实施例,可以利用设置在控制客户端和被控服务器之间的网关服务器建立控制客户端和被控服务器的远程控制连接,在控制客户端和被控服务器均连接上网关服务器之后,网关服务器可以接收控制客户端的输入并发送给被控服务器,接收被控服务器的输出并发送给控制客户端,由此,实现了控制客户端和被控服务器的远程控制,同时,由于网关服务器接收的被控服务器的输出中含有可以反映被控服务器被控制客户端操作的数据,网关服务器可以将这些数据发送给监控客户端,由监控客户端根据这些数据监控控制客户端对被控服务器的操作。本实施例的方法不受远程桌面连接的应用模式的限制,也无需在应用服务器上另外安装共享软件如VNC等,本实施例方法的适应性和实用性更强。With this embodiment, the remote control connection between the control client and the controlled server can be established by using the gateway server arranged between the control client and the controlled server. After both the control client and the controlled server are connected to the gateway server, the gateway The server can receive the input from the control client and send it to the controlled server, and receive the output from the controlled server and send it to the control client. Thus, the remote control between the control client and the controlled server is realized. At the same time, because the gateway server receives The output of the controlled server contains data that can reflect the operation of the controlled server by the controlled client. The gateway server can send these data to the monitoring client, and the monitoring client monitors the operation of the controlled server by the monitoring client based on these data. The method of this embodiment is not limited by the application mode of the remote desktop connection, and there is no need to install additional sharing software such as VNC on the application server. The method of this embodiment has stronger adaptability and practicability.

实施例三:Embodiment three:

参见图3,本实施例提出了一种网关服务器,包括:Referring to Fig. 3, this embodiment proposes a gateway server, including:

接收模块31,用于接收控制客户端发送的输入数据以及接收被控服务器发送的对应于输入数据的输出数据;输入数据用于控制被控服务器的操作;The receiving module 31 is configured to receive input data sent by the control client and output data corresponding to the input data sent by the controlled server; the input data is used to control the operation of the controlled server;

分析模块32,用于对输出数据进行分析,识别出其中的监控数据;监控数据用于反映控制客户端对被控服务器的操作;The analysis module 32 is used to analyze the output data and identify the monitoring data therein; the monitoring data is used to reflect the operation of the control client on the controlled server;

发送模块33,用于将输出数据发送给控制客户端,将分析模块分析出的监控数据发送给至少一个监控客户端。The sending module 33 is configured to send the output data to the control client, and send the monitoring data analyzed by the analysis module to at least one monitoring client.

在本实施例中,接收模块31和发送模块33可以由网关服务器中的天线和相应的硬件模块实现,分析模块32可以由网关服务器中的处理器实现。In this embodiment, the receiving module 31 and the sending module 33 may be implemented by an antenna and corresponding hardware modules in the gateway server, and the analysis module 32 may be implemented by a processor in the gateway server.

在本实施例中的网关服务器分别与控制客户端和被控服务器连接,可以对控制客户端和被控服务器之间传输的数据进行拦截、分析、分流传输。本实施例的控制客户端与被控服务器之间可以基于RDP(Remote Desktop Protocol,远程桌面协议)进行通信。为了控制客户端与被控服务器之间可以正确交流,实现控制客户端对被控服务器的远程控制,控制客户端和被控服务器传输的数据的压缩和解压需要满足协议(RDP)要求。本实施例中,控制客户端和监控客户端是满足RDP协议的客户端。The gateway server in this embodiment is connected to the control client and the controlled server respectively, and can intercept, analyze, and distribute the data transmitted between the control client and the controlled server. The communication between the control client and the controlled server in this embodiment may be based on RDP (Remote Desktop Protocol, remote desktop protocol). In order to communicate correctly between the control client and the controlled server, and realize the remote control of the controlled server by the control client, the compression and decompression of the data transmitted by the control client and the controlled server must meet the requirements of the protocol (RDP). In this embodiment, the control client and the monitoring client are clients that meet the RDP protocol.

在本实施例中,控制客户端是用来对被控服务器进行远程控制的客户端,其功能可以由软件程序来实现,当然,控制客户端也可以是安装了远程控制软件的终端,包括电脑、平板、甚至手机等电子设备。可以预见,为了控制客户端和被控服务器之间的远程控制能实现,被控服务器上也需要安装有与监控客户端对应的实现远程控制的软件。In this embodiment, the control client is a client used to remotely control the controlled server, and its functions can be realized by software programs. Of course, the control client can also be a terminal installed with remote control software, including a computer , tablets, and even mobile phones and other electronic devices. It can be foreseen that in order to realize the remote control between the control client and the controlled server, the controlled server also needs to be installed with remote control software corresponding to the monitoring client.

控制客户端可以通过windows自带的远程桌面(mstsc.exe)或RemoteApp模式远程连接到被控服务器上,当然,在本实施例中,也可以采用其他的可行的远程控制的软件实现控制客户端与被控服务器的远程连接,不局限于远程桌面(mstsc.exe)或RemoteApp模式。The control client can be remotely connected to the controlled server through the remote desktop (mstsc.exe) or RemoteApp mode carried by windows. Of course, in this embodiment, other feasible remote control software can also be used to realize the control client The remote connection with the controlled server is not limited to remote desktop (mstsc.exe) or RemoteApp mode.

为了实现网关服务器对控制客户端和被控服务器的数据的接收和发送,需要先建立网关服务器与控制客户端和被控服务器的连接,一般是由控制客户端先向网关服务器发送第一连接请求,第一连接请求中携带了被控服务器的信息。In order for the gateway server to receive and send data from the control client and the controlled server, it is necessary to first establish a connection between the gateway server and the control client and the controlled server. Generally, the control client first sends the first connection request to the gateway server. , the information of the controlled server is carried in the first connection request.

网关服务器的接收模块可以接收第一连接请求,分析模块可以对第一连接请求进行解压,从中去除被控服务器的信息,根据此信息确定控制客户端需要控制的被控服务器具体是哪一个,本实施例的网关服务器还包括连接模块,用于根据被控服务器的相关信息与控制客户端进行相关协议(例如RDP协议)需要的协商,完成控制客户端到网关服务器之间的连接。其中,如果被控服务器设置有登录用户名和登录密码,第一连接请求中可以携带被控服务器的登录用户名和登录密码,便于与被控服务器的连接时,连接模块完成被控服务器的解锁。本实施例中,在与控制客户端完成协议协商后,连接模块可以使用控制客户端发送的第一连接请求携带的信息发起与被控服务器的连接,并进行相关协议(例如RDP协议)需要的协商,如登录用户名和登录密码的认证等等。其中,连接模块发起与被控服务器的连接可以和与控制客户端的连接同时进行。The receiving module of the gateway server can receive the first connection request, and the analysis module can decompress the first connection request, remove the information of the controlled server from it, and determine which controlled server the control client needs to control according to this information. The gateway server of the embodiment also includes a connection module, which is used to negotiate with the control client on related protocols (such as the RDP protocol) according to the relevant information of the controlled server, and complete the connection between the control client and the gateway server. Wherein, if the controlled server is provided with a login user name and a login password, the first connection request may carry the login user name and login password of the controlled server, so that when connecting with the controlled server, the connection module completes the unlocking of the controlled server. In this embodiment, after the protocol negotiation with the control client is completed, the connection module can use the information carried in the first connection request sent by the control client to initiate a connection with the controlled server, and perform the required protocol (such as the RDP protocol) Negotiation, such as authentication of login user name and login password, etc. Wherein, the connection module initiates the connection with the controlled server and the connection with the control client can be performed at the same time.

网关服务器与控制客户端和被控服务器的协议协商过程均完成后,被控服务器就可以输出包含自身当前操作界面的图像数据和其他的协议规定的通道数据如语音数据等给网关服务器,网关服务器的接收模块31接收到这些输出的协议数据后,分析模块32可以解压这些协议数据,然后按照RDP协议在对这些数据进行压缩,发送模块33后将压缩的数据转发到控制客户端上。After the protocol negotiation process between the gateway server and the controlling client and the controlled server is completed, the controlled server can output the image data including its own current operation interface and other channel data specified in the protocol, such as voice data, to the gateway server, and the gateway server After the receiving module 31 receives the output protocol data, the analysis module 32 can decompress the protocol data, then compress the data according to the RDP protocol, and the sending module 33 forwards the compressed data to the control client.

可以预见在被控服务器上可能有多个客户端在使用,也就会造成被控服务器上同时存在多个会话,一般为了对多个会话进行区分,被控服务器上的多个会话均有各自对应的会话ID(SESSION ID),在被控服务器发送给网关服务器的协议数据中也包括会话ID,网关服务器的分析模块32在将被控服务器输出的协议数据解压后,可以将其中的会话ID识别出来并保存,在监控客户端需要接入网关服务器对某一对控制客户端和被控服务器进行监控时,连接模块将会话ID作为区别监控对象(区别监控客户端具体连接哪一个会话)的标识。It can be foreseen that there may be multiple clients in use on the controlled server, which will cause multiple sessions to exist on the controlled server at the same time. Generally, in order to distinguish between multiple sessions, multiple sessions on the controlled server have their own The corresponding session ID (SESSION ID) also includes the session ID in the protocol data that the controlled server sends to the gateway server, and the analysis module 32 of the gateway server can extract the session ID wherein after the protocol data output by the controlled server is decompressed. Identified and saved, when the monitoring client needs to access the gateway server to monitor a certain pair of control client and controlled server, the connection module uses the session ID as the key to distinguish the monitoring object (distinguishing which session the monitoring client is connected to). logo.

本实施例上述的监控客户端用于向网关服务器发送第二连接请求;第二连接请求包括用户名,用户名包括需要被监控的控制客户端和被控服务器的会话的会话ID;接收网关服务器发送的监控数据;监控数据由网关服务器从被控服务器根发送的输出数据中分析得到,用于反映控制客户端对被控服务器的操作。The monitoring client described above in this embodiment is used to send a second connection request to the gateway server; the second connection request includes a user name, and the user name includes the session ID of the session between the control client and the controlled server that needs to be monitored; the receiving gateway server The monitoring data sent; the monitoring data is analyzed by the gateway server from the output data sent by the root of the controlled server, and is used to reflect the operation of the controlling client on the controlled server.

网关服务器的接收模块31还用于在发送模块31将监控数据发送给至少一个客户端前,接收至少一个监控客户端的第二连接请求。这里的至少一个监控客户端是与网关服务器完成连接的客户端。连接模块还用于根据第二连接请求建立与监控客户端的连接。其中,连接模块可以根据第二连接请求中的会话ID确定监控客户端需要监控的会话具体是哪一个。The receiving module 31 of the gateway server is further configured to receive a second connection request from at least one monitoring client before the sending module 31 sends the monitoring data to at least one client. Here at least one monitoring client is a client that completes the connection with the gateway server. The connection module is also used to establish a connection with the monitoring client according to the second connection request. Wherein, the connection module may determine which session the monitoring client needs to monitor according to the session ID in the second connection request.

进一步地,为了避免其他客户端非法连接网关服务器,造成用户的隐私泄露,本实施例中,网关服务器可以对监控客户端的进行身份认证,认证通过,才完成协议协商。其中,监控客户端可以在第二连接请求中写入自身与网关服务器的认证信息,例如采用令牌作为监控客户端与网关服务器的认证信息。优选地,本实施例的网关服务器还包括认证模块,用于根据第二连接请求携带的认证信息进行认证,认证通过,则认为监控客户端是合法的监控客户端。Furthermore, in order to prevent other clients from illegally connecting to the gateway server and causing user privacy leakage, in this embodiment, the gateway server can perform identity authentication on the monitoring client, and the protocol negotiation is completed only after the authentication is passed. Wherein, the monitoring client may write the authentication information between itself and the gateway server in the second connection request, for example, a token is used as the authentication information between the monitoring client and the gateway server. Preferably, the gateway server in this embodiment further includes an authentication module, configured to perform authentication according to the authentication information carried in the second connection request, and if the authentication passes, the monitoring client is deemed to be a legitimate monitoring client.

接收模块31接收的输出数据中一般包含了图像数据,这些图像数据是由被控服务器根据自身的界面获取得到的图像数据,可以准确反映被控服务器在控制客户端的控制下的操作。其中,被控服务器获取图像数据的方式包括但不限于截屏。优选的,本实施例的分析模块32用于对输出数据进行分析,将输出数据中的图像数据作为监控数据。当然,除了图像数据之外,也可以将其他可以反映控制客户端对被控服务器的操作的数据作为监控数据发送给监控客户端。The output data received by the receiving module 31 generally includes image data, which is obtained by the controlled server according to its own interface, and can accurately reflect the operation of the controlled server under the control of the controlling client. Wherein, the manner in which the controlled server obtains the image data includes but is not limited to screenshots. Preferably, the analysis module 32 of this embodiment is used to analyze the output data, and use the image data in the output data as monitoring data. Of course, in addition to the image data, other data that can reflect the operation of the control client on the controlled server can also be sent to the monitoring client as monitoring data.

此外,在本实施例中,监控客户端只是监控控制客户端的操作,因此通常不会有任何输入的要求。但是监控客户端一般也是具有如键盘、鼠标等输入工具的,为了防止监控客户端输入对被控服务器造成影响,以及用户在监控客户端的误操作。在网关服务器上需要对监控客户端的输入进行过滤。优选的,本实施例的接收模块31还用于接收监控客户端的输入数据;分析模块32还用于对接收模块接收的输入数据进行分析,识别出监控客户端的输入数据,并将其丢弃。In addition, in this embodiment, the monitoring client only monitors and controls the operation of the client, so generally there is no requirement for any input. However, the monitoring client generally also has input tools such as a keyboard and a mouse, in order to prevent the input of the monitoring client from affecting the controlled server, and the user's misoperation on the monitoring client. The input of the monitoring client needs to be filtered on the gateway server. Preferably, the receiving module 31 of this embodiment is also used to receive the input data of the monitoring client; the analysis module 32 is also used to analyze the input data received by the receiving module, identify the input data of the monitoring client, and discard it.

在另一实施例中,还提供一种视窗窗口的共享系统,包括控制客户端、被控服务器、监控客户端以及实施例三中的网关服务器;控制客户端、被控服务器、监控客户端分别与网关服务器连接;控制客户端用于向网关服务器发送输入数据,接收网关服务器发送的输出数据;输入数据用于控制被控服务器的操作;被控服务器用于接收网关服务器转发的输入数据;向网关服务器发送对应于输入数据的输出数据;监控客户端用于接收网关服务器的监控数据。In another embodiment, a window sharing system is also provided, including a control client, a controlled server, a monitoring client, and the gateway server in Embodiment 3; the control client, the controlled server, and the monitoring client are respectively Connect with the gateway server; the control client is used to send input data to the gateway server and receive output data sent by the gateway server; the input data is used to control the operation of the controlled server; the controlled server is used to receive the input data forwarded by the gateway server; The gateway server sends output data corresponding to the input data; the monitoring client is used to receive the monitoring data of the gateway server.

采用本实施例,网关服务器在接收到控制客户端的输入数据后,通过发送模块发送给被控服务器,控制被控服务器的操作,被控服务操作完成,反馈输出数据给网关服务器,网关服务器将输出数据发送给控制客户端,将输出数据中的能反映控制客户端对所述被控服务器的操作的监控数据发送给监控客户端,使得监控客户端可以实时看到在控制客户端上显示的被控服务器的界面,实现监控控制客户端对被控服务器的操作的目的,相对于现有技术中使用远程桌面的共享功能实现监控只能在桌面模式下实现的限制,采用本实施例的网关服务器实现监控目的,对于远程桌面服务的应用模式没有要求,在被控服务器上也无需安装其他的共享软件,适用范围更广,实用性更强。With this embodiment, after the gateway server receives the input data from the control client, it sends it to the controlled server through the sending module to control the operation of the controlled server. After the controlled service operation is completed, the output data is fed back to the gateway server, and the gateway server will output The data is sent to the control client, and the monitoring data that can reflect the operation of the control client on the controlled server in the output data is sent to the monitoring client, so that the monitoring client can see the monitored data displayed on the control client in real time. The interface of the control server realizes the purpose of monitoring and controlling the operation of the client to the controlled server. Compared with the restriction that the monitoring can only be realized in the desktop mode by using the sharing function of the remote desktop in the prior art, the gateway server of this embodiment is adopted To achieve the purpose of monitoring, there is no requirement for the application mode of the remote desktop service, and there is no need to install other sharing software on the controlled server, so the scope of application is wider and the practicability is stronger.

显然,本领域的技术人员应该明白,上述本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储介质(ROM/RAM、磁碟、光盘)中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。所以,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed on a network formed by multiple computing devices , alternatively, they can be implemented with program codes executable by a computing device, thus, they can be stored in a storage medium (ROM/RAM, magnetic disk, optical disk) to be executed by a computing device, and in some cases , the steps shown or described may be performed in a different order than here, or they may be fabricated into individual integrated circuit modules, or multiple modules or steps among them may be fabricated into a single integrated circuit module for implementation. Therefore, the present invention is not limited to any specific combination of hardware and software.

以上内容是结合具体的实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。The above content is a further detailed description of the present invention in conjunction with specific embodiments, and it cannot be assumed that the specific implementation of the present invention is limited to these descriptions. For those of ordinary skill in the technical field of the present invention, without departing from the concept of the present invention, some simple deduction or replacement can be made, which should be regarded as belonging to the protection scope of the present invention.

Claims (10)

1. a kind of sharing method of form window, including:
Receive the input data that control client is sent and forward it to controlled server;The input data is used to control institute State the operation of controlled server;
Receive the output data corresponding to the input data that controlled server is sent;
The output data is sent to control client, the output data is analyzed, monitoring data therein is sent out Give at least one monitor client;The monitoring data is used to reflect behaviour of the control client to the controlled server Make.
2. the sharing method of form window as claimed in claim 1, it is characterised in that the monitoring data includes picture number According to;Described that the output data is analyzed, monitoring data therein is sent at least one monitor client includes:It is right The output data is analyzed, and the view data in the output data is sent at least one monitor client.
3. the sharing method of form window as described in any one of claim 1, it is characterised in that also include:
If receiving the input data of the monitor client, the input data is abandoned.
4. the sharing method of form window as described in claim any one of 1-3, it is characterised in that receiving control client hair The input data sent and before forwarding it to controlled server, in addition to:
Receive the first connection request of the control client input, the controlled server carried according to first connection request Information with it is described control client carry out protocol requirement negotiation;
The information carried using the first connection request of the control client initiates the connection with controlled server, carries out agreement It is required that negotiation.
5. the sharing method of form window as described in claim any one of 1-3, it is characterised in that enter to the output data Row analysis, before monitoring data therein is sent at least one monitor client, in addition to:
The second connection request of at least one monitor client input is received, second connection request includes user name; The user name includes the session id of the session of the control client and the controlled server;
Connection with the monitor client is established according to second connection request.
6. a kind of gateway server, including:
Receiving module, what input data and reception controlled server for receiving control client transmission were sent corresponds to institute State the output data of input data;The input data is used for the operation for controlling the controlled server;
Analysis module, for analyzing the output data, identify monitoring data therein;The monitoring data is used for Reflect operation of the control client to the controlled server;
Sending module, for the output data to be sent into control client, monitoring number that the analysis module is analyzed According to being sent at least one monitor client.
7. gateway server as claimed in claim 6, it is characterised in that the analysis module is used to enter the output data Row analysis, view data therein is identified as the monitoring data.
8. gateway server as claimed in claim 6, it is characterised in that the receiving module is additionally operable to receive the monitoring visitor The input data at family end;The analysis module is additionally operable to analyze the input data that the receiving module receives, and knows Do not go out the input data of the monitor client, and abandoned.
9. the gateway server as described in claim any one of 6-8, it is characterised in that also including link block;
The receiving module is additionally operable to before monitoring data is sent at least one monitor client by the sending module, is received Second connection request of at least one monitor client input, second connection request include user name;The user Name includes the session id of the session of the control client and the controlled server;
The link block is used to establish the connection with the monitor client according to second connection request.
10. a kind of shared system of form window is recognized, it is characterised in that including control client, controlled server, monitor client And the gateway server as described in claim any one of 6-9;The control client, controlled server, monitor client It is connected respectively with the gateway server;
The control client is used to send input data to the gateway server, receives the defeated of the gateway server transmission Go out data;The input data is used for the operation for controlling the controlled server;
The controlled server is used for the input data for receiving the gateway server forwarding;Sent out to the gateway server Send the output data corresponding to the input data;
The monitor client is used for the monitoring data for receiving the gateway server.
CN201610693802.4A 2016-08-19 2016-08-19 A kind of sharing method, gateway server and the system of form window Pending CN107770219A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610693802.4A CN107770219A (en) 2016-08-19 2016-08-19 A kind of sharing method, gateway server and the system of form window
PCT/CN2017/094774 WO2018032953A1 (en) 2016-08-19 2017-07-27 Windows window sharing method, gateway server, system, storage media

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610693802.4A CN107770219A (en) 2016-08-19 2016-08-19 A kind of sharing method, gateway server and the system of form window

Publications (1)

Publication Number Publication Date
CN107770219A true CN107770219A (en) 2018-03-06

Family

ID=61196382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610693802.4A Pending CN107770219A (en) 2016-08-19 2016-08-19 A kind of sharing method, gateway server and the system of form window

Country Status (2)

Country Link
CN (1) CN107770219A (en)
WO (1) WO2018032953A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110769048A (en) * 2019-10-17 2020-02-07 山东乾云启创信息科技股份有限公司 Seamless connection method and system for local virtual desktop and remote virtual desktop
CN111147928A (en) * 2019-12-03 2020-05-12 西安万像电子科技有限公司 Video processing method, server, terminal and system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111030814B (en) * 2019-12-25 2023-04-25 杭州迪普科技股份有限公司 Secret key negotiation method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102761568A (en) * 2011-04-27 2012-10-31 中兴通讯股份有限公司 Remote control method and server
CN102215265B (en) * 2011-06-14 2013-12-18 杭州思福迪信息技术有限公司 System and method for realizing uniform management and monitoring of remote virtual desktop access
US8910273B1 (en) * 2011-08-04 2014-12-09 Wyse Technology L.L.C. Virtual private network over a gateway connection
CN102571773B (en) * 2011-12-27 2017-04-12 浙江省电力公司 Information security comprehensive audit system and method
CN103973781B (en) * 2014-04-29 2018-12-28 上海上讯信息技术股份有限公司 A kind of screen monitor method and its system based on proxy server
CN105573577B (en) * 2014-10-15 2019-03-05 航天信息股份有限公司 Long-distance monitoring method, apparatus and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110769048A (en) * 2019-10-17 2020-02-07 山东乾云启创信息科技股份有限公司 Seamless connection method and system for local virtual desktop and remote virtual desktop
CN110769048B (en) * 2019-10-17 2022-04-05 山东乾云启创信息科技股份有限公司 Method and system for seamless connection between local and remote virtual desktops
CN111147928A (en) * 2019-12-03 2020-05-12 西安万像电子科技有限公司 Video processing method, server, terminal and system

Also Published As

Publication number Publication date
WO2018032953A1 (en) 2018-02-22

Similar Documents

Publication Publication Date Title
US11575663B2 (en) System and method for secure application communication between networked processors
EP3731551A1 (en) Identity authentication method and system, and computing device
US7562146B2 (en) Encapsulating protocol for session persistence and reliability
US10034057B2 (en) Message processing method, device, gateway, STB and IPTV
CN111193698B (en) Data processing method, device, terminal and storage medium
JP2021501407A (en) Methods, devices, and systems for offloading algorithms
CN111901357B (en) Remote network connection method, system, computer device and storage medium
US20090100349A1 (en) Terminal client collaboration and relay systems and methods
US20160352790A1 (en) Collaborative business communication information system
TW201312370A (en) A method and system for use with a public cloud network
US9413560B2 (en) Differentiated quality of service using security as a service
CN103108037A (en) Communication method, Web server and Web communication system
CN117062075A (en) Private network security authentication method, device and system
CN114238928B (en) Remote server management method and device
CN107770219A (en) A kind of sharing method, gateway server and the system of form window
US11489817B2 (en) Computing system with gateway data transfer based upon device data flow characteristics and related methods
US20160285819A1 (en) Sharing and controlling electronic devices located at remote locations using xmpp server
CN116015698B (en) Methods, apparatus, and computer program products for peripheral device authentication
US11277379B2 (en) Modification of application-provided turn servers
CN112398718A (en) Network transmission method and device, electronic equipment and storage medium
CN113676482A (en) Data transmission system and method and data transmission system and method based on double-layer SSL
CN106330885A (en) Cloud terminal system and method for enforcing security
US11824917B2 (en) Computing system with data transfer based upon device data flow characteristics and related methods
WO2023078444A1 (en) Public cloud system and related method thereof
HK40029470B (en) Remote network connection method and system, computer device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180306