CN103731400A - Resource sharing system and method - Google Patents
Resource sharing system and method Download PDFInfo
- Publication number
- CN103731400A CN103731400A CN201210385469.2A CN201210385469A CN103731400A CN 103731400 A CN103731400 A CN 103731400A CN 201210385469 A CN201210385469 A CN 201210385469A CN 103731400 A CN103731400 A CN 103731400A
- Authority
- CN
- China
- Prior art keywords
- shared resource
- server
- central server
- shared
- domain name
- 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
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
提供了一种共享资源的系统和方法。所述系统包括:共享资源服务器,用于提供共享资源;中央服务器,为提供共享资源的共享资源服务器设置访问域名;共享资源请求端,通过所述访问域名来访问共享资源服务器提供的共享资源。
A system and method for sharing resources is provided. The system includes: a shared resource server, which is used to provide shared resources; a central server, which sets an access domain name for the shared resource server providing shared resources; a shared resource requester, which accesses shared resources provided by the shared resource server through the access domain name.
Description
技术领域technical field
本发明涉及到通信技术领域,特别是涉及一种通过能够进行通信的终端实现资源共享的系统和方法。The present invention relates to the field of communication technology, in particular to a system and method for realizing resource sharing through a communication-capable terminal.
背景技术Background technique
现有移动终端与移动终端之间远距离传输数据文件的典型做法是发送彩信,由信息发送方的移动终端发送彩信至运营商服务器,运营商服务器在接收到彩信后,再转发至信息接收方的移动终端,该信息接收方的移动终端接收到彩信后通过WAP方式接入,直接从运营商服务器下载资源。与此同时,移动终端与个人计算机之间使用原始的数据线或者使用WIFI共享文件。其中,所传输的数据文件包括文字、文档、图片,也可以是流媒体文件构成的视频和音频文件。The typical method of long-distance transmission of data files between existing mobile terminals is to send multimedia messages. The mobile terminal of the information sender sends the multimedia message to the operator's server. After receiving the multimedia message, the operator's server forwards it to the information receiver. After receiving the multimedia message, the mobile terminal of the information receiver accesses the information via WAP, and directly downloads resources from the operator's server. At the same time, use the original data line or use WIFI to share files between the mobile terminal and the personal computer. Wherein, the transmitted data files include text, documents, pictures, and may also be video and audio files composed of streaming media files.
现有的移动通信系统是基于传统的C/S架构,用户需要将文件上传到网络服务器。如果文件较大时,上传和下载文件需要耗费很长的时间。而通过WIFI进行文件的共享又无法解决远距离传输的问题。The existing mobile communication system is based on the traditional C/S architecture, and users need to upload files to the network server. If the file is large, it takes a long time to upload and download the file. However, file sharing via WIFI cannot solve the problem of long-distance transmission.
发明内容Contents of the invention
本发明涉及到移动终端与移动终端或移动终端与PC直接共享资源的方法,与以往的服务器上传下载方式有本质的区别,并且可以远程共享。The invention relates to a method for directly sharing resources between a mobile terminal and a mobile terminal or between a mobile terminal and a PC, which is essentially different from the previous server uploading and downloading methods, and can be shared remotely.
提供了一种用于共享资源的系统,包括:共享资源服务器,用于提供共享资源;中央服务器,为提供共享资源的共享资源服务器设置访问域名;共享资源请求端,通过所述访问域名来访问共享资源服务器提供的共享资源。Provided is a system for sharing resources, including: a shared resource server, used to provide shared resources; a central server, setting an access domain name for the shared resource server providing shared resources; a shared resource requesting end, accessing through the access domain name Shared resources provided by the shared resource server.
优选地,共享资源服务器还用于生成共享资源描述文件,并将生成的共享资源描述文件发送给中央服务器。Preferably, the shared resource server is also used to generate a shared resource description file, and send the generated shared resource description file to the central server.
优选地,共享资源服务器包括:服务器注册模块,在用户开启共享资源服务器以发布共享资源时,向中央服务器进行注册;共享资源控制器,为用户提供选择/关闭共享资源的用户界面,以便用户选择需要共享的资源;共享资源管理模块,管理本地所有的共享资源,并生成相应的共享资源描述文件;传输共享资源服务器模块,在共享资源控制器的控制下将共享资源描述文件发送给中央服务器。Preferably, the shared resource server includes: a server registration module, which registers with the central server when the user starts the shared resource server to publish shared resources; Resources that need to be shared; the shared resource management module manages all local shared resources and generates corresponding shared resource description files; the transmission shared resource server module sends the shared resource description files to the central server under the control of the shared resource controller.
优选地,所述访问域名是中央服务器为共享资源服务器分配的在该中央服务器域名下的二级域名,其中,中央服务器还用于将与该共享资源服务器的连接ID与分配的二级域名的映射关系保存到数据库中。Preferably, the access domain name is a second-level domain name assigned by the central server to the shared resource server under the central server domain name, wherein the central server is also used to combine the connection ID with the shared resource server with the assigned second-level domain name The mapping relationship is saved to the database.
优选地,共享资源请求端通过浏览器连接到中央服务器,其中,在存在多个共享资源服务器的情况下,中央服务器根据共享资源请求端在浏览器中输入的二级域名来确定共享资源请求端请求的是哪一个共享资源服务器上的资源。Preferably, the shared resource requester connects to the central server through a browser, wherein, in the case of multiple shared resource servers, the central server determines the shared resource requester according to the secondary domain name entered by the shared resource requester in the browser. Which resource on the shared resource server is being requested.
优选地,中央服务器还用于把共享资源请求端与中央服务器之间的HTTP请求转换成中央服务器与共享资源服务器之间的私有协议,另外把通过私有协议从共享资源服务器返回到中央服务器的共享资源转换成通过HTTP响应返回到共享资源请求端。Preferably, the central server is also used to convert the HTTP request between the shared resource request end and the central server into a private protocol between the central server and the shared resource server, and return the shared resource from the shared resource server to the central server through the private protocol. The resource is transformed into an HTTP response and returned to the shared resource requester.
优选地,在共享资源的状态发生变化时,共享资源服务器向中央服务器发送更新命令来由中央服务器来更新共享资源描述文件。Preferably, when the state of the shared resource changes, the shared resource server sends an update command to the central server so that the central server updates the shared resource description file.
提供了一种用于共享资源的方法,包括:用于提供共享资源的共享资源服务器选择共享资源并登录中央服务器;中央服务器为共享资源服务器设置访问域名;共享资源请求端通过所述访问域名来访问共享资源服务器提供的共享资源。Provided is a method for sharing resources, comprising: a shared resource server for providing shared resources selects shared resources and logs in to a central server; the central server sets an access domain name for the shared resource server; a shared resource requester uses the access domain name to Access shared resources provided by the shared resource server.
优选地,用于共享资源的方法还包括:在选择共享资源之后,共享资源服务器生成共享资源描述文件,并将生成的共享资源描述文件发送给中央服务器。Preferably, the method for sharing resources further includes: after selecting the shared resource, the shared resource server generates a shared resource description file, and sends the generated shared resource description file to the central server.
优选地,所述访问域名是中央服务器为共享资源服务器分配的在该中央服务器域名下的二级域名,其中,用于共享资源的还包括:中央服务器将与该共享资源服务器的连接ID与分配的二级域名的映射关系保存到数据库中。Preferably, the access domain name is a second-level domain name assigned by the central server to the shared resource server under the central server domain name, wherein, for the shared resource, it also includes: the central server assigns the connection ID with the shared resource server The mapping relationship of the second-level domain name is saved in the database.
优选地,共享资源请求端通过浏览器连接到中央服务器,其中,在存在多个共享资源服务器的情况下,中央服务器根据共享资源请求端在浏览器中输入的二级域名来确定共享资源请求端请求的是哪一个共享资源服务器上的资源。Preferably, the shared resource requester connects to the central server through a browser, wherein, in the case of multiple shared resource servers, the central server determines the shared resource requester according to the secondary domain name entered by the shared resource requester in the browser. Which resource on the shared resource server is being requested.
优选地,访问共享资源服务器提供的共享资源的步骤包括:中央服务器根据所述共享资源描述文件生成相应的HTML页面,并返回给共享资源请求端;共享资源请求端通过点击所述HTML页面上的链接来请求想要的共享资源;中央服务器接收到该对共享资源的请求后,把该请求转发给共享资源服务器;共享资源服务器收到请求后把请求的共享资源发送给中央服务器;中央服务器接收到共享资源后,通过使用HTTP响应消息把共享资源转发给共享资源请求端。Preferably, the step of accessing the shared resource provided by the shared resource server includes: the central server generates a corresponding HTML page according to the shared resource description file, and returns it to the shared resource request end; the shared resource request end clicks on the HTML page link to request the desired shared resource; after the central server receives the request for the shared resource, it forwards the request to the shared resource server; after receiving the request, the shared resource server sends the requested shared resource to the central server; the central server receives After arriving at the shared resource, the shared resource is forwarded to the shared resource requesting end by using the HTTP response message.
优选地,用于共享资源的方法还包括:在共享资源的状态发生变化时,共享资源服务器向中央服务器发送更新命令来由中央服务器来更新共享资源描述文件。Preferably, the method for sharing resources further includes: when the state of the shared resource changes, the shared resource server sends an update command to the central server so that the central server updates the shared resource description file.
附图说明Description of drawings
从下面结合附图的详细描述,本发明的特定示例性实施例的上述和其他方面、特征和优点将更加显然。The above and other aspects, features and advantages of certain exemplary embodiments of the present invention will become more apparent from the following detailed description taken in conjunction with the accompanying drawings.
图1是根据本发明示例性实施例的共享资源服务器的结构的框图;FIG. 1 is a block diagram of a structure of a shared resource server according to an exemplary embodiment of the present invention;
图2是根据本发明示例性实施例的共享资源请求端通过浏览器看到的共享资源服务器上的共享资源的页面的视图;FIG. 2 is a view of a page of a shared resource on a shared resource server viewed by a shared resource requester through a browser according to an exemplary embodiment of the present invention;
图3是根据本发明示例性实施例的共享资源传输的网络结构图;FIG. 3 is a network structure diagram of shared resource transmission according to an exemplary embodiment of the present invention;
图4是根据本发明示例性实施例的实现共享资源的共享的信号流图。Fig. 4 is a signal flow diagram for implementing sharing of shared resources according to an exemplary embodiment of the present invention.
具体实施方式Detailed ways
本发明为了实现移动终端中的资源的远程共享,提供了中央服务器和共享资源服务器。共享资源服务器可以是提供服务的移动终端或个人计算机,另外共享资源服务器也可被设置在提供共享服务的移动终端或个人计算机中。当共享资源服务器发起共享时,需要登录中央服务器,并保持与中央服务器的连接。例如,共享资源服务器在第一次发起共享时,可向中央服务器注册用户名和密码,并且当再次进行共享时可向中央服务器输入用户名和密码以登陆到该中央服务器以与中央服务器进行连接。In order to realize the remote sharing of resources in the mobile terminal, the present invention provides a central server and a shared resource server. The shared resource server may be a mobile terminal or a personal computer that provides the service, and the shared resource server may also be set in the mobile terminal or the personal computer that provides the shared service. When the shared resource server initiates sharing, it is necessary to log in to the central server and maintain a connection with the central server. For example, when the shared resource server initiates sharing for the first time, it can register a user name and password with the central server, and when sharing again, it can input the user name and password to the central server to log in to the central server to connect with the central server.
共享资源服务器的作用主要是提供共享资源,所述资源包括各种文件和/或包括各种文件的文件夹,自动生成共享资源的共享资源描述文件(share_description_file)并将该共享资源描述文件上传至中央服务器,以便于共享资源请求端(即,向中央服务器请求共享资源的终端)的用户能够方便高效地访问共享资源。应该理解,共享资源请求端可以是移动终端或个人计算机。中央服务器的作用主要有两个,一个是资源定位,一个是协议代理。资源定位是当共享资源请求端按域名来查找共享资源服务器时,中央服务器会通过统一资源定位器(URL)中的二级域名来正确地定位到发起共享的共享资源服务器。协议代理是把共享资源请求端的HTTP协议转换成中央服务器与共享资源服务器的通信协议。共享资源请求端可通过浏览器来查看共享的文件或文件夹以便下载文件或文件夹。The function of the shared resource server is mainly to provide shared resources, which include various files and/or folders including various files, automatically generate a shared resource description file (share_description_file) of the shared resource and upload the shared resource description file to A central server, so that users at the sharing resource requesting end (that is, terminals that request the sharing resource from the central server) can access the sharing resource conveniently and efficiently. It should be understood that the shared resource requesting end may be a mobile terminal or a personal computer. There are two main functions of the central server, one is resource location, and the other is protocol proxy. Resource location means that when a shared resource requester searches for a shared resource server by domain name, the central server will correctly locate the shared resource server that initiated the sharing through the secondary domain name in the Uniform Resource Locator (URL). The protocol proxy is to convert the HTTP protocol of the shared resource request end into the communication protocol between the central server and the shared resource server. The shared resource requester can view the shared files or folders through a browser so as to download the files or folders.
图1是根据本发明示例性实施例的在提供共享服务的终端中设置的共享资源服务器的结构的框图。所述共享资源服务器包括服务器注册模块110、共享资源控制器120、传输共享资源服务器模块130和共享资源管理模块140。FIG. 1 is a block diagram of a structure of a shared resource server provided in a terminal providing a shared service according to an exemplary embodiment of the present invention. The shared resource server includes a
在用户开启共享资源服务器以发布共享资源时,服务器注册模块110通过传输共享资源服务器模块130向中央服务器进行注册。即,注册用于共享资源服务的账号和密码;当注册成功时,中央服务器与传输共享资源服务器模块130保持连接。When the user starts the shared resource server to publish the shared resource, the
共享资源控制器120为用户提供选择/关闭共享资源的用户界面。当用户在用户界面上选择需要共享/关闭共享的资源后,共享资源管理模块140管理本地所有的共享资源,并生成相应的共享资源描述文件,传输共享资源服务器模块130在共享资源控制器120的控制下将共享资源描述文件发送给中央服务器。传输共享资源服务器模块130提供共享资源服务器模块与中央服务器之间的连接、中央服务器与共享资源服务器之间的命令传送和共享资源的传输。The shared
这里,在提供共享资源的终端中设置共享资源服务器,在公网设置中央服务器,如果终端用户想要使用本系统发起共享,则由终端中的服务器注册模块110向中央服务器注册用于共享资源服务的账号。当终端的用户需要向其他用户共享资源时,首先在共享资源控制器120的控制下通过传输共享资源服务器模块130连接中央服务器,即登录中央服务器。如果登录成功,则终端与中央服务器保持连接,中央服务器会给已登录的终端分配一个在该中央服务器域名下的二级域名。这里描述的资源共享系统与传统的共享方法的不同之处在于可以实现远程共享,并且请求共享资源的终端无需安装额外软件,只需要浏览器即可访问到终端上的共享资源,所以请求共享资源的终端的范围大大增加。Here, a shared resource server is set in the terminal providing the shared resource, and a central server is set in the public network. If the terminal user wants to use this system to initiate sharing, the
例如,其他用户B想要读取终端A中的共享资源时,只需要在该用户B所持有的终端的浏览器中输入地址http://a-name.center-server-domain即可在网页中看到终端A提供的共享资源并可下载共享资源。上述URL中a-name表示终端A的用户在中央服务器上的注册的账号名称,这里,该名称可以作为中央服务器域名下的与所述终端A相应的二级域名;center-server-domain表示中央服务器的域名。这样,用户可以将终端A中的资源共享给远程的具有浏览器的任意终端。For example, when another user B wants to read the shared resources in terminal A, he only needs to enter the address http://a-name.center-server-domain in the browser of the terminal held by the user B, and the The shared resources provided by Terminal A can be seen on the web page and can be downloaded. In the above URL, a-name represents the account name registered by the user of terminal A on the central server. Here, the name can be used as the secondary domain name corresponding to the terminal A under the central server domain name; center-server-domain represents the central The domain name of the server. In this way, the user can share the resources in terminal A to any remote terminal with a browser.
其中,在共享资源服务器登录到中央服务器之后,中央服务器会把与该共享资源服务器的连接ID与分配给该共享资源服务器的二级域名的映射关系保存到数据库中,且共享资源服务器同时会把自己待共享的资源的信息形成一个共享资源描述文件,并把该共享资源描述文件发送到中央服务器中,当共享资源请求端通过浏览器连接到中央服务器时,中央服务器会根据二级域名确定共享资源请求端请求的是哪一个共享资源服务器上的资源,中央服务器则会根据相应的共享资源描述文件来生成HTML文件并返回给共享资源请求端,则共享资源请求端的用户将会在浏览器上看到共享资源服务器上共享的资源的相关描述。Among them, after the shared resource server logs into the central server, the central server will save the mapping relationship between the connection ID with the shared resource server and the second-level domain name assigned to the shared resource server in the database, and the shared resource server will also save the The information of the resource to be shared forms a shared resource description file, and sends the shared resource description file to the central server. When the shared resource requester connects to the central server through a browser, the central server will determine the shared resource according to the second-level domain name. Which resource on the shared resource server is requested by the resource requester, the central server will generate an HTML file according to the corresponding shared resource description file and return it to the shared resource requester, then the user of the shared resource requester will be on the browser See Shared Resource Server for a description of resources shared.
图2显示的仅仅是共享资源请求端通过浏览器看到的共享资源服务器上的共享文件的示例页面。该页面是中央服务器通过解析共享资源描述文件动态生成的,图2中所示的仅仅是一个示例,该页面的具体表现形式可以多种多样,只要能清楚地展现出共享资源服务器中的共享文件即可。图2中所示是模仿通过浏览器访问SVN服务器所表现的页面形式。如图2所示,图2中最左边一栏表示共享资源的文件名称或者文件夹名称,而中间一栏则表示文件或文件夹的大小(size)和类型(type),所述类型可表示为文件(file)和文件夹(dir),这里,如果类型是文件,则表示相应的共享资源是文件,如果类型是文件夹,则表示相应的共享资源是文件夹。FIG. 2 shows only an example page of the shared file on the shared resource server seen by the shared resource requesting end through the browser. This page is dynamically generated by the central server by parsing the shared resource description file. What is shown in Figure 2 is just an example. The specific forms of this page can be various, as long as the shared file in the shared resource server That's it. As shown in Figure 2, it imitates the page form displayed by accessing the SVN server through a browser. As shown in Figure 2, the leftmost column in Figure 2 indicates the file name or folder name of the shared resource, while the middle column indicates the size (size) and type (type) of the file or folder, and the type can represent It is a file (file) and a folder (dir). Here, if the type is a file, it means that the corresponding shared resource is a file, and if the type is a folder, it means that the corresponding shared resource is a folder.
共享资源请求端需要下载某个共享文件或文件夹时,点击如图2所示页面中的“下载”链接,当中央服务器收到请求后,在处理该请求的过程中,把该请求转发到共享资源服务器,共享资源服务器收到请求后,即把相应的共享资源发送到中央服务器。在中央服务器接收到共享资源服务器发送来的共享资源后,再通过HTTP响应消息把资源文件返回给共享资源请求端。When the shared resource requester needs to download a shared file or folder, click the "Download" link on the page shown in Figure 2. When the central server receives the request, it forwards the request to Shared resource server, after receiving the request, the shared resource server sends the corresponding shared resource to the central server. After the central server receives the shared resource sent by the shared resource server, it returns the resource file to the shared resource requesting end through an HTTP response message.
图3是共享资源传输的网络结构图。在资源远程共享的情况下,定义了三种网元,中央服务器、共享资源服务器(如图3中所示的共享文件用户)、共享资源请求端(如图3中所示的资源消费用户)。中央服务器在完成文件传输的过程中,起着资源定位与协议代理的作用,所谓协议代理,即是在完成共享资源传输的过程中,一是把共享资源请求端与中央服务器之间的HTTP请求转换成中央服务器与共享资源服务器之间的私有协议,二是把通过私有协议从共享资源服务器返回到中央服务器的共享资源转换成通过HTTP响应返回到共享资源请求端。如图3所示,通过中央服务器的代理,完成共享资源从共享资源服务器到共享资源请求端的远程传输。这里,中央服务器位于公网,而共享资源服务器位于私网,因此中央服务器无法主动寻找共享资源服务器,中央服务器与共享资源服务器之间的连接需要共享资源服务器主动请求连接中央服务器。这里,共享资源服务器与中央服务器之间的连接协议(也即私有协议)即为简单的socket连接,连接之后的通信协议即为使用socket发送的自定义命令。由于网络限制,这里的控制与资源承载使用的同一个Socket连接。Fig. 3 is a network structure diagram of shared resource transmission. In the case of remote sharing of resources, three types of network elements are defined, the central server, the shared resource server (the shared file user shown in Figure 3), and the shared resource requester (the resource consumer user shown in Figure 3) . In the process of completing the file transfer, the central server plays the role of resource positioning and protocol proxy. The so-called protocol proxy means that in the process of completing the shared resource transmission, one is to transfer the HTTP request between the shared resource request end and the central server. It is converted into a private protocol between the central server and the shared resource server, and the second is to convert the shared resource returned from the shared resource server to the central server through the private protocol to return to the shared resource request end through HTTP response. As shown in FIG. 3 , the remote transmission of shared resources from the shared resource server to the shared resource requesting end is completed through the proxy of the central server. Here, the central server is located in the public network, and the shared resource server is located in the private network, so the central server cannot proactively find the shared resource server, and the connection between the central server and the shared resource server requires the shared resource server to actively request to connect to the central server. Here, the connection protocol (that is, the private protocol) between the shared resource server and the central server is a simple socket connection, and the communication protocol after the connection is a custom command sent by using the socket. Due to network limitations, the control here is connected to the same Socket used by the resource bearer.
例如但不作为限制,当共享资源服务器向中央服务器注册用于共享资源服务的账号之后,即与中央服务器保持TCP/IP连接,发布共享资源信息以及传送共享资源,在实现整个通信过程中,定义以下所述的各种命令,若有需要还可以扩展:For example, but not as a limitation, after the shared resource server registers an account for shared resource services with the central server, it maintains a TCP/IP connection with the central server, publishes shared resource information and transmits shared resources. During the entire communication process, the defined The various commands described below can be extended if necessary:
(1)共享资源服务器向中央服务器注册账号(1) The shared resource server registers an account with the central server
REGISTER_COMMAND::=“REGISTER:”user_id“#”passwordREGISTER_COMMAND::="REGISTER:"user_id"#"password
(2)中央服务器向共享资源服务器请求资源(2) The central server requests resources from the shared resource server
GETFILE_COMMAND::=“GETFILE:”file_idGETFILE_COMMAND::="GETFILE:" file_id
(3)共享资源服务器向中央服务器发送资源(3) The shared resource server sends resources to the central server
SENDFILE_COMMAND::=“SENDFILE NAME:”file_name”\nSIZE:”file_size”\n CONTENT:”file_contentSENDFILE_COMMAND::=“SENDFILE NAME:”file_name”\nSIZE:”file_size”\n CONTENT:”file_content
(4)共享资源服务器向中央服务器发布/更新共享资源的信息(4) The shared resource server publishes/updates the information of the shared resource to the central server
UPDATESHARE_COMNAND::=“UPDATESHARESIZE:”file_size”\ncontent:”file_contentUPDATESHARE_COMNAND::=“UPDATESHARESIZE:”file_size”\ncontent:”file_content
(5)共享资源服务器停止共享资源的服务(5) The shared resource server stops the service of the shared resource
STOP_COMMAND::=“STOP”STOP_COMMAND::="STOP"
(6)回复成功消息(6) Reply with success message
SUCCESS_REPLY::=”SUCCESS”SUCCESS_REPLY::="SUCCESS"
(7)回复失败消息(7) Reply failure message
FAILED_REPLY::=“ERROR:”error_code“\n”。FAILED_REPLY::="ERROR: "error_code"\n".
这里,共享资源服务器会监控已共享资源的状态,当发生资源更新时,例如在文件内容发生修改时,共享资源服务器重新向中央服务器发送更新命令:UPDATESHARE_COMNAND::=“UPDATESHARESIZE:”file_size”\ncontent:”file_content;如果文件被删除,则共享资源服务器向中央服务器发送命令:DELETESHARE_COMMAND::=″DELETESHARE_ID:″file_id。换句话说,在已共享资源的状态发生变化时,共享资源服务器会向中央服务器发送一个更新命令来由中央服务器来更新共享资源描述文件。Here, the shared resource server will monitor the status of the shared resource. When a resource update occurs, for example, when the content of the file is modified, the shared resource server will resend the update command to the central server: UPDATESHARE_COMNAND::=“UPDATESHARESIZE:”file_size”\ncontent :"file_content; if the file is deleted, the shared resource server sends a command to the central server: DELETESHARE_COMMAND::="DELETESHARE_ID:"file_id. In other words, when the state of the shared resource changes, the shared resource server will send an update command to the central server so that the central server can update the shared resource description file.
图4是根据本发明示例性实施例的实现共享资源的共享的信号流图。在共享资源时,共享资源服务器首先登录到中央服务器,以能保持共享资源服务器与中央服务器的连接。根据本发明进行终端之间资源的远程共享的流程为:Fig. 4 is a signal flow diagram for implementing sharing of shared resources according to an exemplary embodiment of the present invention. When sharing resources, the shared resource server first logs in to the central server, so as to maintain the connection between the shared resource server and the central server. According to the present invention, the process of remote sharing of resources between terminals is as follows:
在步骤S410,用户A启动终端上的共享资源服务器,并选择需要共享资源,即选择需要共享的文件和/或文件夹,同时共享资源服务器生成相应的共享资源描述文件。In step S410, user A activates the shared resource server on the terminal, and selects resources to be shared, that is, files and/or folders to be shared, and the shared resource server generates corresponding shared resource description files.
在步骤S420,用户A的终端上的共享资源服务器登录中央服务器以与中央服务器保持连接,同时将共享资源描述文件发送给中央服务器。在共享资源服务器登录到中央服务器之后,中央服务器会给已登录的终端分配一个在该中央服务器域名下的二级域名,其他用户可通过该二级域名来共享用户A的共享资源服务器共享的资源。中央服务器会把与该共享资源服务器的连接ID与分配给用户A的共享资源服务器的二级域名的映射关系保存到数据库中。In step S420, the shared resource server on user A's terminal logs in to the central server to maintain a connection with the central server, and at the same time sends the shared resource description file to the central server. After the shared resource server logs in to the central server, the central server will assign a second-level domain name under the domain name of the central server to the logged-in terminal, and other users can use the second-level domain name to share the resources shared by user A’s shared resource server . The central server will save the mapping relationship between the connection ID with the shared resource server and the second-level domain name of the shared resource server assigned to user A in the database.
在步骤S430,共享资源请求端(即用户B的终端装置)连接到中央服务器。例如,共享资源请求端可通过浏览器连接到中央服务器。例如,共享资源请求端在浏览器中输入用户A的共享资源服务器的二级域名(例如,http://a-name.center-server-domain)以查看用户A的共享资源服务器共享的资源。In step S430, the shared resource requester (ie, user B's terminal device) connects to the central server. For example, a shared resource requester can connect to a central server through a browser. For example, the shared resource requester enters the second-level domain name (for example, http://a-name.center-server-domain ) of user A's shared resource server in the browser to view the resources shared by user A's shared resource server.
在步骤S440,中央服务器根据所述共享资源描述文件生成相应的HTML页面返回给共享资源请求端。其中,中央服务器会根据共享资源请求端输入的二级域名来确定共享资源请求端请求的是哪一个共享资源服务器上的资源,从而找到对应的共享资源描述文件来生成对应的HTML页面。In step S440, the central server generates a corresponding HTML page according to the shared resource description file and returns it to the shared resource requesting end. Wherein, the central server will determine which resource on the shared resource server the shared resource requester requests according to the second-level domain name input by the shared resource requester, so as to find the corresponding shared resource description file and generate a corresponding HTML page.
在步骤S450,共享资源请求端通过点击所述HTML页面上的链接来请求想要的共享资源。In step S450, the shared resource requester requests the desired shared resource by clicking on the link on the HTML page.
在步骤S460,中央服务器接收到该对共享资源的请求后,把该请求转发给共享资源服务器。In step S460, after receiving the request for the shared resource, the central server forwards the request to the shared resource server.
在步骤S470,共享资源服务器收到请求后把请求的共享资源发送给中央服务器。In step S470, the shared resource server sends the requested shared resource to the central server after receiving the request.
在步骤S480,中央服务器接收到共享资源后,通过使用HTTP响应消息把共享资源转发给共享资源请求端。In step S480, after receiving the shared resource, the central server forwards the shared resource to the shared resource requester by using an HTTP response message.
本发明的示例性实施例提供了一种远程资源共享的方法,它不需要共享资源请求端安装额外软件,即可在各种平台上方便的访问共享资源。The exemplary embodiment of the present invention provides a method for remote resource sharing, which can conveniently access shared resources on various platforms without installing additional software at the sharing resource requesting end.
尽管已经参照其实施例具体显示和描述了本发明,但是本领域的技术人员应该理解,在不脱离由权利要求限定的本发明的精神和范围的情况下,可以对其进行形式和细节上的各种改变。While the invention has been particularly shown and described with reference to embodiments thereof, it will be understood by those skilled in the art that changes may be made in form and detail without departing from the spirit and scope of the invention as defined by the claims. Various changes.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210385469.2A CN103731400A (en) | 2012-10-12 | 2012-10-12 | Resource sharing system and method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210385469.2A CN103731400A (en) | 2012-10-12 | 2012-10-12 | Resource sharing system and method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN103731400A true CN103731400A (en) | 2014-04-16 |
Family
ID=50455331
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210385469.2A Pending CN103731400A (en) | 2012-10-12 | 2012-10-12 | Resource sharing system and method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103731400A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106254572A (en) * | 2016-09-05 | 2016-12-21 | 深圳Tcl新技术有限公司 | Resource share method, Apparatus and system |
| CN107682453A (en) * | 2017-11-02 | 2018-02-09 | 郑州云海信息技术有限公司 | A kind of file sharing method based on HTTP, system and equipment |
| CN110071970A (en) * | 2019-04-19 | 2019-07-30 | 重庆邮电大学 | The method of private data networkization storage |
| CN111752726A (en) * | 2020-06-25 | 2020-10-09 | 武汉众邦银行股份有限公司 | Method for quickly and crossly sharing data among multiple systems |
Citations (16)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2004099933A2 (en) * | 2003-05-01 | 2004-11-18 | Long, Jim | Network meeting system |
| CN1599346A (en) * | 2004-08-11 | 2005-03-23 | 重庆大学 | Realizing method of reciprocity network architecture structure based on field name |
| CN1794725A (en) * | 2005-12-29 | 2006-06-28 | 华中师范大学 | Embedded type mobile web server |
| CN1864389A (en) * | 2003-10-23 | 2006-11-15 | 思科技术公司 | Methods and devices for sharing content on a network |
| CN101022346A (en) * | 2006-12-30 | 2007-08-22 | 陈卫文 | Electronic documant coordination downloading system and method |
| CN101079709A (en) * | 2006-06-15 | 2007-11-28 | 腾讯科技(深圳)有限公司 | Single-node-to-multi-node concurrent download system and method |
| CN101110032A (en) * | 2007-08-24 | 2008-01-23 | 张建中 | Method for creating multidimensional operating system and device thereof |
| CN101163087A (en) * | 2006-10-13 | 2008-04-16 | 风网科技(北京)有限公司 | System and method for sharing mobile terminal video document |
| CN101188862A (en) * | 2007-03-01 | 2008-05-28 | 中兴通讯股份有限公司 | A routing method in wireless network |
| CN101222487A (en) * | 2007-01-09 | 2008-07-16 | 乐金电子(中国)研究开发中心有限公司 | System, method and mobile terminal for establishing website on mobile terminal |
| US20080288609A1 (en) * | 2007-05-16 | 2008-11-20 | International Business Machines Corporation | Dynamic Data Access in a Computer System via Remote Services |
| CN101425076A (en) * | 2001-06-15 | 2009-05-06 | 索尼电影娱乐公司 | Content management system and process |
| CN101626385A (en) * | 2009-08-10 | 2010-01-13 | 中兴通讯股份有限公司 | Media service method and media service system |
| CN101800735A (en) * | 2009-02-05 | 2010-08-11 | 李冰 | Method for establishing WWW with dynamic characteristic |
| CN102165473A (en) * | 2008-07-23 | 2011-08-24 | 谷歌公司 | Video promotion in a video sharing site |
| US8037157B2 (en) * | 2008-01-30 | 2011-10-11 | International Business Machines Corporation | Apparatus and method for generating and using a customized uniform resource locator |
-
2012
- 2012-10-12 CN CN201210385469.2A patent/CN103731400A/en active Pending
Patent Citations (16)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101425076A (en) * | 2001-06-15 | 2009-05-06 | 索尼电影娱乐公司 | Content management system and process |
| WO2004099933A2 (en) * | 2003-05-01 | 2004-11-18 | Long, Jim | Network meeting system |
| CN1864389A (en) * | 2003-10-23 | 2006-11-15 | 思科技术公司 | Methods and devices for sharing content on a network |
| CN1599346A (en) * | 2004-08-11 | 2005-03-23 | 重庆大学 | Realizing method of reciprocity network architecture structure based on field name |
| CN1794725A (en) * | 2005-12-29 | 2006-06-28 | 华中师范大学 | Embedded type mobile web server |
| CN101079709A (en) * | 2006-06-15 | 2007-11-28 | 腾讯科技(深圳)有限公司 | Single-node-to-multi-node concurrent download system and method |
| CN101163087A (en) * | 2006-10-13 | 2008-04-16 | 风网科技(北京)有限公司 | System and method for sharing mobile terminal video document |
| CN101022346A (en) * | 2006-12-30 | 2007-08-22 | 陈卫文 | Electronic documant coordination downloading system and method |
| CN101222487A (en) * | 2007-01-09 | 2008-07-16 | 乐金电子(中国)研究开发中心有限公司 | System, method and mobile terminal for establishing website on mobile terminal |
| CN101188862A (en) * | 2007-03-01 | 2008-05-28 | 中兴通讯股份有限公司 | A routing method in wireless network |
| US20080288609A1 (en) * | 2007-05-16 | 2008-11-20 | International Business Machines Corporation | Dynamic Data Access in a Computer System via Remote Services |
| CN101110032A (en) * | 2007-08-24 | 2008-01-23 | 张建中 | Method for creating multidimensional operating system and device thereof |
| US8037157B2 (en) * | 2008-01-30 | 2011-10-11 | International Business Machines Corporation | Apparatus and method for generating and using a customized uniform resource locator |
| CN102165473A (en) * | 2008-07-23 | 2011-08-24 | 谷歌公司 | Video promotion in a video sharing site |
| CN101800735A (en) * | 2009-02-05 | 2010-08-11 | 李冰 | Method for establishing WWW with dynamic characteristic |
| CN101626385A (en) * | 2009-08-10 | 2010-01-13 | 中兴通讯股份有限公司 | Media service method and media service system |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106254572A (en) * | 2016-09-05 | 2016-12-21 | 深圳Tcl新技术有限公司 | Resource share method, Apparatus and system |
| CN107682453A (en) * | 2017-11-02 | 2018-02-09 | 郑州云海信息技术有限公司 | A kind of file sharing method based on HTTP, system and equipment |
| CN110071970A (en) * | 2019-04-19 | 2019-07-30 | 重庆邮电大学 | The method of private data networkization storage |
| CN111752726A (en) * | 2020-06-25 | 2020-10-09 | 武汉众邦银行股份有限公司 | Method for quickly and crossly sharing data among multiple systems |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11303717B2 (en) | Processing DNS queries to identify pre-processing information | |
| US10331501B2 (en) | USB device redirection for remote systems | |
| EP3017579B1 (en) | System and device for enabling any network functionality client or server in a html5 application | |
| US8499083B2 (en) | Relay device and communication system | |
| US10455030B2 (en) | Content delivery system and method using anycast or unicast address | |
| US9160703B2 (en) | Request routing management based on network components | |
| EP2266064B1 (en) | Request routing | |
| US8010598B2 (en) | Relay server and client terminal | |
| US20100042724A1 (en) | Contents delivery system and method, web server and contents provider dns server thereof | |
| US20110153736A1 (en) | Request routing using network computing components | |
| US20150334082A1 (en) | Request routing management based on network components | |
| US20130346591A1 (en) | Clientless Cloud Computing | |
| WO2022262465A1 (en) | Opc ua-based centralized user configuration method and system for time sensitive network | |
| CN109729187B (en) | Proxy communication method, system, device and storage medium | |
| CN102143204A (en) | Method, device and system for realizing reorientation of hypertext transfer protocol in content delivery network | |
| US10135668B2 (en) | Method, device, system and network architecture for handling a service request | |
| CN103731400A (en) | Resource sharing system and method | |
| US9292358B2 (en) | Remotely retrieving information from consumer devices | |
| US8301781B1 (en) | Methods and systems for browser file transfer | |
| CN105069012B (en) | A kind of file access method and system | |
| CN109600452B (en) | Server cluster, message pushing method and related server | |
| CN114500487B (en) | End-to-end hypertext transfer protocol conversion method | |
| JP5140107B2 (en) | Media session termination method and program, and media session termination device | |
| KR100706961B1 (en) | Method and system for providing blog service using equal layer communication | |
| CN101789914B (en) | Peer-to-peer communication device and method using peer-to-peer proxy service |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140416 |