CN1304984C - Method and system for automatically creating and managing graphical user interface session of remote terminal - Google Patents

Method and system for automatically creating and managing graphical user interface session of remote terminal Download PDF

Info

Publication number
CN1304984C
CN1304984C CN 200310116910 CN200310116910A CN1304984C CN 1304984 C CN1304984 C CN 1304984C CN 200310116910 CN200310116910 CN 200310116910 CN 200310116910 A CN200310116910 A CN 200310116910A CN 1304984 C CN1304984 C CN 1304984C
Authority
CN
China
Prior art keywords
session
module
message
user interface
graphical user
Prior art date
Application number
CN 200310116910
Other languages
Chinese (zh)
Other versions
CN1622077A (en
Inventor
李文杰
李明树
何川
淮晓永
刘奎恩
廖渊
王保进
Original Assignee
中国科学院软件研究所
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 中国科学院软件研究所 filed Critical 中国科学院软件研究所
Priority to CN 200310116910 priority Critical patent/CN1304984C/en
Publication of CN1622077A publication Critical patent/CN1622077A/en
Application granted granted Critical
Publication of CN1304984C publication Critical patent/CN1304984C/en

Links

Abstract

自动创建和管理远程终端图形用户接口会话的方法和系统。 Automatically create and manage remote terminal session graphical user interface to methods and systems. 通过在远程图形用户接口协议中增加显示属性消息、用户身份消息、重新初始化消息,提供会话显示、会话服务监控、用户身份认证、会话管理、图形窗口启用、图形用户接口会话断开、注销和续连,使得和宿主操作系统的用户管理机制和用户个性化配置保持兼容,简化了远程终端图形用户接口会话的管理;提高了宿主计算机系统CPU和内存的利用效率;使得即使网络发生故障,用户的远程终端图形用户接口会话也会保持运行,不会丢失,用户可以从任何远程终端上重新连接到保持的会话,继续进行交互,提高了远程图形用户接口的可用性。 By adding a remote graphical user interface protocol display properties of the message, the user identity information, re-initialization message, the display provides session, the session service monitoring, user authentication, session management, graphics window is enabled, graphical user interface session is disconnected, cancellation and renewal even so, and user management mechanism and user personalization of the host operating system is configured to maintain compatibility, simplifies the management of remote terminal a graphical user interface session; improved host computer system CPU and memory utilization efficiency; so that even if the network fails, the user graphical user Interface remote terminal session will keep running, will not be lost, the user can reconnect from any remote terminal session to remain, and continue to interact and improve the availability of remote graphical user interface.

Description

自动创建和管理远程终端图形用户接口会话的方法和系统 Method for automatically creating and managing remote terminal session and graphical user interface system

技术领域 FIELD

本发明涉及一种用于自动创建和管理远程终端图形用户接口会话的方法,以及涉及一种使用该方法的系统。 The present invention relates to a method for automatically creating and managing the graphical user interface to the remote terminal session, and relates to a system for using the method.

背景技术 Background technique

远程图形用户接口是指使用者在远程终端上通过远程图形用户接口协议访问宿主计算机系统上的应用程序的图形用户界面,应用程序在宿主计算机系统上运行,而应用程序的图形界面显示在远程终端上。 A remote graphical user interface refers to graphical user interface, the application on the application by the user to access a remote graphical user interface on a remote terminal protocol host computer system running on a host computer system, the graphical interface and the application is displayed in the remote terminal on. 图形用户接口会话由一组运行的图形窗口模块、窗口管理器、桌面管理器、应用程序和用户个性化配置构成的,远程终端图形用户接口会话则是把图形用户接口会话中的所有应用程序的界面通过远程图形用户接口协议发送给远程终端。 A graphical user interface session is a graph window module running, the window manager, desktop manager application and user customized configuration composed of a remote terminal a graphical user interface session is all application graphical user interface session an interface to a remote terminal through a remote graphical user interface protocol.

众所周知,由MIT最早开发的客户/服务器图形窗口模块X,提供了一个允许X应用程序远程显示在X终端上的网络图形用户接口协议。 As we all know, first developed by MIT client / server graphical X Window module, it provides a remote display X applications allow network graphical user interface protocol on the X terminal. 位于宿主计算机系统上的X应用程序可以使用X协议通过网络和位于X终端上的图形窗口模块X服务器进行通信,X应用程序发出请求,X服务器创建、删除、管理图形窗口模块资源,响应X应用程序的请求。 Located on a host computer system X applications can use the X protocol to communicate, X application graphical window module X server on the network and the X terminal request, X server creating, deleting, managing the graphics window module resources, in response to X applications request program. 由AT&T剑桥实验室开发的VNC系统通过远程图形用户接口协议RFB提供了一个帧缓冲方式的远程图形用户接口。 Providing a remote graphical user interface to the frame buffer T Cambridge embodiment VNC system developed in the laboratory through a remote graphical user interface to the RFB protocol; by the AT & amp. 在VNC系统中,图形窗口模块X服务器位于宿主计算机系统上,X服务器把X应用程序的请求转换成帧缓冲,并通过RFB协议把帧缓冲发送给远程终端上的RFB客户端。 In VNC system, the graphics module X window server is located on a host computer system, the request X X server application program into a frame buffer, and the frame buffer by the RFB protocol to a client RFB on the remote terminal.

一般的,用户在宿主计算机系统上登录后,操作系统可以自动创建图形用户接口会话,包括初始化用户个性化配置,启动图形窗口模块、窗口管理器和桌面管理器。 In general, users log on, the operating system can be automatically created on the host computer system graphical user interface session, including the initialization of individual users to configure, start the graphical window module, window manager and desktop manager. 用户可以通过桌面管理器提供的菜单和快捷方式启动X应用程序。 Menus and shortcuts provided by the user can start an X desktop management application. 用户可以一直和图形用户接口会话进行交互,除非退出登录。 Users can always and graphical user interface to interact with the session, unless Log.

而远程终端图形用户会话则不同,现有的操作系统没有自动创建和远程终端图形用户会话的方法。 The graphical user remote terminal session is different, existing operating system does not automatically create a method and a remote terminal a graphical user session.

用户位于远程终端,和宿主计算机系统通过网络相连接,网络连接会出现暂时断开。 Remotely located user terminal, and host computer systems connected through a network, the network connection will be temporarily disconnected. 对于X网络图形窗口模块,一旦网络连接断开,用户的图形用户会话就会断开,会话中的所有的应用程序和数据会丢失。 For the X Window Network Graphics module, once the network connection is disconnected, the user's graphical user session is disconnected, all applications and data sessions will be lost. 对于VNC系统,由于仅仅是在图形窗口模块中增加了远程图形用户接口协议RFB,操作系统没有提供对VNC的用户身份认证的方法。 For VNC system, because just added a remote graphical user interface protocol RFB in the graphics window module, the operating system does not provide a method for VNC user authentication. 系统管理员必须手工维护VNC系统的身份认证数据,增加了系统管理员的复杂程度。 The system administrator must manually maintain data VNC authentication system, increasing the complexity of the system administrator. 另外VNC服务器只能工作在远程图形用户接口方式,而操作系统目前没有提供创建和管理远程终端图形用户接口会话的功能。 In addition VNC server can only work in a remote graphical user interface mode, and the operating system currently does not provide functionality to create and manage remote terminal a graphical user interface session. 因此为了使用远程图形用户接口,系统管理员和用户不得不预先登录到宿主计算机系统,手工启动VNC服务器,此外VNC系统使用独立的用户个性化配置文件,和操作系统的用户个性化配置互不兼容,这些都增加了使用和管理上的复杂程度。 Therefore, to have pre-registered to the host computer system using a remote graphical user interface, system administrators and users to manually start the VNC server, in addition to VNC system uses a separate personalized user profiles, user personalization and configuration of the operating system are not compatible these have increased the complexity of the use and management. 另外VNC系统还具有以下不足:1.由于预先启动VNC服务器,占用了宿主计算机系统的内存和处理器资源,降低了资源的使用效率。 Further VNC system also has the following disadvantages: 1. Since the advance start VNC server, takes up memory and processor resources of the host computer system, reduce the efficiency of use of resources.

2.RFB协议是一个面向服务器的协议,不能根据远程终端设备的需要请求VNC服务器满足客户端的要求,例如显示分辨率,颜色深度等等,从而限制了远程终端的显示设备种类。 2.RFB protocol is a protocol for the server, the request is not required VNC server remote terminal device satisfies the requirements of the client, such as display resolution, color depth, etc., thus limiting the type of display device of the remote terminal. 而这一点对于满足远程终端设备的多样性是必需的,因为终端的显示设备多种多样的,有不同规格类型的设备,例如CRT/LCD;而且显示设备有不同的分辨率,1024×768,320×240,甚至是不规则的。 And this, to satisfy the diversity of remote terminal equipment is necessary because a variety of terminal display apparatus, there are different types of standard equipment, e.g. CRT / LCD; and the display device has different resolutions, 1024 × 768, 320 × 240, or even irregular.

发明内容 SUMMARY

为克服上述问题,本发明的目的在于提供一种自动创建和管理远程终端图形用户接口会话的方法,以请求自动创建和管理远程终端图形用户接口会话。 To overcome the above problems, an object of the present invention to provide a method for automatically creating and managing the graphical user interface to the remote terminal session, to request the automatic creation and management of graphical user interface of the remote terminal session.

本发明的目的还在于提供一种自动创建和管理远程终端图形用户接口会话的系统,它能够根据请求自动创建和管理远程终端图形用户接口会话。 Object of the present invention is to provide an automatic creation and management of graphical user interface system remote terminal session, it can automatically create and manage remote terminal Graphical User Interface session upon request.

为实现上述目的,根据本发明的一方面的一种自动创建和管理远程终端图形用户接口会话的方法,用于通过网络相互连接的远程终端与宿主计算机系统的远程会话中,其中所述的远程终端包括一个会话显示模块,所述的宿主计算机系统包括一个会话服务监控模块、一个用户身份认证模块、一个会话管理模块、一个图形窗口模块、一个图形用户接口会话续连模块、一个图形用户接口会话断开模块以及一个图形用户接口会话注销模块,所述的方法包括:与宿主计算机系统建立连接,并远程显示图形用户接口会话的会话显示步骤;管理来自远程终端的远程图形用户接口协议请求的会话服务监控步骤,其中所述的图形用户接口协议中包括显示属性消息、用户身份消息、重新初始化消息;认证远程图形用户接口协议包含的远程终端的用户身份的身份认证步骤 To achieve the above object, according to one aspect of the automatically created according to the present invention and methods for managing remote terminal session Graphical User Interface for remote terminal session to the remote host computer system connected to each other via a network in which the remote a display module comprising a terminal session, the host computer system includes a service session monitoring module, a user authentication module, a session management module, a graphics window module, a graphical user interface module connected session continued, a graphical user interface session disconnect module and a graphical user interface module session is logged, the method comprising: establishing a connection with the host computer system, and a remote display session graphical user Interface session displaying step; session management protocol from a remote graphical user interface to the remote terminal requests service monitoring step, wherein said graphical user interface comprises a display attribute of the message protocol, the identity of the user message, the message re-initialization; the identity of the remote terminal user identity authentication protocol interface to the remote graphical user authentication step comprises 管理宿主计算机系统中的图形窗口模块的会话管理步骤;向远程终端发送图形用户接口,并接受会话管理模块的管理的图形窗口启用步骤;根据接收的消息的类型,执行下列步骤之一:续连会话的会话续连步骤;向会话管理模块发送消息以便断开当前会话的会话断开步骤;向会话管理模块发送消息以便注销当前会话的会话注销步骤。 Session management step of managing the host computer system graphics window module; transmitting to a remote terminal a graphical user interface, and accepts the session management module of the graphics window to enable the management step; according to the type of the received message, one of the following steps: continued even session session continued even step; sending a message to the session management module to disconnect the current session of the session disconnecting step; session management module sending a message to the session in order to cancel the current session log-off step.

根据本发明的另一方面的所述会话显示步骤包括:a)接收用户输入;b)与宿主计算机系统上的所述会话服务监控模块建立网络连接;c)将用户输入通过远程图形用户接口协议发送给所述会话服务监控模块;d)判断网络连接是否断开;e)在网络连接断开时,则终止运行;f)判断是否收到重新初始化消息;g)在未收到所述消息时,执行步骤i); According to another aspect of the present invention session displaying step comprises: a) receiving a user input; b) establishing a network connection service with the session monitoring module on the host computer system; c) a user input via a remote graphical user interface protocol transmitting the service to the session monitoring module; D) determine whether the network connection is disconnected; E) when the network connection is disconnected, terminate; F) determines whether or not re-initialization message; G) did not receive the message when, step I);

h)在收到所述消息时,发送重新初始化请求,并执行步骤i);i)使用远程图形用户接口协议从所述图形窗口模块接收图形用户界面数据,发送键盘和鼠标事件;j)转到步骤d)。 h) upon receipt of the message, reinitialize transmission request, and step i); i) using a remote graphical user interface protocol receives graphics data from the graphical user interface window module sends keyboard and mouse events; J) transfected to step d).

根据本发明另一方面,所述的会话显示步骤中的用户输入包括:用户身份以及显示属性。 According to another aspect of the present invention, the user input and the session comprises the step of: displaying a user identity and attributes.

根据本发明另一方面,所述的显示属性包括显示宽度,显示高度,显示颜色深度。 According to another aspect of the present invention, the display attribute comprises a display width, a display height, display color depth.

根据本发明另一方面的所述会话服务监控步骤包括:a)识别远程图形用户接口协议中的所述会话显示模块的版本号;b)在所述版本号和所述会话服务监控模块的版本号不一致时,则中止与远程终端的连接;c)识别远程图形用户接口协议中包含的显示属性和用户身份;d)根据显示属性向所述会话管理模块请求图形窗口模块;e)从所述会话管理模块接收所述图形窗口模块的数据;f)把和远程终端连接的控制权交给所述图形窗口模块;g)启动所述用户身份认证模块,并把用户身份提交给所述用户身份认证模块进行认证。 According to another aspect of the present invention, the session service monitoring step includes: a) identifying said remote session protocol Graphical User Interface displays the version number of the module; version b) monitoring the service version number and the session module No. inconsistent, aborting the connection to the remote terminal; c) displays the properties and user identification remote graphical user interface protocol included; D) graphics window module a request to the session management module according to the display attributes; E) from the receiving the data session management module of the graphics window module; F) and the remote control terminal is connected to the graphic window module; G) to start the user authentication module, the user identity and the subscriber identity submitted to the authentication module for authentication.

根据本发明另一方面,其中步骤e)中所述的数据包括:图形窗口模块的显示编号和图形窗口模块监听的端口号。 According to the aspect of the invention, wherein step e) comprises: port number and the pattern number display window module of the graphics window module is listening.

根据本发明另一方面,其中步骤f)是根据所述的端口号进行的。 According to another aspect of the present invention, wherein step f) is performed according to the port number of the.

根据本发明另一方面,所述用户身份认证步骤包括:a)识别从所述会话服务监控模块中传来的用户身份中的用户名和口令;b)对用户名和口令进行加密;c)与宿主计算机系统的用户身份数据库进行匹配;d)在匹配成功时,则进行步骤g);e)在匹配次数超过预定阈值时,则进行步骤g);f)接收用户输入,并转到步骤b);g)启动所述图形用户接口会话续连模块,并且把匹配结果提交给所述图形用户接口会话续连模块。 According to another aspect of the present invention, the user authentication step comprises: a) identifying the service transmitted from the monitoring session of a subscriber identity module user name and password; b) the user name and password are encrypted; c) the host the computer system user identity database matching; D) when the matching is successful, go to step g); E) exceeds a predetermined threshold value, the step g is the number of matches); F) receiving user input, and proceeds to step b) ; G) the graphical user interface session start even continuous module, and the matching results to the graphical user interface module connected session resumed.

根据本发明另一方面,所述图形窗口启用步骤包括:a)处理X应用程序的请求;b)检测和远程终端的连接是否处于断开状态;c)在和远程终端的连接处于断开状态时,检测是否有来自其他图形窗口模块移交网络连接的请求;d)在没有来自所述其他图形窗口模块移交网络连接的请求时,则转到步骤a);e)在存在自所述其他图形窗口模块移交网络连接的请求时,则接收网络连接,并且通过所述连接向所述会话显示模块发送重新初始化消息;f)查询来自所述会话管理模块的消息;g)在和远程终端的连接处于连接状态时,则查询来自所述会话管理模块的消息;h)在所述消息为断开时,则终止与远程终端的网络连接,并且转到步骤a);i)在所述消息为注销时,则终止与远程终端的网络连接,并且终止所述图形窗口模块;j)在所述消息为切换会话时,则把和远程终端连接 On the other hand, the graphical window is enabled according to the invention comprises: a) an X application processing request; b) connected to the detection and the remote terminal is in a disconnected state; c) and remote terminals connected in the OFF state when detecting whether there is a request from other modules in the graphics window handover network connection; D) when no other graphics window module from the handover request network connection, go to step a); e) in the presence of other graphics from window module connected to the handover request from the network, the receiving network connection, and the connection via the display module transmits a message to re-initialize the session; connected g) and the remote terminal; F) query message from the session management module when in the connected state, the query message from the session management module; H) connected to a network when the message is turned off, the remote terminal is terminated, and goes to step a); i) in the message is logoff, then terminate the connection with the remote network terminal, and terminates the graph window module; J) is a handover session, and put in the message connected to the remote terminal 的控制权交给消息中指定的所述图形窗口模块,并且终止所述图形窗口模块;k)在没有收到来自所述会话管理模块的消息时,则检测和远程终端的连接;l)在和远程终端的连接断开时,则向会话管理模块发送断开消息,并且转到步骤a);m)在和远程终端的连接处于连接状态时,则使用远程图形用户接口协议传输图形用户界面,接收键盘和鼠标事件,并转到步骤a)。 The window of the graphical control to the module specified in the message, and terminates the graph window module; K) when no message is received from the session management module is detected and the remote terminal connection; L) in when the remote terminal is connected and disconnected, the disconnected to the session management module sending a message, and go to step a); m) and a connection at the remote terminal is in a connected state, using a remote graphical user interface to a graphical user interface transmission protocol , receives keyboard and mouse events, and go to step a).

根据本发明另一方面,所述自动创建和管理远程终端图形用户接口的方法利用一个数据块,以便存储当前所有所述图形窗口模块的会话属性。 According to another aspect of the present invention, a method of automatically creating and managing the graphical user interface to the remote terminal using a data block to store the current session attributes of all of the graphical window module.

根据本发明另一方面,所述数据块包含显示编号和图形窗口模块状态。 According to another aspect of the present invention, the number of data blocks includes a display window and a graphic module status.

根据本发明另一方面,所述数据块还包括进程号,会话编号,图形窗口模块名称,远程终端IP地址,图形窗口模块端口号,上次断开时间,上次连接时间,宽度,高度,颜色深度。 According to another aspect of the present invention, the data block further includes a process number, session number, the graphics window module name, the IP address of the remote terminal, the graphics window module port number, and the last off time, the last connection time, width, height, color depth.

根据本发明另一方面,所述会话管理步骤包括:a)周期性地查询消息;b)在收到所述会话服务监控模块的消息时,则为所述图形窗口模块分配一个所述的数据块,设定数据块中的图形窗口模块状态字段为等待状态,为所述图形窗口模块分配一个显示编号;并以所述显示编号启动所述图形窗口模块;c)在收到来自所述图形窗口模块的消息为断开时,则设定所述数据块的图形窗口模块状态字段为断开状态,并转到步骤a);d)在收到来自除了所述图形窗口会话断开模块之外的断开消息时,则向所述图形窗口发送断开消息,并设定所述数据块中的图形窗口模块状态字段为断开状态,并转到步骤a);e)在收到的消息为就绪时,则设定所述数据块的图形窗口模块状态字段为就绪状态,并且向所述会话服务监控模块发送所述图形窗口模块的显示编号;f)在收到的消息为 According to another aspect of the present invention, the session management step comprises: a) periodically polling message; b) upon receipt of the message service session monitoring module, compared with the graph window module is assigned one of the data block, the data block pattern setting window module status field to the wait state, to the graphical display window module assigned a number; and to display the starting number of the graphical window module; c) received from said pattern message window module is disconnected, the data block is set graphical window module status field OFF state, and proceeds to step a); d) in addition to the graphical window is received from session disconnection modules, the outer disconnection message, sending disconnect message to the graphics window, and setting the graphics window module status field of the data block is off state, and proceeds to step a); e) in the received when the message is ready, the data block is set the graphics window module status field to the ready state, and means for transmitting the service monitoring graphical window display module ID to the session; F) in a received message is 请求会话列表时,则根据消息中的用户名查询断开会话列表,并向图形用户接口续连模块发送断开会话列表;g)在收到的消息为续连某个会话时,则根据消息中的显示编号设定所述数据块的图形窗口状态字段为就绪,并且向所述图形窗口模块发送切换会话消息;h)在收到的消息为登录失败时,则删除为所述图形窗口模块分配的所述数据块;并且向所述图形窗口发送注销消息;i)在收到的消息为注销时,删除为所述图形窗口模块分配的所述数据块;并且向所述图形窗口发送注销消息,结束会话。 When requesting the session list, the user name list disconnect the session inquiry message, and Graphical User Interface continued even disconnected session list transmitting module; G) in a received message is continued even during a session, according to the message graphics window display in the status field of the data block number is set to the ready, and sends a session message to the switching pattern window module; H) message is received login fails, deleting the graph window to module the data block allocation; and send a logout message to the graph window; I) in the logout message is received, deleting the data block is allocated to the graphic window module; and the graph window to send a logout news, the end of the session.

根据本发明另一方面,所述图形用户接口会话续连步骤包括:a)在收到来自所述用户身份认证模块的匹配结果为失败时,则向所述会话管理模块发送登录失败消息,并且终止所述图形用户会话续连模块; According to another aspect of the present invention, the graphical user interface session continued even step comprises: a) upon receiving a matching result from the subscriber identity module authentication is a failure, a failure message is sent to the login session management module, and terminating the session continued even graphical user module;

b)在收到来自所述用户身份认证模块的匹配结果为成功时,则向所述会话管理模块发送请求会话列表消息,并且读取断开会话列表;c)在断开会话列表为空时,则为当前用户读取个人配置文件,初始化运行环境,并创建会话;d)在断开会话列表不为空时,则显示断开会话列表,接收用于选择会话的用户输入;e)根据用户输入向所述会话管理模块发送续连会话消息,并切换到用户选择的会话;f)终止所述图形用户接口续连会话模块的运行。 b) Upon receipt of a matching result from the subscriber identity module authentication is successful, sending a session request message to the list of the session management module, and reads a list of the session is disconnected; c) space-time list is in an open session , for the current user to read personal profile, initialize the execution environment, and creates a session; D) disconnecting the session when the list is not empty, the list is displayed disconnects the session, receive a user input selecting a session; E) according to transmits a user input to continue the session management module session connected message, and switch to the selected user session; run f) terminating the graphical user interface continued even session module.

根据本发明另一方面,所述图形用户接口会话断开步骤包括:向所述会话管理模块发送断开消息,以断开当前会话。 According to another aspect of the present invention, the graphical user interface session disconnecting step comprises: sending a disconnection message to the session management module to disconnect the current session.

根据本发明另一方面,所述图形用户接口会话注销步骤包括:向所述会话管理模块发送注销消息,以注销当前会话。 According to another aspect of the present invention, the graphical user interface session log-off step comprises: send a logout message to the session management module to log out of the current session.

根据本发明另一方面,一种自动创建和管理远程终端图形用户接口会话的系统,用于远程终端与宿主计算机系统的远程会话中,该系统包括通过网络与宿主计算机系统连接的远程终端,以及宿主计算机系统,其中所述的远程终端包括一个会话显示模块,所述的宿主计算机系统包括一个会话服务监控模块、一个用户身份认证模块、一个会话管理模块、一个图形窗口模块、一个图形用户接口会话续连模块、一个图形用户接口会话断开模块以及一个图形用户接口会话注销模块,其中所述会话显示模块,用于与宿主计算机系统建立连接,并远程显示图形用户接口会话;所述会话服务监控模块,用于管理来自远程终端的远程图形用户接口协议请求,其中所述的图形用户接口协议中包括显示属性消息、用户身份消息、重新初始化消息;所述用户身份认证模块, According to another aspect of the present invention, the system for automatically creating and managing remote terminal session Graphical User Interface for remote terminal session to the remote host computer system, the system comprising a remote terminal connected via a network with a host computer system, and the host computer system, wherein the remote terminal comprises a display module session, the host computer system includes a service session monitoring module, a user authentication module, a session management module, a graphics window module, a graphical user interface session continued connected module, a graphical user interface module and a session disconnects the session is logged graphical user interface module, wherein the session display module, for establishing a connection with the host computer system, a graphical user interface and the remote display session; the session monitoring service modules, graphical user interfaces for remote management protocol requests from the remote terminal, wherein said graphical user interface protocol included in the message attributes, user status message display, message reinitialization; the user authentication module, 于认证远程图形用户接口协议包含的远程终端的用户身份;所述会话管理模块,用于管理宿主计算机系统中的图形窗口模块;所述图形窗口模块,用于向远程终端发送图形用户接口,并接受会话管理模块的管理; User identity of the remote terminal to the remote authentication protocol comprising a Graphical User Interface; the session management module for managing the host computer system graphics window module; the graphical window module, configured to send a graphical user interface to a remote terminal, and accepted management session management module;

所述图形用户接口会话续连模块,用于续连会话;所述图形用户接口会话断开模块,用于向会话管理模块发送消息以便断开当前会话;所述图形用户接口会话注销模块,用于向会话管理模块发送消息以便注销当前会话。 The graphical user interface module connected session continued, even for a session continued; the graphical user interface session disconnect module, configured to send a message to the session management module in order to disconnect the current session; the graphical user interface module session is logged by to send a message to the session management module to log out of the current session.

因此,本发明可以使得远程终端图形用户接口会话通过使用操作系统的用户身份认证机制,自动创建和管理远程终端图形用户接口会话,和宿主操作系统的用户管理机制和用户个性化配置保持兼容,以简化远程终端图形用户接口会话的用户管理;本发明还允许远程终端和宿主计算机系统协商显示能力,包括显示的分辨率和颜色深度,从而解决了远程终端显示设备受到限制的问题,增加了支持的远程终端的种类;另外,本发明解决了远程终端图形用户接口会话的创建问题,当远程终端请求远程终端图形用户接口会话时,自动启动图形窗口模块;而且还允许用户注销远程终端图形用户接口会话,一旦用户发出注销请求,用户使用的图形窗口模块和应用程序所占用的CPU和内存资源就被释放,提高了资源的利用效率。 Accordingly, the present invention may enable a remote terminal a graphical user interface session by using the user authentication mechanism of the operating system, automatically creating and managing remote terminal a graphical user interface sessions, and user management mechanism and user personalization of the host operating system is configured to maintain compatibility to remote terminal user management simplified graphical user interface session; the invention also allows the remote terminal and host computer system display capabilities negotiation, comprising a display resolution and color depth, so as to solve the problem of remote terminal display device is limited, increased support type remote terminal; further, the present invention solves the remote create problems terminal graphical user interface session, when the remote terminal requests a remote terminal a graphical user interface session, automatically start the graphical window module; but also allows the user to log off the remote terminal a graphical user interface session Once user issues a logout request, the graphics window modules and applications used by the user occupied CPU and memory resources are freed to improve the efficiency of resource utilization.

本发明还解决了网络断开时应用程序和数据丢失的问题,即使网络发生故障,用户的远程终端图形用户接口会话也会保持运行,不会丢失,用户可以从任何远程终端上重新连接到保持的会话,继续进行交互,显著地提高了远程图形用户接口的可用性。 The present invention also solves the disconnected network applications and data loss problems, even if the network fails, the remote terminal user's Graphical User Interface session will remain running, will not be lost, a user can reconnect to from any remote terminal holding session, continue to interact, significantly increases the availability of a remote graphical user interface.

附图说明 BRIEF DESCRIPTION

本发明的上述目的及其特征将通过随后参照附图对优选实施例所作的说明而变得更加明显,其中:图1是说明根据本发明用于自动创建和管理远程终端图形用户接口会话的系统的原理框图;图2是说明图1中用于远程终端会话显示的流程图;图3是说明图1中用于会话服务监控的流程图;图4是说明图1中用于用户身份认证的流程图; The above object and features of the invention will become more apparent from the ensuing description with reference to the accompanying drawings of the preferred embodiment taken embodiments, wherein: FIG. 1 is used to automatically create and manage remote terminal session Graphical User Interface system according to the present invention the block diagram; FIG. 2 is a flowchart of FIG. 1 shows a remote terminal session description; FIG. 3 is a flowchart illustrating a session service for monitoring in FIG. 1; FIG. 4 is described in FIG. 1 for user authentication flow chart;

图5是说明图1中用于图形窗口模块接受会话管理的流程图;图6是说明图1中用于会话管理的流程图;图7是说明图1中用于图形用户接口会话续连的流程图;图8是说明图1中用于图形用户接口会话断开的流程图;图9是说明图1中用于图形用户接口会话注销的流程图;图10是根据已有技术的用于远程终端与宿主计算机系统之间的会话管理的系统的方框图。 FIG 5 is a graph illustrating a window module 1 in a flowchart of FIG receiving session management; FIG. 6 is a flowchart in FIG. 1 for session management instructions; FIG. 7 is described in FIG. 1 for a graphical user interface connected session continued flowchart; FIG. 8 is a flowchart illustrating a graphical user interface session is disconnected in FIG. 1 a; FIG. 9 is a flowchart illustrating a graphical user interface session is logged in FIG. 1 a; FIG. 10 is a prior art for system block diagram of the session management between the remote terminal and the host computer system.

具体实施方式 Detailed ways

本发明针对Linux操作系统和RFB协议做了具体实施,下面将结合附图详细描述。 The present invention is for the Linux operating system and the RFB protocol to do a specific embodiment, it will be described in detail below in conjunction with the accompanying drawings.

图10是根据已有技术的用于远程终端与宿主计算机系统之间的会话管理的系统1000的方框图。 FIG 10 is a block diagram 1000 according to the session management between the prior art for the host computer system and a remote terminal system. 该系统1000包括一个远程终端1021,一个宿主计算机系统1041,远程终端1021通过局域网1031和宿主计算机系统1041相连。 The system 1000 includes a remote terminal 1021, a host computer system 1041, a remote terminal 1021 connected to the LAN 1031 through 1041 and the host computer system. 该远程终端包括一个会话显示模块1011,该宿主计算机系统1041包括一个操作系统1050,一个图形窗口模块1051,一个用户身份认证模块1052,以及多个X应用程序1053。 The remote terminal 1011 includes a display module session, the host computer system 1041 includes an operating system 1050, a graphics window module 1051, a user authentication module 1052, and a plurality of X applications 1053.

图1是说明根据本发明用于自动创建和管理远程终端图形用户接口会话的系统的原理框图,该系统包括通过网络与宿主计算机系统连接的远程终端101,以及宿主计算机系统102。 FIG. 1 is a block diagram of a remote management system, and automatically creates Graphical User Interface terminal session according to the present invention, the system includes a remote terminal connected via a network 101 with the host computer system, and the host computer system 102. 其中,会话服务监控模块120用于完成和会话显示模块110建立连接,进行版本号判断,许可证检查,并在完成初始化之后,向会话管理模块150请求空闲的会话,把和所述会话显示模块110建立的网络连接传递给图形窗口模块140,然后控制权交给用户身份认证模块130;所述用户身份认证模块130识别从所述会话服务监控模块传来的用户身份,完成用户身份的认证;所述会话管理模块150根据来自各个模块的消息对会话进行创建/分配/删除,并且管理会话的状态,其中所述会话管理模块150利用一个数据块,以便存储当前所有所述图形窗口模块的会话属性,该数据块包括显示编号和图形窗口模块状态,进程号,会话编号,图形窗口模块名称,远程终端IP地址,图形窗口模块端口号,上次断开时间,上次连接时间,宽度,高度,颜色深度等;所述图形窗口模块140在从 Wherein the service session monitoring module 120 for performing the display module 110 and session connection is established, and the version determination, the license check, and, after completion of initialization, idle to the session management module 150 requests the session, the session and the display module 110 establishes a network connection module 140 is transmitted to the graphics window, then the control to the user authentication module 130; the user authentication module 130 identifies from the service session monitoring module transmitted user identity, user identity authentication is completed; the session management module 150 for creating the session / distribution / deleted by a message from each module, and manages the state of the session, wherein the session management module 150 uses a data block to store all of the current session of the graphics window module attribute, the data block including a display and a graphics window module status number, process number, session number, the graphics window module name, the IP address of the remote terminal, the graphics window module port number, and the last off time, the last connection time, width, height , color depth and the like; in the graph window module 140 from 其它模块收到和会话显示模块110的网络连接之后,向会话显示模块110发送应用软件的用户接口,并且处理会话显示模块110发送过来的键盘鼠标事件,以及根据所述会话管理模块150发送的请求,断开和会话显示模块的网络连接,或者终止运行,其中,在所述图形窗口模块140终止时,运行在所述图形窗口模块140上的所有X应用程序都会终止,会话结束;图形用户接口会话续连模块160用于向所述会话管理模块150请求当前用户的断开会话,在用户有多个断开的会话时,图形用户接口会话续连模块160根据用户选择向所述会话管理模块150发送请求,以便用户切换到选择的会话中;图形用户接口会话断开模块170用于向会话管理模块150发送消息,以便通知当前用户要断开会话;图形用户接口会话注销模块180用于向会话管理模块150发送消息,以便通知当前用户要终止会 After the session and the other module receives the display module 110 is connected to the network, the user interface display module 110 sends application software to the session, and the session processing module 110 is sent from the display keyboard and mouse events, and sending the session request according to the management module 150 , display the session disconnection and network connection module, or terminate the operation, wherein, when the graphics window module 140 terminates, all running in the X applications module 140 terminates the graph window, the end of the session; graphical user Interface session module 160 is continued even for disconnecting the current user session request to the session management module 150, when the user has a plurality of disconnected sessions, graphical user interface session continued user selection module 160 is connected to the session management module 150 sends a request to the user to switch to the selected session; graphical user interface module 170 to disconnect the session 150 to the session management module sending a message to inform the user to disconnect the current session; graphical user interface module 180 is used to log off the session session management module 150 sends a message to notify the current user will be terminated 话;所述会话显示模块110用于向所述会话服务监控模块120发送请求,请求通过用户认证,以及和图形窗口模块进行屏幕分辨率/颜色深度的协商,在能力协商以后,向所述图形窗口模块140发送用户的键盘鼠标输入,接收所述图形窗口模块140返回的屏幕更新。 Words; display module 110 for the session to the session monitoring module 120 sends a request service, request consultation screen resolution / color depth by user authentication, and graphics as well as window module, after capability negotiation, to the pattern window module 140 sends the user's keyboard and mouse input, receiving module 140 returns the graphical window screen update.

图2是说明图1中的用于会话显示的流程图。 FIG 2 is a flowchart in FIG. 1 for displaying a session description. 在图2中,首先在步骤201接收用户的输入,包括用户名、口令、显示宽度、显示高度、颜色深度等数据,然后通过步骤202和图1中的会话服务监控模块151建立网络连接,把版本号和用户输入通过RFB协议发送给图1中的会话服务监控模块151;在步骤203检查网络连接是否断开,如果网络连接断开,则终止运行;否则在步骤204检查是否收到重新初始化消息,如果没有收到重新初始化消息,则执行步骤206使用远程图形用户接口协议RFB从所述图形窗口模块接收图形用户界面数据,发送键盘和鼠标事件,并且转到步骤203;如果在步骤204检查收到了重新初始化消息,则在步骤205发送重新初始化请求,然后执行步骤206,并转到步骤203。 In FIG. 2, first receives the user's input at step 201, including a user name, a password, a display width, a display height, color depth and other data, and establish a network connection in step 202 and FIG. 1 session service monitoring module 151, the version number and a user input sent through the RFB protocol to FIG. 1 in a session monitoring module 151 services; connection is disconnected at step 203 check the network, if the network connection is disconnected, then terminate; otherwise, step 204 checks whether it has received the reinitialization message, if the message is not received reinitialization, step 206 is performed using the graphical user interface to the remote RFB protocol receives graphics data from the graphical user interface window module sends keyboard and mouse events, and goes to step 203; step 204 checks if re-initialization message received at step 205 to re-transmit initialization request, then step 206, and proceeds to step 203.

图3是说明图1中用于会话服务监控的流程图。 3 is a flowchart in FIG. 1 for service monitoring session description. 在图3中,首先在步骤301识别会话显示模块通过RFB协议发送来版本号,在步骤302如果会话服务监控模块和会话显示模块的版本号一致,则执行步骤303识别会话显示模块通过RFB协议发送来的显示属性和用户身份,然后在步骤304向会话管理模块请求合适的图形窗口模块,在步骤305接收请求得到的图形窗口模块数据,包括图形窗口模块的显示编号和图形窗口模块监听的端口号,在步骤306移交网络连接的控制权给图形窗口模块,并且在步骤307启动用户身份认证模块,并且把用户身份传递给用户身份认证模块。 In FIG. 3, first, the display module transmits through RFB protocol version number, the display module transmitted by the RFB protocol in step 302. If the session is service monitoring module and the session show a consistent version number of the module, step 303 is performed to identify the session in step 301 to identify the session to display attributes and user identity, then at step 304 a request suitable graphical window module to the session management module receives the request graph window module data obtained in step 305, including the graphics window display module numbers and graphics window module listening port number in step 306 the network handover control module connected to the graphics window, and the user authentication module 307 starts in step, and passes the user authentication to the user identity module. 如果在步骤302会话服务监控模块和会话显示模块的版本号不一致,则终止。 If the service session monitoring module, and at step 302 the version number is inconsistent session display module is terminated.

图4是说明图1中用于用户身份认证的流程图。 FIG 4 is a flowchart of a user authentication in FIG. 1. FIG. 在图4中,首先在步骤401识别会话服务监控模块传来的用户身份,并且对用户身份中用户名和口令进行加密,然后到步骤402和Linux操作系统的用户身份数据库进行匹配,在步骤403,如果匹配成功,则执行步骤406启动图形用户接口会话续连模块,并且通知图形用户接口会话续连模块匹配成功,否则执行步骤404检查匹配的次数是否超过指定的阈值,如果已经超过了指定的阈值,则执行步骤406启动图形用户接口会话续连模块,并且通知图形用户接口会话续连模块匹配失败;否则执行步骤405接收用户输入,并且转到步骤402。 In FIG. 4, first in step 401 identify the session service monitoring module transmitted user identity and the user identity in the user name and password are encrypted, and then to step 402 and Linux operating systems the user identity database match, at step 403, If the match is successful, proceed to step 406 to start the graphical user interface session continued even module, and notify the graphical user interface session continued even block matching is successful, otherwise, if the number of executions step 404 checks matching exceeds a specified threshold value, if you have exceeded a specified threshold value , step 406 is performed to start the session continued even graphical user interface module, and notifies the graphical user Interface module fails to match the session continued even; if not, step 405 receives user input, and proceeds to step 402.

图5是说明图1中用于图形窗口模块接受会话管理的流程图。 FIG 5 is a graph illustrating a window module 1 in a flowchart of FIG session management acceptance. 在图5中,首先在步骤501处理X应用程序的请求,然后在步骤502检测和远程终端的连接断开,如果和远程终端的连接断开,则执行步骤503检查是否有其他图形窗口模块移交网络连接的请求,如果没有其他图形窗口模块移交网络连接的请求,则转到步骤501,否则执行步骤504,接收从其他图形窗口模块传递的网络连接,然后执行步骤517向会话显示模块发送重新初始化消息,并且执行步骤505开始监听来自会话管理模块的消息,如果在步骤502检测到和远程终端的连接没有断开,则执行步骤505开始监听来自会话管理模块的消息。 In FIG. 5, first, at step 501 the processing request of the application X, then disconnect the connection detecting step 502 and the remote terminal, and if the connection to the remote terminal is disconnected, step 503 is performed to check if other pattern transfer window module network connection request, if there is no other graphics window module handover request network connection, then go to step 501, otherwise step 504, receives connections from other modules in the graphics window of the transmission network, and then performs step 517 to re-initialize the display module transmits a session message, and step 505 begins listening for messages from the session management module, if it is detected and the remote terminal connection is not disconnected in step 502, step 505 begins listening for messages from the session management module. 随后在步骤506检查是否有消息,如果没有收到来自会话管理模块的消息,则执行步骤513检测和远程终端的连接,如果在步骤514检测到和远程终端的连接断开,则执行步骤515向会话管理模块发送“断开”消息,并转到步骤501,如果在步骤514检测到和远程终端的连接没有断开,则执行步骤516使用RFB协议向会话显示模块发送图形用户会话的用户界面,接收键盘和鼠标事件,并转到步骤501;如果在步骤506检测到了消息,则在步骤507判断消息的类型是否为“断开”,如果消息的类型为“断开”,则执行步骤508,断开和远程终端的网络连接,并转到步骤501;否则在步骤509判断消息的类型是否为“注销”,如果消息的类型为“注销”,则在步骤510断开和远程终端的网络连接并且终止;否则在步骤511判断消息的类型是否为“切换会话”,如果消息的类型为“切换会 Then in step 506 whether there is a message to check if the message is not received from the session management module, connected to the remote terminal and the detecting step 513 is performed, if at step 514 the remote terminal is detected and the connection is disconnected, step 515 is executed to session management module sends a "disconnect" message, and proceeds to step 501, if the connection is detected and the remote terminal is not turned off at step 514, step 516 is executed using the RFB protocol module transmits display a graphical user interface to a user session session, receiving keyboard and mouse events, and proceeds to step 501; step 506 if a message is detected, then the message type is determined at step 507 is "off", if the message type is "off", step 508 is executed, disconnecting the remote terminal and the network connection, and proceeds to step 501; otherwise, if the type of message is determined at step 509 is "Logout", if the message type is "logout", the connection is disconnected from the network in step 510 and remote terminal and terminates; otherwise, step 511 determines whether the message type is "switch sessions", if the message type is "switch will ”,则在步骤512移交和远程终端的网络连接的控制权并且终止。 ", The network connection control handover in step 512 and terminates the remote terminals.

图6是说明图1中用于会话管理的流程图,在图6中,首先在步骤601周期性地查询来自宿主计算机系统中的所述会话服务监控模块,所述图形窗口模块,所述图形用户接口会话断开模块,所述图形用户接口会话注销模块,所述图形用户接口会话续连模块的消息,然后在步骤602判断检查是否有消息,如果没有收到消息,则转到步骤601;如果收到了消息,在所述消息是来自所述会话服务监控模块时,为图形窗口模块分配一个所述的数据块,设定数据块中的图形窗口模块状态字段为等待状态,为所述图形窗口模块分配一个显示编号,并以所述显示编号启动所述图形窗口模块;以及在步骤603判断消息的类型是否为“断开”,如果消息的类型为“断开”,则执行步骤604检查消息的来源是否为“图形窗口模块”,如果消息的来源为图形窗口模块,则执行步骤606,设 6 is a flowchart in FIG. 1 for session management described in FIG. 6, firstly in step 601 periodically queries the session monitoring module service from the host computer system, the graphics module window, the graphical the user interface module session is disconnected, the graphical user interface module session is logged, the graphical user interface module session resumed even the message, then at step 602 whether a message is determined to check if the message is not received, then go to step 601; If the received message, the message is from the service session monitoring module assigned to the graphics window module according to a data block, setting the graphics window module status field of the data block is a state waiting for the graphic window display module is assigned a number, and to display the starting number of the graphical window module; and a message type is determined at step 603 is "off", if the message type is "off", step 604 checks sources is "graphics window module", if the sources of the graphics window module, step 606 is performed, provided 该图形窗口模块的数据块的图形窗口模块状态字段为“断开”,如果消息的来源不是图形窗口模块,则执行步骤605,向图形窗口模块发送类型为“断开”的消息,然后执行步骤606,并转到步骤601。 Graphics window data block module status field of the graphic window module is "off", not graphics window module if the source of the message, step 605 is executed, the transmission type is "off" message to the graphics module window, then step 606, and proceeds to step 601. 如果在步骤603判断消息的类型不是“断开”,则执行步骤607判断消息的类型是否为“就绪”,如果消息的类型为“就绪”,则执行步骤608,设定该图形窗口模块的数据块的图形窗口模块状态字段为“就绪”,然后执行步骤609,向会话服务监控模块发送“显示编号”,然后转到步骤601;如果在步骤607判断消息的类型不是“就绪”,则执行步骤614判断消息的类型是否为“请求会话列表”,如果消息的类型为“请求会话列表”,则执行步骤610,根据用户名查询断开会话列表,然后执行步骤611,向图形窗口会话续连模块发送“断开会话列表”,然后转到步骤601;如果在步骤614判断消息的类型不是“请求会话列表”,则执行步骤615判断消息的类型是否为“续连会话”,如果消息的类型为“续连会话”,则执行步骤612,设定该图形窗口模块的数据块的图形窗口 If the message type is determined at step 603 is not "off", step 607 determines whether the message type is "ready", if the message type is "ready", step 608 is executed, it sets the pattern data window module graphics window module block status field is "ready", then the step 609, the monitoring module sends a session service "display number", and then proceeds to step 601; step 607 determines if the message type is not "ready", step determining message type 614 is "session request list", if the message type is "session request list", step 610 is executed, the user disconnects the session name query list, then step 611, to the graphics window module session continued even send "disconnect the session list", and then proceeds to step 601; step 614 determines if the message type is not "session request list", step 615 determines the type of message is "continued even session", if the type of message "continued even session", step 612 is executed to set the graphics window data block of the graphic window module 块状态字段为“就绪”,然后执行步骤613,向图形窗口模块发送“切换会话”消息,然后转到步骤601;如果在步骤615判断消息的类型不是“续连会话”,则执行步骤616判断消息的类型是否为“登录失败”,如果消息的类型为“登录失败”,则执行步骤618,删除该图形窗口模块的数据块,并且在步骤619向图形窗口模块发送“注销”消息,如果在步骤616判断消息的类型不是“登录失败”,则执行步骤617判断消息的类型是否为“注销”,如果消息的类型为“注销”,则执行步骤618,删除该图形窗口模块的数据块,并且在步骤619向图形窗口模块发送“注销”消息,如果在步骤617判断的消息的类型不是“注销”,则转到步骤601。 Block status field is "ready", then the step 613, sends a "session handover" message to the graphics window module, and then go to step 601; step 615 determines if the message type is not "continued even session", step 616 determines message type is "Login failed", if the message type is "Login failed", execute step 618, deleting the data block of the graphic window module, and 619 transmits "cancellation" message to the graphics window module at step, if the type step 616 determines the message is not a "Login failed", step 617 determines whether the message type is "logout", the data block if the message type is "logout", execute step 618, deleting the graph window module, and 619 sends a "log out" message to the graphics window module in step, step 617 determines if the type of message is not "Logout", proceeds to step 601.

图7是说明图1中用于图形用户接口会话续连的流程图,在图7中,首先在步骤701判断来自用户身份认证模块的匹配结果是否为“成功”,如果匹配的结果为“失败”,则向会话管理模块发送登录失败消息,并且终止所述图形用户会话续连模块。 FIG 7 is a flowchart in FIG. 1 for a graphical user interface session continued even explanation, in FIG. 7, first, at step 701 the matching determination result from the subscriber identity module authentication is "success", if the matching result is "failed ", it is sent to the session management module login failure message and terminating the session continued even graphical user module. 如果匹配的结果为“成功”,则执行步骤702向会话管理模块发送“请求会话列表消息”,然后执行步骤703,从会话管理模块读取“断开会话列表”,随后在步骤704判断收到的断开会话列表是否为“空”,如果收到的断开会话列表为“空”,则执行步骤707,读取用户个人配置文件初始化运行环境,并且终止,如果收到的断开会话列表不为“空”,则执行步骤705显示断开会话列表,并接收用于选择会话的用户输入,并根据用户输入执行步骤706,向会话管理模块发送“续连会话”消息,切换到用户选择的会话,并终止。 If a matching result is "success", step 702 sends a "request for a session list message" to the session management module, then execute step 703, is read "off the session list" from the session management module 704 subsequently received is determined at step the list of disconnected sessions is "empty", a list of disconnected sessions If you receive is "empty", step 707 is executed to read the user's personal profile runtime environment initialization and termination, if you receive a list of disconnected sessions is not "empty", step 705 displays a list of disconnecting the session, and receiving user input for selecting a session, and 706, sends a "session continued even" message to the session management module performs steps according to user input, a user selection switch session, and terminates.

图8是说明图1中用于图形用户接口会话断开的流程图,在图8中,首先在步骤801读取当前会话的显示编号,然后执行步骤802,向会话管理模块发送“断开当前会话”消息,并且终止。 FIG 8 is a flowchart illustrating a graphical user interface of FIG. 1 in a disconnected session for, in FIG. 8, first in step 801 reads the current display session number, then the step 802, the session management module sends a "disconnect the current session "message and terminates.

图9是说明图1中用于图形用户接口会话注销的流程图,在图9中,首先在步骤901读取当前会话的显示编号,然后执行步骤902,向会话管理模块发送“注销当前会话”消息,并且终止。 FIG 9 is a flowchart illustrating a graphical user interface session is logged in FIG. 1 for, in FIG. 9, first, at step 901 reads the current display session number, then the step 902, the session management module sends a "log out of the current session." message and terminates.

本发明的优先实现和Linux操作系统和RFB协议有关,但是本发明不限定于Linux操作系统,也不限定于RFB协议。 Priority implementation of the invention and Linux operating systems and related RFB protocol, but the present invention is not limited to the Linux operating system, not limited to the RFB protocol. 技术人员可以对此进行不违背本发明的精神和范围的各种修改,例如技术人员能够意识到本发明不限定于任何特定的远程图形用户接口协议和任何特定的操作系统;还例如,技术人员可以对远程图形用户接口协议进行不违背本发明的精神和范围的修改,例如在协议中增加声音、打印等外部设备的数据。 In the art that various modifications may be made thereto without departing from the spirit and scope of the present invention, for example the art can appreciate that the invention is not limited to any particular remote protocol and graphic user interfaces to any particular operating system; further example, the art modifications may be made without departing from the spirit and scope of the present invention on the remote graphical user interface protocol, such as increasing the sound data from the external device, printing in the protocol. 因此,很明显本发明可以按照多种变化形式实现,这些变化并不脱离本发明的精神和实质,所有这些修改对于本领域技术人员都是很明显的,而且将落入所附权利要求的范围内。 Thus, it is clear that the present invention can be implemented in various variations, these variations are not departing from the scope and spirit of the present invention, and all such modifications are skilled in the art will be apparent, and will fall within the scope of the appended claims Inside.

Claims (17)

1.一种自动创建和管理远程终端图形用户接口会话的方法,用于远程终端与宿主计算机系统的远程会话中,所述远程终端与宿主计算机系统通过网络相互连接,其中所述的远程终端包括一个会话显示模块,所述的计算机系统包括一个会话服务监控模块、一个用户身份认证模块、一个会话管理模块、一个图形窗口模块、一个图形用户接口会话续连模块、一个图形用户接口会话断开模块以及一个图形用户接口会话注销模块,所述的方法包括:与宿主计算机系统建立连接,并远程显示图形用户接口会话的会话显示步骤;管理来自远程终端的远程图形用户接口协议请求的会话服务监控步骤,其中所述的图形用户接口协议中包括显示属性消息、用户身份消息、重新初始化消息;认证所述远程图形用户接口协议包含的远程终端的用户身份的身份认证步骤;管理 A method for automatically creating and managing the graphical user interface to the remote terminal session, the remote terminal session to the remote host computer system, the remote terminal and the host computer system connected to each other via a network, wherein the remote terminal comprises a display module session, the computer system comprising a service session monitoring module, a user authentication module, a session management module, a graphics window module, a graphical user interface module connected session continued, a graphical user interface session disconnect module and a graphical user interface module session is logged, the method comprising: establishing a connection with the host computer system, and a remote display session graphical user Interface session displaying step; session management service monitoring step remote graphical user interface protocols from a remote terminal requests wherein said graphical user interface includes a protocol attribute of the message, the identity of the user message, the message re-initialization; identity of the user identity authentication of the remote terminal remote graphical user interface protocol comprises an authentication step; management 主计算机系统中的图形窗口模块的会话管理步骤;向远程终端发送图形用户接口,并接受会话管理模块的管理的图形窗口启用步骤;续连会话的会话续连步骤;根据接收的消息的类型,执行下列步骤之一:向会话管理模块发送消息以便断开当前会话的会话断开步骤;向会话管理模块发送消息以便注销当前会话的会话注销步骤。 Session management step the host computer system graphics window module; transmitting to a remote terminal a graphical user interface, and a managed session management module of the graphics window to enable step; session continued even step continuous even session; type according to the message received, one of the following steps: sending a message to the session management module to disconnect the current session of the session disconnecting step; session management module sending a message to the session in order to cancel the current session log-off step.
2.如权利要求1所述的方法,其特征在于,所述会话显示步骤包括:a)接收用户输入;b)与所述会话服务监控模块建立网络连接;c)将用户输入通过远程图形用户接口协议发送给所述会话服务监控模块;d)判断网络连接是否断开;e)在网络连接断开时,则终止运行;f)判断是否收到重新初始化消息;g)在未收到所述消息时,执行步骤i);h)在收到所述消息时,发送重新初始化请求,并执行步骤i);i)使用远程图形用户接口协议从所述图形窗口模块接收图形用户界面数据,发送键盘和鼠标事件;j)转到步骤d)。 2. The method according to claim 1, wherein said displaying step comprises the session: a) receiving a user input; b) establishing a network connection service with the session monitoring module; c) the user input through a graphical user remote interface protocol to transmit the service session monitoring module; D) determine whether the network connection is disconnected; E) when the network connection is disconnected, terminate; F) determines whether or not re-initialization message; G) did not receive the when the above message, step i); h) upon receipt of the message, reinitialize transmission request, and step i); i) using a remote graphical user interface to a graphical user interface protocol to receive data from the graph window module, send keyboard and mouse events; j) to step d).
3.如权利要求2所述的方法,其特征在于所述步骤a)中的用户输入包括:用户身份以及显示属性。 3. The method according to claim 2, wherein the user input step a) comprises: displaying a user identity and attributes.
4.如权利要求3所述的方法,其特征在于所述显示属性包括显示宽度,显示高度,显示颜色深度。 4. The method according to claim 3, wherein said display attribute comprises a display width, a display height, display color depth.
5.如权利要求1所述的方法,其特征在于,所述会话服务监控步骤包括:a)识别远程图形用户接口协议中的所述会话显示模块的版本号;b)在所述版本号和所述会话服务监控模块的版本号不一致时,则中止与远程终端的连接;c)识别远程图形用户接口协议中包含的显示属性和用户身份;d)根据显示属性向所述会话管理模块请求图形窗口模块;e)从所述会话管理模块接收所述图形窗口模块的数据;f)把和远程终端连接的控制权交给所述图形窗口模块;g)启动所述用户身份认证模块,并把用户身份提交给所述用户身份认证模块进行认证。 5. The method according to claim 1, wherein said monitoring step includes the session service: a) the graphical user interface to the remote session identification protocol version number of the display module; b) a version number and the when the service session are inconsistent version number monitoring module, aborting the connection to the remote terminal; c) identifying the remote display properties included in the graphical user interface protocol and a user identity; D) graphics request to the session management module according to the display attributes window module; E) the data received from the session management module of the graphics window module; F) and the remote control terminal is connected to the graphic window module; G) to start the user authentication module, and the user identity presented to the user authentication module for authentication.
6.如权利要求5所述的方法,其特征在于步骤e)中所述的数据包括:图形窗口模块的显示编号和图形窗口模块监听的端口号。 6. The method according to claim 5, characterized in that step e) the data comprises: a port number shows the number and the graphics window module of the graphics window module is listening.
7.如权利要求6所述的方法,其特征在于步骤f)是根据所述的端口号进行的。 7. The method according to claim 6, wherein step f) is performed according to the port number.
8.如权利要求1所述的方法,其特征在于,所述用户身份认证步骤包括:a)识别从所述会话服务监控模块中传来的用户身份中的用户名和口令;b)对用户名和口令进行加密;c)与宿主计算机系统的用户身份数据库进行匹配;d)在匹配成功时,则进行步骤g);e)在匹配次数超过预定阈值时,则进行步骤g);f)接收用户输入,并转到步骤c);g)启动所述图形用户接口会话续连模块,并且把匹配结果提交给所述图形用户接口会话续连模块。 8. The method according to claim 1, wherein the user authentication step comprises: a user name and password a) identifying a service session transmitted from the monitoring of a subscriber identity module; b) username and password is encrypted; c) the host computer system user database matching; D) when the matching is successful, go to step g); E) exceeds a predetermined threshold value, the step g is the number of matches); F) receiving a user input, and go to step c); g) a graphical user interface to start the session module is connected continuously, and the matching results submitted to said graphic user interface module connected session resumed.
9.如权利要求1所述的方法,其特征在于,所述图形窗口启用步骤包括:a)处理X应用程序的请求;b)检测和远程终端的连接是否处于断开状态;c)在和远程终端的连接处于断开状态时,检测是否有来自其他图形窗口模块移交网络连接的请求;d)在没有来自所述其他图形窗口模块移交网络连接的请求时,则转到步骤a);e)在存在自所述其他图形窗口模块移交网络连接的请求时,则接收网络连接,并且通过所述连接向所述会话显示模块发送重新初始化消息;f)查询来自所述会话管理模块的消息;g)在和远程终端的连接处于连接状态时,则查询来自所述会话管理模块的消息;h)在所述消息为断开时,则终止与远程终端的网络连接,并且转到步骤a);i)在所述消息为注销时,则终止与远程终端的网络连接,并且终止所述图形窗口模块;j)在所述消息为切换会话时,则 9. The method according to claim 1, wherein the graph window enabling step comprising: a) an X application processing request; b) connected to the detection and the remote terminal is in a disconnected state; c) and in when connected to the remote terminal is in a disconnected state, detecting whether there is a request from other modules in the graphics window handover network connection; D) when no other graphics window module from the handover request network connection, go to step a); e ) when there is a request from the other network connection transfer module graph window, the receiver connected to the network, and the display module transmits a message to re-initialize the session through the connection; F) query message from the session management module; g) when the remote terminal and the connection in the connected state, the query message from the session management module; H) connected to a network of remote terminal is turned off in the message is terminated, and goes to step a) ; I) in the message is canceled, terminate the connection with the remote network terminal, and terminates the graph window module; when j) to switch the session in the message, 把和远程终端连接的控制权交给消息中指定的所述图形窗口模块,并且终止所述图形窗口模块;k)在没有收到来自所述会话管理模块的消息时,则检测和远程终端的连接;l)在和远程终端的连接断开时,则向会话管理模块发送断开消息,并且转到步骤a);m)在和远程终端的连接处于连接状态时,则使用远程图形用户接口协议传输图形用户界面,接收键盘和鼠标事件,并转到步骤a)。 The remote control terminal connected to the pattern specified in the message window module, and terminates the graph window module; K) when no message is received from the session management module of the remote terminal is detected, and connection; L) and is connected at the remote terminal is disconnected, sending a disconnect message to the session management module, and goes to step a); m) and a connection at the remote terminal is in the connected state, using the remote graphical user Interface graphical user interface transmission protocol, receiving keyboard and mouse events, and go to step a).
10.如权利要求1所述的方法,其特征在于,所述方法利用一个数据块,以便存储当前所有所述图形窗口模块的会话属性。 10. The method according to claim 1, characterized in that the method utilizes a data block to store the current session attributes of all of the graphical window module.
11.如权利要求10所述的方法,其特征在于,所述数据块包含显示编号和图形窗口模块状态。 11. The method according to claim 10, wherein said data block includes a display module status number and the graph window.
12.如权利要求11所述的方法,其特征在于,所述数据块还包括进程号,会话编号,图形窗口模块名称,远程终端IP地址,图形窗口模块端口号,上次断开时间,上次连接时间,宽度,高度,颜色深度。 12. The method according to claim 11, wherein said block data further comprises a process number, session number, the graphics window module name, the IP address of the remote terminal, the graphics window module port number, and the last off time, the secondary connection time, width, height, color depth.
13.如权利要求11或12所述的方法,其特征在于,所述会话管理步骤包括:a)周期性地查询消息;b)在收到所述会话服务监控模块的消息时,则为图形窗口模块分配一个所述的数据块,设定数据块中的图形窗口模块状态字段为等待状态,为所述图形窗口模块分配一个显示编号,并以所述显示编号启动所述图形窗口模块;c)在收到来自所述图形窗口模块的消息为断开时,则设定所述数据块的图形窗口模块状态字段为断开状态,并转到步骤a);d)在收到的断开消息不是来自所述图形窗口模块时,则向所述图形窗口发送断开消息,并设定所述数据块中的图形窗口模块状态字段为断开状态,并转到步骤a);e)在收到的消息为就绪时,则设定所述数据块的图形窗口模块状态字段为就绪状态,并且向所述会话服务监控模块发送所述图形窗口模块的显示编号;f)在收到的 13. The method of claim 11 or claim 12, wherein said session management step comprises: a) periodically polling message; b) upon receipt of the message service session monitoring module, for the pattern a window module of the data block is allocated, and setting the graphics window module status field of the data block is a state waiting for the graphic window display module is assigned a number, and to display the starting number of the graphical window module; C ) upon receipt of the message from the graphics window module is disconnected, the setting of the data block in the graphics window module status field OFF state, and proceeds to step a); d) in the received disconnect when the message is not from the graphics window module, sending disconnect message to the graphics window, and setting the graphics window module status field of the data block is off state, and proceeds to step a); e) the ready message is received, the data block is set the graphics window module status field to the ready state, and to service the session monitoring module sending the graphics window display number of the module; F) in the received 息为请求会话列表时,则根据消息中的用户名查询断开会话列表,并向图形用户接口会话续连模块发送断开会话列表;g)在收到的消息为续连某个会话时,则根据消息中的显示编号设定所述数据块的图形窗口状态字段为就绪,并且向所述图形窗口模块发送切换会话消息;h)在收到的消息为登录失败时,则删除为所述图形窗口模块分配的所述数据块;并且向所述图形窗口发送注销消息;i)在收到的消息为注销时,删除为所述图形窗口模块分配的所述数据块;并且向所述图形窗口发送注销消息,结束会话。 Message to request a list of conversations, the user name of the query message list disconnecting the session, disconnecting the session and send a list of sessions continued even Graphical User Interface module; G) in a received message is continued even during a session, the message is displayed in the graphics window number is set in the status field of the data block is ready, and sends a session message to the switching pattern window module; H) message is received login fails, to delete the graphics window module allocation of the data block; and send a logout message to the graph window; I) is a logout, deleting the data block of the graphic window module is allocated in the received message; to the pattern and window deregistration message is sent, the end of the session.
14.如权利要求1所述的方法,其特征在于,所述图形用户接口会话续连步骤包括:a)在收到来自所述用户身份认证模块的匹配结果为失败时,则向所述会话管理模块发送登录失败消息,并且终止所述图形用户会话续连模块;b)在收到来自所述用户身份认证模块的匹配结果为成功时,则向所述会话管理模块发送请求会话列表消息,并且读取断开会话列表;c)在断开会话列表为空时,则为当前用户读取个人配置文件,初始化运行环境,并创建会话;d)在断开会话列表不为空时,则显示断开会话列表,接收用于选择会话的用户输入;e)根据用户输入向所述会话管理模块发送续连会话消息,并切换到用户选择的会话;f)终止所述图形用户接口续连会话模块的运行。 14. The method according to claim 1, wherein the graphical user interface session continued even step comprises: a) upon receiving a matching result from the subscriber identity module authentication is a failure, then the session to log management module sends a failure message, and terminates the session continued even graphical user module; b) upon receipt of a matching result from the subscriber identity module authentication is successful, to the session management module sends a request message a list of conversations, and read off a list of conversations; c) when disconnecting the session list is empty, compared with the current user to read personal profile, initialize the operating environment, and create a session; d) when disconnecting the session list is not empty, display disconnected session list, receiving a user input selecting a session; E) continuously transmitting a session connected message to the session management module according to a user input, and switch to the selected user session; F) terminating the graphical user interface connected cONTINUED session operation of the module.
15.如权利要求1所述的方法,其特征在于,所述图形用户接口会话断开步骤包括:向所述会话管理模块发送断开消息,以断开当前会话。 15. The method according to claim 1, wherein the graphical user interface session disconnecting step comprises: transmitting a release message to the session management module to disconnect the current session.
16.如权利要求1所述的方法,其特征在于,所述图形用户接口会话注销步骤包括:向所述会话管理模块发送注销消息,以注销当前会话。 16. The method according to claim 1, wherein the graphical user interface session log-off step comprises: send a logout message to the session management module to log out of the current session.
17.一种自动创建和管理远程终端图形用户接口会话的系统,用于远程终端与宿主计算机系统的远程会话中,该系统包括通过网络与宿主计算机系统连接的远程终端,以及宿主计算机系统,其中所述的远程终端包括一个会话显示模块,所述的宿主计算机系统包括一个会话服务监控模块、一个用户身份认证模块、一个会话管理模块、一个图形窗口模块、一个图形用户接口会话续连模块、一个图形用户接口会话断开模块以及一个图形用户接口会话注销模块,其中所述会话显示模块,用于与宿主计算机系统建立连接,并远程显示图形用户接口会话;所述会话服务监控模块,用于管理来自远程终端的远程图形用户接口协议请求,其中所述的图形用户接口协议中包括显示属性消息、用户身份消息、重新初始化消息;所述用户身份认证模块,用于认证远程图形用 17. A system for automatically creating and managing remote terminal session Graphical User Interface for remote terminal session to the remote host computer system, the system comprising a remote terminal connected via a network with a host computer system, and the host computer system, wherein the remote terminal includes a display module session, the host computer system includes a service session monitoring module, a user authentication module, a session management module, a graphics window module, a graphical user interface module connected session continued, a graphical user interface module and a session disconnects the session is logged graphical user interface module, wherein the session display module, for establishing a connection with the host computer system, a graphical user interface and the remote display session; the service session monitoring module configured to manage a remote graphical user interface protocol request from a remote terminal, wherein said graphical user interface includes a protocol attribute of the message, the identity of the user message, the message re-initialization; the user authentication module for authenticating a remote graphical 接口协议包含的远程终端的用户身份;所述会话管理模块,用于管理宿主计算机系统中的图形窗口模块;所述图形窗口模块,用于向远程终端发送图形用户接口,并接受会话管理模块的管理;所述图形用户接口会话续连模块,用于续连会话;所述图形用户接口会话断开模块,用于向会话管理模块发送消息以便断开当前会话;所述图形用户接口会话注销模块,用于向会话管理模块发送消息以便注销当前会话。 User identity of the remote terminal interface protocol included; the session management module for managing the host computer system graphics window module; the graphical window module, configured to send a graphical user interface to a remote terminal, and accept the session management module management; the graphical user interface module connected session continued, even for a session continued; the graphical user interface session disconnect module, configured to send a message to the session management module in order to disconnect the current session; the graphical user interface module session is logged for transmitting a message to the session management module to log out of the current session.
CN 200310116910 2003-11-28 2003-11-28 Method and system for automatically creating and managing graphical user interface session of remote terminal CN1304984C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200310116910 CN1304984C (en) 2003-11-28 2003-11-28 Method and system for automatically creating and managing graphical user interface session of remote terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200310116910 CN1304984C (en) 2003-11-28 2003-11-28 Method and system for automatically creating and managing graphical user interface session of remote terminal

Publications (2)

Publication Number Publication Date
CN1622077A CN1622077A (en) 2005-06-01
CN1304984C true CN1304984C (en) 2007-03-14

Family

ID=34760820

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200310116910 CN1304984C (en) 2003-11-28 2003-11-28 Method and system for automatically creating and managing graphical user interface session of remote terminal

Country Status (1)

Country Link
CN (1) CN1304984C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7596701B2 (en) 2004-07-07 2009-09-29 Oracle International Corporation Online data encryption and decryption

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1162780A (en) * 1997-03-07 1997-10-22 国际商业机器公司 Graphic user interface apparatus and method for computer networking
CN1346564A (en) * 1998-04-20 2002-04-24 太阳微系统公司 Method and apparatus for providing virtual desktop system architecture
CN1372664A (en) * 1999-11-24 2002-10-02 肯纳米亚公司 Method and system for continuous interactive communication in an electronic network
US6654784B1 (en) * 2000-01-14 2003-11-25 Nexaweb Technologies, Inc Computing architecture

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1162780A (en) * 1997-03-07 1997-10-22 国际商业机器公司 Graphic user interface apparatus and method for computer networking
CN1346564A (en) * 1998-04-20 2002-04-24 太阳微系统公司 Method and apparatus for providing virtual desktop system architecture
CN1372664A (en) * 1999-11-24 2002-10-02 肯纳米亚公司 Method and system for continuous interactive communication in an electronic network
US6654784B1 (en) * 2000-01-14 2003-11-25 Nexaweb Technologies, Inc Computing architecture

Also Published As

Publication number Publication date
CN1622077A (en) 2005-06-01

Similar Documents

Publication Publication Date Title
JP5006925B2 (en) Manage communications between computing nodes
US6631409B1 (en) Method and apparatus for monitoring a communications system
US6021496A (en) User authentication from non-native server domains in a computer network
CN1201524C (en) Home-network autoconfiguration
EP0600235B1 (en) Cooperative processing interface and communication broker for heterogeneous computing environments
US6952714B2 (en) Method for distributed program execution with server-based file type association
US7594018B2 (en) Methods and apparatus for providing access to persistent application sessions
US7552213B2 (en) Remote network node management system and method
AU781898B2 (en) Method for acquiring content information, and software product, collaboration system and collaboration server for acquiring content information
EP1682978B1 (en) Method and system for accessing and managing virtual machines
JP3604898B2 (en) Management apparatus and method of network devices, a recording medium
US7409451B1 (en) Switching between connectivity types to maintain connectivity
US7330872B2 (en) Method for distributed program execution with web-based file-type association
EP1536612A1 (en) Method and apparatus for sharing applications using a peer-to-peer protocol
US7412727B2 (en) Media streaming home network system and method for operating the same
US20030074393A1 (en) Methods for distributed program execution with file-type association in a client-server network
KR100430954B1 (en) Information processing method, information terminal support server, collaboration system, and storage medium storing an information processing program
US7472313B2 (en) Primary server and backup server that share an IP address and a limited number of message identifiers
CA2293127C (en) An apparatus and method for determining a program neighborhood for a client node in a client-server network using markup language techniques
US20020059372A1 (en) Method and apparatus for sharing peripheral devices over a network
EP2383649A1 (en) Methods for distributed program execution with file-type association in a client-server network
JP5331374B2 (en) Adaptive communication application programming interface
US8073954B1 (en) Method and apparatus for a secure remote access system
US20050080897A1 (en) Remote management utility
US20060190532A1 (en) Apparatus and methods for multiple user remote connections to an information handling system via a remote access controller

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted
C17 Cessation of patent right