CN103491184A - Data transmission method, device and system - Google Patents

Data transmission method, device and system Download PDF

Info

Publication number
CN103491184A
CN103491184A CN 201310456279 CN201310456279A CN103491184A CN 103491184 A CN103491184 A CN 103491184A CN 201310456279 CN201310456279 CN 201310456279 CN 201310456279 A CN201310456279 A CN 201310456279A CN 103491184 A CN103491184 A CN 103491184A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
data
client
side
transmission
method
Prior art date
Application number
CN 201310456279
Other languages
Chinese (zh)
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

Links

Abstract

The invention provides a data transmission method, device and system. The data transmission method is used for data transmission between a first client side and a second client side, and comprises the steps that data and identification information of the data in a first client side are transmitted to a first server, the first server transmits the identification information of the data to a long-connection server determined by the identification information of the first client side, and the data of the first client side are judged if transmitted to a second client side according to the long-connection state between the second client side and the long-connection server. By means of the method, device and system, the problem that data transmission can not be carried out between different client sides is solved.

Description

数据传输方法、设备及系统 Data transmission method, device, and system

技术领域 FIELD

[0001] 本发明涉及互联网应用领域,特别是涉及一种数据传输方法、设备及系统。 [0001] The present invention relates to the field of Internet applications, particularly relates to a data transmission method, device and system.

背景技术 Background technique

[0002] 在互联网日益发达的今天,用户能够使用的客户端越来越多,并且能够在不同的终端上启用相同类型的客户端,应用相同的功能。 [0002] In the Internet increasingly developed today, users can use the client more and more, and can enable the same type of clients on different terminals, the same application functionality.

[0003] 用户在使用某一类客户端时,会出现从一个终端转向另一个终端的情况,相应的,该用户会从一个客户端转向另一个客户端。 [0003] user using a certain type of client, the steering from one terminal to another terminal will, correspondingly, the user will turn to another client from a client. 在现有技术中,由于不同客户端存储的数据不同,每启用一个新的客户端,用户需要重新将用户需求输入到新的客户端中。 In the prior art, due to the different data stored in different clients, each enabled a new client, the user will need to re-enter the user needs to the new client. 而新客户端执行用户需求以获取用户所需要的信息,与之前的客户端执行用户需求的操作在一定程度上是重复的,获取的信息部分也是重复的,因此会造成两个客户端的操作以及数据冗余,浪费大量的资源,且使得用户需求得到满足的时延变长,效率较低。 The new client performs user demand for information needed by the user, with the previous client perform user demand to a certain extent is repeated, the information acquisition section is repeated, thus giving the operation of two clients and data redundancy, waste of resources, that the user needs are met and the delay becomes longer, less efficient.

发明内容 SUMMARY

[0004] 鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的数据传输的方法、设备和相应的数据传输系统。 [0004] In view of the above problems, the present invention is proposed in order to overcome the above problems or to provide an at least partially solve the problems of the data transmission method, apparatus and a corresponding data transmission system.

[0005] 依据本发明的一个方面,提供了一种数据传输方法,应用于第一客户端与第二客户端间能够进行数据传输的情况,包括:将所述第一客户端中的数据及其标识信息传输至第一服务器,由所述第一服务器转发至根据所述第一客户端的标识信息确定的长连接服务器;根据所述第二客户端与所述长连接服务器的长连接状态,确定是否将所述第一客户端的数据转发至所述第二客户端。 [0005] According to an aspect of the present invention, there is provided a data transmission method, applied to a case capable of data transmission between a first client and a second client, comprising: the data of the first client and its identification information to the first server, said first server forwards a long connection to the server according to the identification information of the first client determined; according to the second client-server connection status of the connection length of the long, determining whether the data of the second client to the first client forwarding.

[0006] 可选地,由所述第一服务器转发所述第一客户端中的数据及其标识信息至根据所述第一客户端的标识信息确定的长连接服务器,包括:由所述第一服务器对所述第一客户端中的数据及其标识信息进行安全性验证;将通过安全性验证的所述第一客户端中的数据及其标识信息转发至所述长连接服务器。 [0006] Alternatively, forwarded by the first server the first data and the identification information of the client according to identification information of long connection server to determine the first client, comprising: a first the data in the first server in the client identification information and the security authentication; forwarding said data by a first security authentication client and the identification information to the long connection server.

[0007] 可选地,通过安全性验证的所述第一客户端的数据为非恶意数据,通过安全性验证的所述第一客户端的标识信息为在所述第一服务器中已注册的所述第一客户端的标识信息。 [0007] Alternatively, said security validation data through a first non-malicious client data, through the identification information of the first security authentication client is registered in the first server identification information of the first client.

[0008] 可选地,根据所述第二客户端与所述长连接服务器的长连接状态,确定是否将所述第一客户端的数据转发至所述第二客户端,包括:所述第二客户端与所述长连接服务器的长连接状态为连接状态时,将所述第一客户端的数据转发至所述第二客户端;所述第二客户端与所述长连接服务器的长连接状态为非连接状态时,在所述长连接服务器中存储所述第一客户端中的数据;以及,当所述第二客户端与所述长连接服务器之间的长连接状态从非连接状态转为连接状态时,由所述长连接服务器将已存储的所述第一客户端中的数据发送至所述第二客户端。 [0008] Alternatively, according to the second client and the server state of connection of long length, and determining whether to forward the data to the first client of the second client, comprising: a second when the client and the server state of connection of long length is connected state, the data of the first client to the second client forwards; persistent connection state of the second client and the server are connected long when the non-connected state, the data stored in the first client in the long connection server; and, when the length of the connection state between the second client and the server are connected long transfer from the non-connected state is in the connected state, the data of the first client by a server connected to the long-stored transmitted to the second client.

[0009] 可选地,按照如下步骤在所述第二客户端与所述长连接服务器间建立长连接,包括:所述第二客户端根据所述第二客户端的标识信息请求与所述长连接服务器建立长连接;所述长连接服务器根据所述第二客户端的标识信息对所述第二客户端进行身份验证;所述长连接服务器与通过所述身份验证的所述第二客户端建立长连接。 [0009] Alternatively, the following procedure to establish long connection between the client and the second long connection server, comprising: a second client request in accordance with the length of the second identification information of the client long connection server establishes a connection; the length of the connection server to authenticate the second client according to the identification information of the second client; the long connection to the server via the established second authenticated client Long connection.

[0010] 可选地,所述长连接服务器还根据所述第二客户端所位于的终端的设备信息进行身份验证。 [0010] Alternatively, the long connection authentication server further information apparatus according to the second client terminal is located.

[0011] 可选地,所述设备信息包括下列至少之一:所述终端的国际移动设备身份码IMEI号码;所述终端的设备名称;所述终端的系统版本号。 [0011] Alternatively, the device information comprises at least one of the following: International Mobile Equipment Identity (IMEI) number of the terminal; the name of the terminal apparatus; system version number of the terminal.

[0012] 可选地,所述第二客户端与所述长连接服务器的长连接状态的确定方式包括:在所述长连接服务器存储的在线设备列表中查询所述第二客户端与所述长连接服务器间的长连接状态,其中,所述在线设备列表中存储有与所述长连接服务器已建立长连接的各客户端的标识信息;若查询到所述第二客户端的标识信息,则确定所述第二客户端与所述长连接服务器的长连接状态为连接状态;若未查询到所述第二客户端的标识信息,则确定所述第二客户端与所述长连接服务器的长连接状态为非连接状态。 [0012] Alternatively, the second embodiment determines the connection state of the client and the length of the long connection server comprises: querying the client and the second in the list of online device connected to the server stored in the long long long connection state between the connection server, wherein the stored list of online devices of the long established connection server identification information for each client connection length; if the query to the second client identification information, it is determined the second client of the long length state of connection of the server connected state; if not query the identification information of the second client, determining that the connection length of the long second client connection to the server state disconnected state.

[0013] 可选地,所述第一客户端中的数据包括下列至少之一:所述第一客户端的收藏夹中收藏的各网址;所述第一客户端的常用网址;所述第一客户端当前打开的网页;所述第一客户端根据用户指令调用的用户数据。 [0013] Alternatively, the first client data comprises at least one of the following: the URL of each of the first favorites collection client; the first URL common client; the first client end of the currently open page; the user data of the first client calls according to a user instruction.

[0014] 可选地,所述第一客户端与所述第二客户端具备相同的标识信息。 [0014] Alternatively, the first client and the second client includes the same identification information.

[0015] 可选地,所述标识信息包括:所述第一客户端的用户登陆的账户信息;为所述第一客户端生成的唯一标识。 [0015] Alternatively, the identification information comprises: the first client account information of the user's login; unique identifier generated for the first client.

[0016] 可选地,所述第一服务器通过超文本传输协议HTTP请求与所述长连接服务器通ί目。 [0016] Alternatively, the first server through Hypertext Transfer Protocol HTTP requests to the connection server through a long ί mesh.

[0017] 可选地,所述第一客户端和/或第二客户端设置于移动终端中。 [0017] Alternatively, the first client and / or the second client is provided in the mobile terminal.

[0018] 依据本发明的另一个方面,还提供了一种客户端,应用于本客户端与其他客户端间能够进行数据传输的情况,包括:数据获取器,配置为获取本客户端的数据及其标识信息;数据传输器,配置为传输所述数据获取器获取的本客户端中的数据及其标识信息至第一服务器,由所述第一服务器转发至根据本客户端的标识信息确定的长连接服务器,并根据其他客户端与所述长连接服务器的长连接状态,确定是否将本客户端中的数据转发至所述其他客户端。 [0018] According to another aspect of the present invention, there is provided a client, can be applied to the case where the present data transmission between the client and the other clients, comprising: a data acquirer configured to acquire data about the client and its identification information; data transmitter configured to transmit the data acquisition client acquires the present data of the identification information to the first server and are forwarded to the first server determined by the client identification information according long connect to the server and other clients in accordance with the state of connection of long length to the server, it determines whether the data present in the client forwarded to the other clients.

[0019] 可选地,还包括:数据接收器,配置为接收所述长连接服务器转发的、来自所述其他客户端的数据。 [0019] Optionally, further comprising: a data receiver, configured to receive the forwarded long connection server, the data from other clients.

[0020] 可选地,所述数据传输器还配置为:将本客户端中的数据及其标识信息发送至所述第一服务器,由所述第一服务器对本客户端中的数据及其标识信息进行安全性验证,并由所述第一服务器将通过安全性验证的本客户端中的数据及其标识信息发送至所述长连接服务器。 [0020] Alternatively, the data transmitter further configured to: transmit the data and present the identification information to the client in the first server from the first server to the data present in the client and identification information security verification, by said first data server in the present by the client security validation and identification information to the long connection server.

[0021] 可选地,通过安全性验证的本客户端的数据为非恶意数据,通过安全性验证的本客户端的标识信息为在所述第一服务器中已注册的本客户端的标识信息。 [0021] Alternatively, the data about the client through non-malicious security validation data, by the identification information about the client security verification information for identifying the first server has been registered according to the client.

[0022] 可选地,本客户端和/或所述其他客户端设置于移动终端中。 [0022] Alternatively, the client and / or the other client in the mobile terminal is provided.

[0023] 可选地,本客户端中的数据包括下列至少之一:本客户端的收藏夹中收藏的各网址;本客户端的常用网址;本客户端当前打开的网页;本客户端根据用户指令调用的用户数据。 [0023] Alternatively, the data present in the client includes at least one of: the present client's favorites each URL collections; common website of the client; this client page currently open; this client according to user instructions user data calls.

[0024] 依据本发明的另一个方面,还提供了一种数据传输系统,应用于第一客户端与第二客户端间能够进行数据传输的情况,包括第一客户端,第二客户端,根据所述第一客户端的标识信息确定的长连接服务器以及第一服务器,其中,所述第一客户端,配置为传输所述第一客户端中的数据及其标识信息至第一服务器;所述第一服务器,配置为接收所述第一客户端发送的数据及其标识信息,并转发至所述长连接服务器;所述长连接服务器,配置为与所述第二客户端建立长连接;以及,接收所述第一服务器转发的所述第一客户端中的数据及其标识信息,根据所述第二客户端与所述长连接服务器的长连接状态,确定是否将所述第一客户端的数据转发至所述第二客户端;所述第二客户端,配置为接收经所述长连接服务器发送的数据。 [0024] According to another aspect of the present invention, there is provided a data transmission system, can be applied to a case where data transfer between a first client and a second client, comprising a first client, a second client, the identification information of the first client and determining the length of a first server connected to the server, wherein the first client is configured to transmit the first data and the client identification information to the first server; the said first server is configured to receive the first data sent by the client and identification information, and forwarded to a long connection to the server; the long connection server configured to communicate with the second client to establish a long connection; and, receiving the first data forwarded by the server and the identification information of the first client, the second connection state according to the length of the long client connection to the server, determining whether the first client forwarding the data terminal to the second client; the second client, the server is configured to receive data transmitted from the long connection.

[0025] 依据本发明实施例,第一客户端能够发送数据至第二客户端,实现了第一客户端向第二客户端进行数据传输,解决了现有技术提到的客户端间无法进行数据传输的问题,进一步解决因不同客户端间无法进行数据传输,新客户端启用时必须重新引入用户需求,从而导致资源浪费以及效率低下的问题。 [0025] According to an embodiment of the present invention, a first client to transmit data to the second client, the first client implements data transmission to a second client, that can not be resolved between the client prior art mentioned the problem of data transmission, further address the data can not be transmitted between different clients, new customers must re-introduced when the user needs to enable end, resulting in a waste of resources and low efficiency.

[0026] 上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。 [0026] The above description is only an overview of the technical solution of the present invention, in order to more fully understood from the present invention, but may be implemented in accordance with the contents of the specification, and in order to make the aforementioned and other objects, features and advantages of the present invention can be more apparent from the following specific embodiments cite Patent of the present invention.

[0027] 根据下文结合附图对本发明具体实施例的详细描述,本领域技术人员将会更加明了本发明的上述以及其他目的、优点和特征。 [0027] The accompanying drawings in conjunction with the detailed description of specific embodiments of the present invention Hereinafter, the present will become more apparent to those skilled above and other objects, advantages and features of the invention.

附图说明 BRIEF DESCRIPTION

[0028] 通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。 [0028] By reading the following detailed description of preferred embodiments Hereinafter, a variety of other advantages and benefits to those of ordinary skill in the art will become apparent. 附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。 The drawings are only for purposes of illustrating a preferred embodiment and are not to be considered limiting of the present invention. 而且在整个附图中,用相同的参考符号表示相同的部件。 But throughout the drawings, like parts with the same reference symbols. 在附图中: In the drawings:

[0029] 图1示出了根据本发明一个实施例的数据传输方法的处理流程图; [0029] FIG 1 illustrates a process flow diagram illustrating a data transmission method according to an embodiment of the present invention;

[0030] 图2示出了根据本发明一个实施例的客户端的结构示意图; [0030] FIG. 2 shows a schematic structural diagram of a client according to the present embodiment of the invention, end;

[0031] 图3示出了根据本发明一个优选实施例的数据传输方法流程图; [0031] FIG. 3 shows a flowchart of a data transmission method of the present invention, a preferred embodiment;

[0032] 图4示出了根据本发明另一个优选实施例的数据传输方法流程图;以及 [0032] FIG. 4 shows a flowchart of a data transmission method according to another preferred embodiment of the present invention; and

[0033] 图5示出了根据本发明一个实施例的数据传输系统的结构示意图。 [0033] FIG. 5 shows a schematic structural diagram of a data transmission system according to an embodiment of the present invention.

具体实施方式 detailed description

[0034] 下面将参照附图更详细地描述本公开的示例性实施例。 [0034] The following exemplary embodiments of the present disclosure will be described in more detail with reference to the drawings. 虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。 While the exemplary embodiment shows an exemplary embodiment of the present disclosure in the drawings, it should be understood that the present disclosure may be implemented embodiments and should not be set forth herein to limit in various forms. 相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。 Rather, these embodiments are able to more thorough understanding of the present disclosure, and the scope of the present disclosure can be completely conveying to those skilled in the art.

[0035] 为解决上述技术问题,本发明实施例提供了一种数据传输方法,应用于第一客户端与第二客户端之间已建立数据传输的通道的情况,g卩,第一客户端与第二客户端之间能够进行数据传输,本发明实施例旨在说明第一客户端与第二客户端之间进行数据传输的具体过程。 [0035] To solve the above problems, embodiments of the present invention provides a data transmission method, where the data transmission channel has been established between the first client and applied to a second client, g Jie, the first client between the second client and the data transmission can be performed, it is intended to illustrate specific embodiments of the process for transferring data between the first client and the second client of the present invention. [0036] 图1示出了根据本发明一个实施例的数据传输方法的处理流程图。 [0036] FIG 1 illustrates a process flow diagram illustrating a data transmission method according to an embodiment of the present invention. 如图1所示,该数据传输方法的处理流程起始于步骤S102,将第一客户端中的数据及其标识信息传输至第一服务器。 As shown in FIG. 1, a process flow of the data transmission method starts at step S102, the first client data and the identification information transmitted to the first server. 第一服务器接收到第一客户端的数据及其标识信息之后,触发步骤S104。 After receiving the first server the first data and the identification information of the client, the triggering step S104.

[0037] 在步骤S104中,第一服务器根据第一客户端的标识信息确定对应的长连接服务器,并将第一客户端中的数据及其标识信息转发至对应的长连接服务器。 [0037] In step S104, the server determines a first length corresponding to the connection server according to the identification information of the first client, the first client and forwards the data and the identification information corresponding to the long connection server. 当长连接服务器接收到第一服务器发送的第一客户端的数据及其标识信息之后,执行步骤S106,根据第二客户端与长连接服务器的长连接状态,确定是否将第一客户端的数据转发至第二客户端。 When the server receives the long connection data of the first client and the first identification information sent by the server, performs step S106, in accordance with the connection state of long length and a second client connection to the server, determines whether to forward the data to the first client The second client.

[0038] 依据本发明实施例,第一客户端能够发送数据至第二客户端,实现了第一客户端向第二客户端进行数据传输,解决了现有技术提到的客户端间无法进行数据传输的问题,进一步解决因不同客户端间无法进行数据传输,新客户端启用时必须重新引入用户需求,从而导致资源浪费以及效率低下的问题。 [0038] According to an embodiment of the present invention, a first client to transmit data to the second client, the first client implements data transmission to a second client, that can not be resolved between the client prior art mentioned the problem of data transmission, further address the data can not be transmitted between different clients, new customers must re-introduced when the user needs to enable end, resulting in a waste of resources and low efficiency.

[0039]为将本发明实施例阐述得更加清楚简洁,本发明实施例中,将第一客户端设置于第一终端,将第二客户端设置于第二终端。 [0039] The illustrated embodiment of the invention will be more clearly simple, embodiment of the present invention, the first terminal disposed on the first client, the second client is provided to the second terminal. 由图1所示的流程可知,在数据传输过程中,第一客户端中的数据传输至第二客户端需要经过服务器等路由转发。 The flow shown in FIG. 1 can be seen, during data transfer, the data transfer of the first client to the second client to go through the route server forwarding the like. 现对其第一客户端将第一客户端中的数据传输至第二客户端的传输过程进行具体说明。 Now the first client transmits its data during the transmission of the first client to the second client will be specifically described.

[0040] 首先,执行如图1所示的步骤S102,第一客户端将第一客户端中的数据及其标识信息发送至第一服务器,此处的第一服务器为第一终端所对应的服务器。 [0040] First, the steps shown in FIG. 1 S102, the first client sends the data in the client and a first identification information to the first server, the first server to the first terminal where the corresponding server. 例如,若第一终端为个人计算机(Personal Computer,以下简称PC),则第一服务器为PC服务器。 For example, if the first terminal is a PC (Personal Computer, hereinafter referred to as PC), then the first server is a PC server. 其次,执行步骤S104,第一服务器接收到第一客户端的数据之后,对第一客户端的数据进行合法性验证。 Secondly, the implementation of step S104, after the first server receives the data of the first client, the first client data to verify legitimacy. 优选的,本发明实施例中,第一服务器对上述数据中第一客户端的标识信息进行验证,确定第一客户端的标识信息是否为合法信息,例如验证该标识信息是否已在客户端中心注册,或者是该标识信息是否是服务器内部生成的标识符。 Preferably, the embodiment of the present invention, the first server identification information of the first client data to verify the identification information of the first client to determine whether the information is valid, for example, to verify that the identification information has been registered at the center of the client, or whether the server identification information internally generated identifier. 若该标识信息经验证是合法信息,则第一服务器将该标识信息传输至长连接服务器,若该标识信息不是合法信息,则第一服务器拒绝将该标识信息发送至长连接服务器。 If the identification information is verified valid information, the first identification information to the server the long connection to the server, if the identification information is not valid information, the server rejects the first identification information to the long connection server.

[0041] 同样,第一服务器还可以对数据中除标识信息外的其他数据进行合法性验证,例如,验证第一客户端的网页数据等,是否为非恶意数据。 [0041] Also, the first server may also verify the legitimacy of the other data in addition to the data identification information, e.g., data verification page of the first client, if a non-malicious data. 本发明实施例中,恶意数据指对用户终端内的数据进行窃取、毁坏等非法行为的病毒、木马等等。 Embodiments of the present invention, malicious data refers to data in the user terminal steal, destroy illegal acts like a virus, trojan like. 若第一服务器验证第一客户端的数据是上述恶意数据,则第一服务器拒绝将该恶意数据传输至长连接服务器,若经第一服务器的验证,第一客户端的数据是非恶意数据,则第一服务器将该数据传输至长连接服务器。 If the first authentication data the first client server is malicious data above, the first server rejects the connection length malicious data to the server, if the authentication by the first server, the first client data non-malicious data, the first the length of data to a server connected to the server. 优选的,本发明实施例中,第一客户端的数据经合法性验证之后,第一服务器还可以对第一客户端的数据进行加密处理,更加有效地提高数据传输的安全性。 Preferably, the embodiment of the invention, the data after the first client via the legality verification, the first server may also be encrypted on the data of the first client, to more effectively improve the security of data transmission. 通过第一服务器对第一客户端的数据进行安全性验证及处理,能够更加有效地保证传输数据的安全性,防止在数据传输的过程中,一些恶意网址等附加到传输的数据中,对用户的终端或者客户端造成损害。 A first server data by the first client and the security verification process, can be more effectively ensure the security of data transmission, to prevent the process of data transmission, and other malicious URLs attached to the data transmission, the user The client terminal or damage.

[0042] 第一服务器对第一客户端的数据进行合法性验证之后,将经过合法性验证的数据发送至对应的长连接服务器。 [0042] After the first data of the first server verify the legitimacy of the client to send to the corresponding server connected via long legality verification data. 第一服务器与长连接服务器可以通过多种协议进行通信,例如,传输控制协议、用户数据报协议等。 The first long link server server can communicate through multiple protocols, e.g., transmission control protocol, user datagram protocol. 优选的,本发明实施例中,第一服务器与长连接服务器通过超文本传输协议(Hypertext transfer protocol,以下简称HTTP)请求通信。 Preferred embodiments of the present invention, a first server connected to the server via the long hypertext transfer protocol (Hypertext transfer protocol, hereinafter referred to as HTTP) request communication. HTTP支持多种服务器模式、简单快速,因此通过HTTP请求通知能够提高数据传输效率。 HTTP server supports multiple modes, simple and rapid, thus HTTP request notification data transmission efficiency can be improved. [0043] 当长连接服务器接收到经第一服务器发送的第一客户端中的数据及其标识信息时,长连接服务器根据第一客户端的标识信息确定对应的第二客户端,并根据长连接服务器存储的在线设备列表中记录的信息确定与第二客户端之间长连接的状态。 [0043] When the server receives the connection data length of the identification information and the first client via the first server in the transmission, the server determines a second connecting length corresponding to the client according to the identification information of the first client, and in accordance with a long connection online device information list stored in the server to define the recorded state between the client and the second long link.

[0044] 长连接服务器中存储的在线设备列表记录与该长连接服务器保持长连接的各个客户端的标识信息。 [0044] The device list stored in the server is connected online with the identification information of the recording holding each client connected to the elongated length of the connection server. 若某一个客户端与该长连接服务器之间的长连接断开,则在长连接服务器的在线设备列表中删除已断开的客户端对应的标识信息。 If a client is disconnected from a long length of the connection between the connection server, deleting the identification information of the disconnected client device corresponding to the long-line connection in the list server. 本发明实施例中,长连接服务器中存储的在线设备列表能够实时更新,保证长连接服务器能够及时更新与其建立长连接的客户端的信息,避免因在线设备列表数据更新不及时导致向已断开的客户端发送数据,导致数据包丢失等恶性后果,提高数据传输的安全性。 Embodiments of the present invention, a list of online device long connections stored in the server can be updated in real time, to ensure long connection to the server can update its setup information client long link, to avoid online apparatus list data not updating cause a disconnect to have the the client sends data, resulting in data packet loss and other serious consequences, improve the security of data transmission.

[0045] 长连接服务器确定是否发送第一客户端中的数据至第二客户端的具体方式为,若根据长连接服务器的在线设备列表,长连接服务器与第二客户端之间长连接的状态为连接,长连接服务器将第一客户端的数据发送至第二客户端。 [0045] The long connection server determines whether to send data to a first client specific embodiment of the second client, if the device list according to the state between the long-line connection to the server, the server is connected to the long length of the second client is connected connection, long connection data server to the first client sending a second client. 若根据长连接服务器的在线设备列表,长连接服务器与第二客户端之间此长连接的状态为断开,则在该长连接服务器中存储第一客户端的数据,然后,待该长连接的状态恢复之后,再将长连接服务器中存储的第一客户端的数据发送至第二客户端。 If this is the OFF state in accordance with a long list of online devices long connection between the server, the server long connection with a second client connection, the client stores the first data in the long connection server, and then to be connected to the elongated data of the first client state after recovery, and then stored in a server connected to the long sent to the second client.

[0046] 本发明实施例中,第一客户端与第二客户端之间已建立数据传输通道,能够进行数据传输,优选的,第一客户端向第二客户端发送数据时可以首先发送第一客户端的标识信息,以便数据发送过程中经过的服务器(如第一服务器、长连接服务器)等能够根据标识信息确认对应的数据接收端,其次第一客户端向第二客户端发送第一客户端中除标识信息外的其他数据,实现第一客户端向第二客户端传输数据的过程。 You may first send the first embodiment, when a data transmission channel has been established between the first client and the second client, capable of data transmission, preferably, the first client sends the client data to the second [0046] embodiment of the present invention identification information of a client, so that data transmission through the server process (e.g., a first server, the server connection length) or the like can confirm information according to the identification data corresponding to the receiving end, followed by a first client sends the first client to the second client in addition to the other end of the data identification information, the first client process to achieve data transmission to the second client.

[0047] 由上述可知,在数据传输过程中,第二客户端与长连接服务器建立长连接,以便从长连接服务器处接收第一客户端中的数据。 [0047] From the foregoing, during the data transfer, the client and the second server to establish a long link length is connected to receive data from the first client is a long connection server. 现具体介绍第二客户端与长连接服务器建立长连接的过程。 Specific now introduce a second client connection to the server with the long process of establishing a long connection.

[0048] 第二客户端根据第二客户端的标识信息确定对应的长连接服务器,并向该长连接服务器发送连接建立请求,该连接建立请求中携带有第二客户端的标识信息。 [0048] The second client is determined according to the identification information of the second client connected to the server corresponding to the length, and the length of the connection server sends a connection establishment request, the connection establishment request carries the identifier information of the second client. 长连接服务器接收到第二客户端发送的连接建立请求之后,长连接服务器根据连接建立请求中携带的第二客户端的标识信息对第二客户端进行身份验证。 A long connection to the server after receiving a second connection establishment request sent by the client, the server establishes the identity of long connection information of the second client carried in the connection request to the second client authentication. 优选的,本发明实施例中,长连接服务器还可以根据第二客户端的其他设备信息对第二客户端进行身份验证,以保证该第二客户端为接收第一客户端中的数据的接收端。 Preferred embodiments of the present invention, the long connection server may also authenticate the second client device based on other information of the second client, the first client to ensure that the data received by the receiving ends of the second client terminal . 第二客户端的其他设备信息可以是第二客户端的设备信息,还可以是第二终端的设备信息,优选的,本发明实施例中,其他设备信息包括第二终端的国际移动设备身份码(International Mobile Equipment Identity,以下简称IMEI号码)、第二终端的设备名称以及第二终端的系统版本号。 Other information of the second client device may be information of the second client device, the device may also be information of the second terminal, preferred embodiment of the present invention, the other device information comprises an international mobile equipment identity of the second terminal (International Mobile equipment Identity, hereinafter referred to as IMEI number), the name of a second system version number of the device terminal and a second terminal.

[0049] 在数据传输过程中,长连接服务器根据第二客户端的标识信息及其设备信息对第二客户端进行身份验证之后,若第二客户端未能通过身份验证,长连接服务器拒绝与其建立长连接,若第二客户端通过身份验证,则长连接服务器与第二客户端建立长连接。 [0049] In the data transfer process, after a long connection server according to the identification information and the device information of the second client to the second client authentication, if the second client fails authentication server refuses connection with the establishment of long long connection, if the second client is authenticated, the long connection to the server with a second client to establish a long connection.

[0050] 第二客户端与长连接服务器成功建立长连接之后,第二客户端从长连接服务器处接收第一客户端中的数据,并根据第一客户端中的数据进行相应处理以保证第一客户端与第二客户端之间在已建立数据传输通道的情况下实现信息共享,并能够在第二客户端上继续执行之前在第一客户端未执行结束的操作,例如继续进行网页内容阅读。 After the [0050] second client connection to the server with the long long connection is successfully established, the client receives the second data from the first client is a long connection server, and a corresponding processing according to the data the first client to ensure that the first between a client and the second client to share information in a case where the data transmission channel has been established, and can be on the second client at the first client before proceeding end of operation is not performed, for example, web content continues read. [0051] 本发明实施例中,标识信息是客户端的身份认证信息,可以是由用户设置的身份认证信息,还可以是服务器为客户端设置的身份认证信息,本发明实施例并不对此加以限定。 [0051] The embodiments of the present invention, the identification information is the authentication information of the client, may be the authentication information set by the user, may be authentication information of the server to the client is provided, embodiments of the present invention is not this be defined . 优选的,本发明实施例中,标识信息可以是第一客户端的用户登录的账户信息,该账户信息是用户在客户端中心申请注册的账户,账户信息的申请简单易行,并且每个账户信息可以在多个客户端进行登录。 Preferably, each of the account information embodiments of the present invention, the account identification information may be information of a first client user login, the user account information is registered in the client-centric application account, the account information is easy to apply, and you can log in multiple clients.

[0052] 另外,本发明实施例中的标识信息也可以是服务器生成的一个能作为唯一标识的字符串,例如影子账户。 [0052] Further, the identification information in the embodiment of the present invention may also be generated by the server can act as a string that uniquely identifies, for example, shadow account. 影子账户可以是服务器根据时间、机器标识等信息生成的唯一标识,影子账户也可以是服务器随机生成的一个账户,服务器在生成这个账户之后,检查生成的这个影子账户是否已经存在,如果存在,则服务器重新生成一个影子账户,直到这个账户之前并不存在。 Shadow accounts can be uniquely identify the server generated based on time, the machine identification information, shadow account can also be a server randomly generated by an account server after generating the account, check the generation of the shadow account already exists, if so, server rebuild a shadow account until the account does not exist. 影子账户具有不可重复性以及唯一性,每个影子账户仅能够标识一个客户端。 Shadow account has unrepeatable and unique, each shadow account only able to identify a client.

[0053] 本发明实施例中,第一客户端的数据可以为用户在第一客户端内执行任何操作的数据,也可以是第一客户端更新的其他数据,存储在第一客户端的数据,等等,本发明实施例并不对此做任何限定。 [0053] The embodiments of the present invention, the first client data may be performed as the user is within a first client data for any operation, and may be other data the first client updates the data stored in the first client, etc. etc., this embodiment of the present invention is not any limitation. 优选的,本发明实施例中,该数据可以包括第一客户端的收藏夹中收藏的各网址、第一客户端当前打开的网址、第一客户端的常用网址以及任意第一客户端根据用户指令调用的用户数据等。 Preferably, embodiments of the present invention, the data may include a first client favorites each URL in the collection, the first client is currently open the URL, the first URL used any of the first client and the client calls according to user instructions the user data and the like.

[0054] 第一客户端的任意数据均可以被发送至第二客户端,保证了用户在第一客户端中所进行的各种操作均可以被同步更新到第二客户端中,避免用户在新客户端执行重复操作,获取重复信息,进一步避免数据冗余以及资源的浪费。 [0054] any of the first client data may be sent to both a second client, to ensure that the various operations of the user at the first client can be performed are updated simultaneously to the second client, to avoid new user the client repeated operations, acquire duplicate information, data redundancy and to avoid further waste of resources. 用户通常在浏览器客户端执行收藏网址、设置常用网页等个性化操作,当用户从一个终端转向另一个终端时,需要在另一个终端启用新的客户端,根据本发明实施例,用户在曾经的客户端上设置的个性化操作可以被自动同步到新启用的客户端内,无需用户重复操作。 User normally performs collection browser client URL, and other personalized pages provided common operation, when the user terminal from a terminal switch to another, need to enable a new client in another terminal, according to an embodiment of the present invention, the user has personalized action settings on the client can be automatically synchronized into the opening of the new client, without requiring the user repeat the operation.

[0055] 在本发明实施例中,第一客户端和/或第二客户端可以为浏览器客户端、安全卫士客户端、阅读器客户端、媒体播放器客户端等任意相同类型的客户端,还可以为不同类型但执行相同功能的客户端,本发明实施例并不对此加以限定。 [0055] In an embodiment of the present invention, the first client and / or the second client may be any of the same type of browser the client, the client security guards, the reader client, the media player client like client , can also perform the same function but different types of clients, this embodiment of the present invention is not to be defined. 此处的第一、第二仅用于区分不同的客户端,对于客户端本身属性、顺序以及功能并不造成限定,将第一、第二换位指代不同的客户端也可。 The first, second herein only to distinguish itself from the client, the client attributes itself, is not caused by the order and the function is defined, the first, second transposition refer to different clients may be used. 即,本发明实施例中,可以是设置于第一终端的第一客户端发送第一客户端的数据至设置于第二终端的第二客户端,还可以是设置于第二终端的第二客户端发送第二客户端的数据至设置于第一终端的第一客户端,实现客户端之间信息的相互传输。 That is, embodiments of the present invention, may be provided to a first terminal of the first client data is sent to the first client is provided to the second terminal of the second client, the second client may also be provided to the second terminal end of the transmission data provided to the second client to the first client of the first terminal, to realize mutual transmission of information between a client.

[0056] 本发明实施例中,除在前提到的不同终端间的客户端数据传输,还能够实现同一终端上不同客户端间的数据传输以及移动终端和终端间的客户端数据传输。 Embodiment [0056] In the present invention, in addition to the client data transfer between different terminals of the first mentioned, also enables data transfer between the client and the data transmission between the terminal and the mobile terminal different clients on the same terminal. 因此,本发明实施例中,第一终端与第二终端可以是台式电脑、笔记本电脑等终端,还可以是手机、音乐播放器、平板电脑等移动终端。 Thus, embodiments of the present invention, a first and a second terminal may be a desktop computer, a notebook computer terminal, may be mobile phones, music players, tablet computers and other mobile terminals. 优选的,本发明实施例中,第一客户端和/或第二客户端设置于移动客户端,以便更加清楚简洁地阐述终端与移动终端间的客户端的数据传输。 Preferably, the embodiment of the present invention, the first client and / or the second embodiment is provided to the client mobile client, in order to more clearly set forth concise data transmission between the client terminal and the mobile terminal.

[0057] 基于上文各优选实施例提供的数据传输的方法,基于同一发明构思,本发明实施例提供了一种用于数据传输的客户端,用于实现上述数据传输的方法。 [0057] The data transmission method provided in each of the above preferred embodiments based on the same inventive concept, an embodiment of the present invention provides a client for data transmission, the method to achieve the above for data transmission.

[0058] 图2示出了根据本发明一个实施例的客户端的结构示意图。 [0058] FIG. 2 shows a schematic structure of the client according to one embodiment of the present invention. 图2中示出了第一客户端210与第二客户端220之间的数据传输流程。 FIG. 2 shows a first client 210 processes the data transmission between the client 220 and the second. 其中,第一客户端与第二客户端的架构或组成或结构是相似的。 Wherein the first client and the second client schema or similar structure or composition. 为将本发明实施例阐述得更加清楚简洁,本发明实施例仅详细介绍第一客户端210的结构,对于第二客户端220的结构,本发明实施例不再赘述。 The embodiments of the invention is set forth more clearly brevity, only the embodiment of the present invention is described in detail the structure of a first embodiment of client 210, for the second client terminal structure 220, not repeated embodiment embodiment of the present invention. 另外,图2中的两个客户端仅用于示意不同的客户端间能够进行数据传输,对于两个客户端间的传输过程、传输路径以及传输的数据等参数并不造成限定。 Further, two clients in FIG. 2 for illustration only capable of transmitting data between different clients, for transfer between two clients, and a transmission path for data transmission is not caused by defined parameters.

[0059] 参加图2,第一客户端210中至少包括:数据获取器211、数据传输器212以及数据接收器213。 [0059] FIG participate 2, the first client 210 at least includes: a data acquisition unit 211, data transmitter 212 and data receiver 213. 现介绍第一客户端210的各器件或组成的功能以及各部分间的连接关系。 It is presented connections between each of the first client device 210 or portions of features and composition. 第一客户端210中的数据获取器211获取第一客户端210中的数据及其标识信息。 The first client data 210 and the data acquirer 211 acquires the identification information of the first client 210. 数据获取器211获取到第一客户端210中的数据及其标识信息之后,触发数据传输器212。 After the data acquirer 211 acquires data to the first client 210 and the identification information, the data transmitter 212 is triggered. 数据传输器212将第一客户端210中的数据及其标识信息传输至第一服务器,由第一服务器经长连接服务器传输至对应的第二客户端220。 Second client data transmitter 212 of the first client data 210 and identification information to the first server by the first server via a long connection server 220 is transmitted to the corresponding terminal.

[0060] 依据本发明实施例,第一客户端210能够发送数据至第二客户端220,实现了第一客户端210向第二客户端220进行数据传输,解决了现有技术提到的客户端间无法进行数据传输的问题,进一步解决因不同客户端间无法进行数据传输,新客户端启用时必须重新引入用户需求,从而导致资源浪费以及效率低下的问题。 [0060] The embodiment according to the present invention, a first client 210 can send data to the second client 220, client 210 implements a first to a second client 220 for data transmission, to solve the customer prior art mentioned the problem can not be transferred between data terminal, further address the data can not be transmitted between different clients, new customers must re-introduced when the user needs to enable end, resulting in a waste of resources and low efficiency.

[0061] 具体地,第一客户端210中的数据获取器211获取第一客户端210中的数据及其标识信息。 [0061] Specifically, the first client data 210 and the data acquirer 211 acquires the identification information of the first client 210. 数据获取器211获取到第一客户端210中的数据及其标识信息之后,触发数据传输器212。 After the data acquirer 211 acquires data to the first client 210 and the identification information, the data transmitter 212 is triggered. 数据传输器212经触发,将第一客户端210中的数据及其标识信息发送至第一服务器,此处的第一服务器为第一终端所对应的服务器。 Data transmitter 212 is triggered, the data of the first client 210 and transmits the identification information to the first server, the first server to the first terminal where the corresponding server. 例如,若第一终端为PC,则第一服务器为PC服务器。 For example, if the first terminal is a PC, PC server of the first server.

[0062] 第一服务器接收到第一客户端210的数据之后,对第一客户端210的数据进行合法性验证。 After [0062] the first server receives the data of the first client 210, the end 210 of the first client data legality verification. 优选的,本发明实施例中,第一服务器对第一客户端210的标识信息进行验证,确定第一客户端210的标识信息是否为合法信息,例如验证该标识信息是否已在客户端中心注册,或者是该标识信息是否是服务器内部生成的标识符。 Preferably, the embodiment of the invention, the first identification information of the first client server 210 verifies the end, the client identification information of the first terminal determining whether legitimate information 210, for example, to verify that the identification information has been registered in the client-centric , or whether the internal server identification information is generated identifier. 若该标识信息经验证是合法信息,则第一服务器将该标识信息传输至长连接服务器,若该标识信息不是合法信息,则第一服务器拒绝将该标识信息发送至长连接服务器。 If the identification information is verified valid information, the first identification information to the server the long connection to the server, if the identification information is not valid information, the server rejects the first identification information to the long connection server.

[0063] 同样,第一服务器还可以对除标识信息外的其他数据进行合法性验证,例如,验证第一客户端210的网页数据等,是否为非恶意数据。 [0063] Also, the first server may also perform other data in addition to the identification information to verify the legality of, e.g., a first authentication client webpage data 210 and the like, is a non-malicious data. 本发明实施例中,恶意数据指对用户终端内的数据进行窃取、毁坏等非法行为的病毒、木马等等。 Embodiments of the present invention, malicious data refers to data in the user terminal steal, destroy illegal acts like a virus, trojan like. 若第一服务器验证第一客户端210的数据是上述恶意数据,则第一服务器拒绝将该恶意数据传输至长连接服务器,若经第一服务器的验证,第一客户端210的数据是非恶意数据,则第一服务器将该数据传输至长连接服务器。 If the first authentication data the first client server 210 is the above malicious data, the first server rejects the connection length malicious data to the server, if the authentication by the first server, the first client data 210 is non-malicious , then the first server data to the long connection to the server. 优选的,本发明实施例中,第一客户端210的数据经合法性验证之后,第一服务器还可以对第一客户端210的数据进行加密处理,更加有效地提高数据传输的安全性。 Preferably, the embodiment of the invention, the data of the first client 210 after the validity verification by the first server to the first client can encrypt the data terminal 210, to more effectively improve the security of data transmission. 通过第一服务器对第一客户端210的数据进行安全性验证及处理,能够更加有效地保证传输数据的安全性,防止在数据传输的过程中,一些恶意网址等附加到传输的数据中,对用户的终端或者客户端造成损害。 The first server data to the first client 210 and the security verification process ends, can be more effectively ensure the security of data transmission, to prevent the process of data transmission, additional data transmitted to a malicious Web site or the like, for the user or client terminal damage.

[0064] 第一服务器对第一客户端210的数据进行合法性验证之后,将经过合法性验证的数据发送至对应的长连接服务器。 [0064] After the first client a first server 210 verify the legitimacy of the data terminal will be sent to the corresponding server connected via long legality verification data. 第一服务器与长连接服务器可以通过多种协议进行通信,例如,传输控制协议、用户数据报协议等。 The first long link server server can communicate through multiple protocols, e.g., transmission control protocol, user datagram protocol. 优选的,本发明实施例中,第一服务器与长连接服务器通过HTTP请求通信。 Preferably, embodiments of the present invention, the first server and the connection server via HTTP request long communication. HTTP支持多种服务器模式、简单快速,因此通过HTTP请求通知能够提高数据传输效率。 HTTP server supports multiple modes, simple and rapid, thus HTTP request notification data transmission efficiency can be improved. [0065] 当长连接服务器接收到经第一服务器发送的第一客户端210中的数据及其标识信息时,长连接服务器根据第一客户端210的标识信息确定对应的第二客户端220,并根据长连接服务器存储的在线设备列表中记录的信息确定与第二客户端220之间长连接的状态。 [0065] When the data and the identification information received by the server 210 connected to the long first client via the first server sending end, the long end 210 connected to the server identification information corresponding to the determined second client terminal 220 according to the first client, the device information list and long-line connection to the server stored in the recorded state is determined length between 220 connected to the second client.

[0066] 长连接服务器中存储的在线设备列表记录与该长连接服务器保持长连接的各个客户端的标识信息。 [0066] The device list stored in the server is connected online with the identification information of the recording holding each client connected to the elongated length of the connection server. 若某一个客户端与该长连接服务器之间的长连接断开,则在长连接服务器的在线设备列表中删除已断开的客户端对应的标识信息。 If a client is disconnected from a long length of the connection between the connection server, deleting the identification information of the disconnected client device corresponding to the long-line connection in the list server. 本发明实施例中,长连接服务器中存储的在线设备列表能够实时更新,保证长连接服务器能够及时更新与其建立长连接的客户端的信息,避免因在线设备列表数据更新不及时导致向已断开的客户端发送数据,导致数据包丢失等恶性后果,提高数据传输的安全性。 Embodiments of the present invention, a list of online device long connections stored in the server can be updated in real time, to ensure long connection to the server can update its setup information client long link, to avoid online apparatus list data not updating cause a disconnect to have the the client sends data, resulting in data packet loss and other serious consequences, improve the security of data transmission.

[0067] 长连接服务器确定是否发送第一客户端210中的数据至第二客户端220的具体方式为,若根据长连接服务器的在线设备列表,长连接服务器与第二客户端220之间长连接的状态为连接,长连接服务器将第一客户端210的数据发送至第二客户端220。 [0067] The server determines whether to transmit long connecting a first client data 210 to the second client terminal 220 to the specific embodiment, if the length of the device according to the list of online connection to the server, the server is connected to the long duration between the second client 220 the connection status of the connection, the connection length of the first client data server 210 is transmitted to the second client 220. 若根据长连接服务器的在线设备列表,长连接服务器与第二客户端220之间此长连接的状态为断开,则在该长连接服务器中存储第一客户端210的数据,然后,待该长连接的状态恢复之后,再将长连接服务器中存储的第一客户端210的数据发送至第二客户端220。 The long list of online devices if the connection to the server, the server long connection with a second client 220 is connected between the status of this length is disconnected, the connection to the server storing the first long-client data 210, and then to be the after the first client data connection recovery state long, and then stored in the server connected to the long end 210 is transmitted to the second client 220.

[0068] 另外,第一客户端210中数据接收器213能够接收经长连接服务器转发的、来自第二客户端220中的数据。 [0068] Further, the first client 210 is capable of receiving the data receiver 213 connected to the server over a long forwarding data 220 from a second client. 当与第一客户端210对应的长连接服务器接收到第二客户端220中的数据之后,根据在线设备列表查询与第一客户端210之间长连接的状态。 When the client 210 corresponding to the first long connection server 220 receives the data after the second client, the device according to the list of queries the online state between the first client 210 connected to the long side. 当该长连接服务器与第一客户端210之间长连接的状态为连接时,长连接服务器发送第二客户端220中的数据至第一客户端210。 When the length of the connection state between the server and the first client terminal 210 is connected to the long link, the server sends the data length of the connector 220 to the first client a second client terminal 210. 第一客户端210中的数据接收器213接收长连接服务器发送的第二客户端220中的数据。 The first client data receiver 213 receives data 210 in the server 220 transmits a second client terminal connection length. 当该长连接服务器与第一客户端210之间长连接的状态为断开时,长连接服务器存储第二客户端220中的数据,待与第一客户端210之间长连接的状态恢复之后,发送第二客户端220中的数据至第一客户端210。 When the connection state between the length 210 of the elongated connecting the first server and the client is disconnected, a data storage server connected to a second long client 220, to be between the first client state 210 after the end of the long link recovery , transmitting the second data to the client 220 in the client 210 first.

[0069] 本发明实施例中,标识信息是客户端的身份认证信息,可以是由用户设置的身份认证信息,还可以是服务器为客户端设置的身份认证信息,本发明实施例并不对此加以限定。 [0069] The embodiments of the present invention, the identification information is the authentication information of the client, may be the authentication information set by the user, may be authentication information of the server to the client is provided, embodiments of the present invention is not this be defined . 优选的,本发明实施例中,标识信息可以是第一客户端210的用户登录的账户信息,该账户信息是用户在客户端中心申请注册的账户,账户信息的申请简单易行,并且每个账户信息可以在多个客户端进行登录。 Preferably, embodiments of the present invention, the identification information may be the user account information of the first client terminal 210 logs in, the user account information is registered in the client-centric application account, the account information is easy to apply, and each account information can log in multiple clients.

[0070] 另外,本发明实施例中的标识信息也可以是服务器生成的一个能作为唯一标识的字符串,例如影子账户。 [0070] Further, the identification information in the embodiment of the present invention may also be generated by the server can act as a string that uniquely identifies, for example, shadow account. 影子账户可以是服务器根据时间、机器标识等信息生成的唯一标识,影子账户也可以是服务器随机生成的一个账户,服务器在生成这个账户之后,检查生成的这个影子账户是否已经存在,如果存在,则服务器重新生成一个影子账户,直到这个账户之前并不存在。 Shadow accounts can be uniquely identify the server generated based on time, the machine identification information, shadow account can also be a server randomly generated by an account server after generating the account, check the generation of the shadow account already exists, if so, server rebuild a shadow account until the account does not exist. 影子账户具有不可重复性以及唯一性,每个影子账户仅能够标识一个客户端。 Shadow account has unrepeatable and unique, each shadow account only able to identify a client.

[0071] 优选的,本发明实施例中,第一客户端210的数据可以为用户在第一客户端210内执行任何操作的数据,也可以是第一客户端210更新的其他数据,存储在第一客户端210的数据,等等,本发明实施例并不对此做任何限定。 [0071] The preferred embodiment of the present invention, the first client data 210 may perform any operation to the user data in the first client 210 side, may be other data of the first client 210 updates, is stored in the first client data 210, and the like, embodiments of the present invention is defined not to do anything. 优选的,本发明实施例中,该数据可以包括第一客户端210的收藏夹中收藏的各网址、第一客户端210当前打开的网址、第一客户端210的常用网址以及任意第一客户端210根据用户指令调用的用户数据等。 Preferably, embodiments of the present invention, each of the data may include a first URL of the client 210 favorites folder collection, a first client 210 is currently open the URL, the client first, and any of the commonly used URLs first client 210 the user data of the user terminal 210 calls an instruction and the like.

[0072] 第一客户端210的任意数据均可以被发送至第二客户端220,保证了用户在第一客户端210中所进行的各种操作均可以被同步更新到第二客户端220中,避免用户在新客户端执行重复操作,获取重复信息,进一步避免数据冗余以及资源的浪费。 [0072] The first client terminal 210 are arbitrary data may be transmitted to the second client 220, to ensure that the various operations in the first user client 210 may be performed are updated simultaneously to a second client 220 prevent users in a new client to perform repetitive operations, acquire duplicate information, data redundancy and to avoid further waste of resources. 用户通常在浏览器客户端执行收藏网址、设置常用网页等个性化操作,当用户从一个终端转向另一个终端时,需要在另一个终端启用新的客户端,根据本发明实施例,用户在曾经的客户端上设置的个性化操作可以被自动同步到新启用的客户端内,无需用户重复操作。 User normally performs collection browser client URL, and other personalized pages provided common operation, when the user terminal from a terminal switch to another, need to enable a new client in another terminal, according to an embodiment of the present invention, the user has personalized action settings on the client can be automatically synchronized into the opening of the new client, without requiring the user repeat the operation.

[0073] 本发明实施例中,除在前提到的不同终端间的客户端数据传输,还能够实现同一终端上不同客户端间的数据传输以及移动终端和终端间的客户端数据传输。 [0073] Example embodiments of the present invention, in addition to the client data transfer between different terminals of the first mentioned, also enables data transfer between the client and the data transmission between the terminal and the mobile terminal different clients on the same terminal. 因此,本发明实施例中,第一终端与第二终端可以是台式电脑、笔记本电脑等终端,还可以是手机、音乐播放器、平板电脑等移动终端。 Thus, embodiments of the present invention, a first and a second terminal may be a desktop computer, a notebook computer terminal, may be mobile phones, music players, tablet computers and other mobile terminals. 优选的,本发明实施例中,第一客户端210和/或第二客户端220设置于移动终端,以便更加清楚简洁地阐述终端与移动终端间的客户端的数据传输。 Preferred, embodiment, the first client and / or data transmission 210 of the second client 220 is provided in the mobile terminal, so as to more clearly set forth concisely client terminal and the mobile terminal between the embodiment of the present invention.

[0074] 实施例一 [0074] Example a

[0075] 图3示出了根据本发明一个优选实施例的数据传输方法流程图,用于支持上述任意一个数据传输方法及数据传输设备,将上述数据传输方法及数据传输设备阐述得更清楚简洁。 [0075] FIG. 3 shows a flowchart of a data transmission method according to an embodiment of the present invention is preferably configured to support any of the above-described data transmission method and a data transmission device, the above-described data transmission method and data transmission apparatus set forth more clear and concise . 如图3所示,本例中选择PC作为第一终端,手机为第二终端,客户端为浏览器客户端。 3, the present embodiment PC as the selected first terminal, the second terminal is a mobile phone, the client is a browser client. 为方便辨识第一客户端与第二客户端,在本例中,第一客户端被称为PC浏览器,第二客户端被称为手机浏览器,标识信息为唯一身份标识号码(Identity,以下简称ID)。 To facilitate the identification of the first client and a second client, in this case, the first client is referred to as PC browsers, the second client is called a mobile browser identification information as a unique identification number (Identity, hereinafter referred to as ID). 另外,本优选实施例重点描述PC浏览器如何向手机浏览器发送数据的过程。 Further, the preferred embodiment describes the process of how to focus PC browser sends the data to the mobile browser.

[0076] 如图3所示,本优选实施例的步骤起始于步骤I,手机浏览器与长连接服务器建立长连接。 [0076] As shown in FIG. 3, steps of the present preferred embodiment starting at step I, the mobile browser to establish the connection with the long length of the server. 具体方式为,手机浏览器根据自身的标识信息确定对应的长连接服务器,并向该长连接服务器发送连接建立请求,该连接建立请求中携带有手机浏览器的标识信息。 DETAILED manner as to determine a corresponding mobile browser long connection server according to the identification information of itself, is connected to the elongated server transmits a connection establishment request, the connection establishment request carries the identifier information of the mobile browser. 长连接服务器接收到手机浏览器发送的连接建立请求之后,长连接服务器根据连接建立请求中携带的手机浏览器的标识信息对手机浏览器进行身份验证。 After long connection server receives the connection establishment request sent from the mobile browser, connect to the server to establish long-identification information request carries a mobile browser according to the connection of mobile browser for authentication. 优选的,本发明实施例中,长连接服务器还可以根据手机浏览器的其他设备信息对手机浏览器进行身份验证,以保证该手机浏览器为接收PC浏览器中的数据的接收端。 Preferred embodiments of the present invention, the long connection server may also authenticate the mobile browser based on other information of the mobile browser device, in order to ensure the reception data PC browser receiving end of the mobile browser. 手机浏览器的其他设备信息可以是手机浏览器的信息,还可以是第二终端的信息,优选的,本发明实施例中,其他设备信息包括第二终端的IMEI号码、第二终端的设备名称以及第二终端的系统版本号。 Other mobile browser device information may be information on the mobile browser, it can also be a second information terminal, preferred, embodiment of the present invention, the other device information includes the IMEI number of the second terminal, the second terminal device name and a second system version of the terminal.

[0077] 长连接服务器根据手机浏览器的标识信息及其设备信息对手机浏览器进行身份验证之后,若手机浏览器未能通过身份验证,长连接服务器拒绝与其建立长连接,若手机浏览器通过身份验证,则长连接服务器与手机浏览器建立长连接。 [0077] After a long connection to the server based on the identification information and device information on the mobile browser mobile browser for authentication, if your phone is unable to authenticate, and its long connection to the server refused to establish a long connection, if the mobile browser via authentication, long established long connection server and mobile browser.

[0078] 手机浏览器与长连接服务器成功建立长连接之后,手机浏览器从长连接服务器处接收PC浏览器中的数据,并根据PC浏览器中的数据进行相应处理以保证PC浏览器与手机浏览器之间实现信息共享,并能够在手机浏览器上继续执行之前在PC浏览器未执行结束的操作,例如继续进行网页内容阅读。 After the [0078] mobile browser with a long connection to the server successfully established long connection, mobile browser receives data from the PC browser from long connection server, and a corresponding processing according to the data from the PC browser to ensure PC browser and mobile phone information sharing between the browser and the ability to operate in a PC browser is not the end of execution, for example, continue reading web content before proceeding on a mobile browser.

[0079] PC浏览器中的数据由PC浏览器经PC服务器以及长连接服务器发送至手机浏览器,现介绍PC浏览器经PC服务器发送PC浏览器中的数据至长连接服务器的过程。 [0079] PC data sent by the browser in the browser via PC and PC server to connect to the server long mobile browser, are presented PC browser to send data from the PC browser via PC server to process long connection to the server.

[0080] 如图3中的步骤2所述,PC浏览器发送PC浏览器中的数据及唯一ID至PC服务器。 [0080] Step 3 in FIG. 2, the data of the PC browser sends PC browser and the unique ID to the server PC. PC服务器接收到PC浏览器的数据之后,对PC浏览器的数据进行合法性验证。 After the PC server receives the data from the PC browser, PC data browser legality verification. 优选的,本发明实施例中,PC服务器对上述数据中PC浏览器的唯一ID进行验证,确定PC浏览器的唯一ID是否为合法信息,例如验证唯一ID是否已在客户端中心注册,或者是唯一ID是否是服务器内部生成的标识符。 Preferably, the present invention embodiment, PC server unique ID data described above PC browser verifies, determine the unique ID PC browser whether legitimate information, e.g. to verify that the unique ID has been registered in the client-centric, or whether the ID is a unique identifier generated inside the server. 若唯一ID经验证是合法信息,则PC服务器将唯一ID传输至长连接服务器,若唯一ID不是合法信息,则PC服务器拒绝将唯一ID发送至长连接服务器。 If the unique ID is proven legal information, the PC server will transmit a unique ID to the long connection to the server, if the ID is not the only legal information, the PC server refused to send a unique ID to the long connection to the server.

[0081] 同样,PC服务器还可以对PC浏览器中的数据进行合法性验证,例如,验证PC浏览器的网页数据等,是否为非恶意数据。 [0081] Similarly, PC servers also can verify the legitimacy of the data from the PC browser, for example, data validation PC web browser, etc., is a non-malicious data. 本发明实施例中,恶意数据指对用户终端内的数据进行窃取、毁坏等非法行为的病毒、木马等等。 Embodiments of the present invention, malicious data refers to data in the user terminal steal, destroy illegal acts like a virus, trojan like. 若PC服务器验证PC浏览器的数据是上述恶意数据,则PC服务器拒绝将该恶意数据传输至长连接服务器,若经PC服务器的验证,PC浏览器的数据是非恶意数据,则PC服务器将该数据传输至长连接服务器。 If the authentication server PC PC browser malicious data above, the PC server rejects the connection length malicious data to the server, if the non-malicious data via the data validation, the server PC browser of PC, the PC server the data a long connection to the transport server. 优选的,本发明实施例中,PC浏览器的数据经合法性验证之后,PC服务器还可以对PC浏览器的数据进行加密处理,更加有效地提高数据传输的安全性。 Preferably, the embodiment of the invention, the browser of PC via the data after the validity verification, PC server may also be encrypted on the data of the PC browser, more effectively improve the security of data transmission. 通过PC服务器对PC浏览器的数据进行安全性验证及处理,能够更加有效地保证传输数据的安全性,防止在数据传输的过程中,一些恶意网址等附加到传输的数据中,对用户的终端或者客户端造成损害。 A PC server data PC browser security verification and processing can be more effectively ensure the security of data transmission, to prevent the process of data transmission, malicious URLs, etc. attached to the data transmission, the terminal user The client or cause damage.

[0082] PC服务器对PC浏览器的数据进行合法性验证之后,执行如图3中的步骤3,将经过合法性验证的唯一ID及PC浏览器中的数据转发至对应的长连接服务器。 [0082] After the server PC to PC data verify the legitimacy of the browser, step 3 in FIG. 3, the unique ID data through the browser and PC legality verification forwarding server connected to a corresponding length.

[0083] 长连接服务器接收到经PC服务器发送的PC浏览器中的数据及唯一ID时,长连接服务器根据PC浏览器的唯一ID确定对应的手机浏览器,并根据长连接服务器存储的在线设备列表中记录的信息确定与手机浏览器之间长连接的状态。 When the [0083] long connection server receives the data from the PC browser transmitted via the PC server and a unique ID, a long connection to the server determines the corresponding mobile browser based on the unique ID PC browser, and long connection server storage line apparatus according to the status information between mobile browser and determine long connection list records.

[0084] 长连接服务器中存储的在线设备列表记录与该长连接服务器保持长连接的各个浏览器的唯一ID。 Online device list [0084] server connected to long holding records stored in the unique ID of each browser connected to the elongated length of the connection server. 若某一个浏览器与该长连接服务器之间的长连接断开,则在长连接服务器的在线设备列表中删除已断开的浏览器对应的唯一ID。 If a browser is disconnected from the long connection between the long connection to the server, remove the unique ID corresponding to the disconnected browser in a long list of online devices connected to the server. 本发明实施例中,长连接服务器中存储的在线设备列表能够实时更新,保证长连接服务器能够及时更新与其建立长连接的浏览器的信息,避免因在线设备列表数据更新不及时导致向已断开的浏览器发送数据,导致数据包丢失等恶性后果,提高数据传输的安全性。 Embodiments of the present invention, a long list of online device connected to the server can be updated in real time is stored, the server can guarantee long connection establishment information to update its long browser connection, to avoid the online data not updating the device list to cause disconnection has the browser sends data, resulting in data packet loss and other serious consequences, improve the security of data transmission.

[0085] 如图3中步骤4所示,长连接服务器根据与手机浏览器之间长连接的状态确定是否发送PC浏览器中的数据至手机浏览器。 [0085] Step 4 shown in FIG. 3, a long connection server determines whether the browser PC data transmitted to the mobile browser according to the state between the mobile browser with a long connection. 长连接服务器确定是否发送PC浏览器中的数据至手机浏览器的具体方式为,若根据长连接服务器的在线设备列表,长连接服务器与手机浏览器之间长连接的状态为连接,长连接服务器将PC浏览器中的数据发送至手机浏览器。 Long connected PC server determines whether to send data to the browser, mobile browser specific way, if the device according to the state between long list of online connection to the server, the server long connection with your phone browser connection to connect long, long connection to the server the data from the PC browser is sent to the mobile browser. 若根据长连接服务器的在线设备列表,长连接服务器与手机浏览器之间此长连接的状态为断开,则在该长连接服务器中存储PC浏览器中的数据,然后,待该长连接的状态恢复之后,再将长连接服务器中存储的PC浏览器中的数据发送至手机浏览器。 If it is turned off according to the state this long between long list of online devices connect to the server, the server long connection with the phone browser connection, the data stored in the PC browser the long connection to the server, and then, to be the long connection data recovery after state, and then stored in a long connection to the server PC browser sends to the mobile browser.

[0086] 实施例二 [0086] Second Embodiment

[0087] 图4示出了根据本发明另一个优选实施例的数据传输方法流程图,用于支持上述任意一个数据传输方法及数据传输设备,将上述数据传输方法及数据传输设备阐述得更清楚简洁。 [0087] FIG. 4 shows more clearly the present invention according to another embodiment of the data transmission method of the preferred flow chart for any of the above supports a data transmission method and data transmission apparatus, the above-described data transmission method and data transmission device concise. 如图4所示,本例中选择PC作为第一终端,手机为第二终端,客户端为浏览器客户端。 4, in the present embodiment PC as the first selected terminal, the second terminal is a mobile phone, the client is a browser client. 为方便辨识第一客户端与第二客户端,在本例中,第一客户端被称为PC浏览器,第二客户端被称为手机浏览器,标识信息为唯一ID。 To facilitate identification of the first client and the second client, in the present embodiment, the first client PC is referred to as a browser, the client is referred to as a second mobile browser, the identification information is a unique ID. 另外,本优选实施例重点描述手机浏览器如何向PC浏览器发送数据的过程。 Further, the preferred embodiment describes the process of how to focus on the mobile browser to send data to the PC browser.

[0088] 如图4所示,本优选实施例的步骤起始于步骤I,PC浏览器与长连接服务器建立长连接。 [0088] As shown, the preferred procedure of the present embodiment starts from step I 4, PC browser to establish a connection to the server with the long long connection. 具体方式为,PC浏览器根据唯一ID确定对应的长连接服务器,并向该长连接服务器发送连接建立请求,该连接建立请求中携带有PC浏览器的唯一ID。 DETAILED way, PC browser connect to the server to determine the corresponding length in accordance with the unique ID, and the server transmits the elongated connector connection establishment request, the connection establishment request carries the unique ID PC browser. 长连接服务器接收到PC浏览器发送的连接建立请求之后,长连接服务器根据连接建立请求中携带的PC浏览器的唯一ID对PC浏览器进行身份验证。 Long connection server receives a connection request after establishing a unique ID, the server long connection establishment request carries a PC browser PC browser sends to the browser of the PC according to the connection authentication. 优选的,本发明实施例中,长连接服务器还可以根据PC浏览器的其他设备信息对PC浏览器进行身份验证,以保证该PC浏览器为接收手机浏览器中的数据的接收端。 Preferred embodiments of the present invention, the long connection server may also authenticate the PC Browser based on other information of the PC device browser, to ensure that the PC browser to receive the data receiving terminal of the mobile browser. PC浏览器的其他设备信息可以是PC浏览器的设备信息,还可以是第一终端的设备信息,优选的,本发明实施例中,其他设备信息包括第一终端的设备名称以及第一终端的系统版本号等。 Other information of the PC device browser may be a browser device information of the PC, it may be the first terminal device information, preferred, embodiment of the present invention, other devices, including the device name of a first terminal and a first terminal system version number.

[0089] 长连接服务器根据PC浏览器的唯一ID及其设备信息对PC浏览器进行身份验证之后,若PC浏览器未能通过身份验证,长连接服务器拒绝与其建立长连接,若PC浏览器通过身份验证,则长连接服务器与PC浏览器建立长连接。 [0089] After a long connection to the server based on the unique ID and device information on the PC browser PC browser for authentication, if the PC browser can not authenticate, and its long connection to the server refused to establish a long connection, if the PC browser via authentication, the connection to the server to establish a long long connection to the PC browser.

[0090] PC浏览器与长连接服务器成功建立长连接之后,PC浏览器从长连接服务器处接收手机浏览器中的数据,并根据手机浏览器中的数据进行相应处理以保证手机浏览器与PC浏览器之间实现信息共享,并能够在PC浏览器上继续执行之前在手机浏览器未执行结束的操作,例如继续进行网页内容阅读。 [0090] After the PC browser and long connection server successfully established long connection, PC browser receives data mobile browser from a long connection server, and a corresponding processing according to the data the mobile browser to ensure mobile browser and PC information sharing between the browser and the ability to operate in the mobile browser is not the end of execution, for example, continue reading web content before proceeding on a PC browser.

[0091 ] 手机浏览器中的数据由手机浏览器经PC服务器以及长连接服务器发送至PC浏览器,现介绍手机浏览器经PC服务器发送手机浏览器中的数据至长连接服务器的过程。 [0091] Data mobile browser sent by mobile browser via PC servers and long connection to the server PC browsers, mobile browser are presented sending process data in your phone's browser to a long connection to the server via the PC server.

[0092] 如图4中的步骤2所示,手机浏览器发送手机浏览器中的数据及唯一ID至PC服务器。 [0092] As shown in step 4 in FIG. 2, the data transmitting mobile browser in the mobile browser and the unique ID to the server PC. PC服务器接收到手机浏览器的数据及唯一ID之后,对手机浏览器的数据及唯一ID进行合法性验证。 After the PC server receives the data of mobile browser and a unique ID, the data mobile browser and a unique ID legality verification. 优选的,本发明实施例中,PC服务器对上述数据中手机浏览器的唯一ID进行验证,确定手机浏览器的唯一ID是否为合法信息,例如验证唯一ID是否已在客户端中心注册,或者是唯一ID是否是服务器内部生成的标识符。 Preferably, the present invention embodiment, PC server unique ID data described above mobile browser for authentication, determining the unique ID of the mobile browser whether legitimate information, e.g. to verify that the unique ID has been registered in the client-centric, or whether the ID is a unique identifier generated inside the server. 若唯一ID经验证是合法信息,则PC服务器将唯一ID传输至长连接服务器,若唯一ID不是合法信息,则PC服务器拒绝将唯一ID发送至长连接服务器。 If the unique ID is proven legal information, the PC server will transmit a unique ID to the long connection to the server, if the ID is not the only legal information, the PC server refused to send a unique ID to the long connection to the server.

[0093] 同样,PC服务器还可以对手机浏览器中的数据进行合法性验证,例如,验证手机浏览器的网页数据等,是否为非恶意数据。 [0093] Similarly, PC servers also can verify the legitimacy of the data in the mobile browser, for example, verify that your phone's web page data, whether non-malicious data. 本发明实施例中,恶意数据指对用户终端内的数据进行窃取、毁坏等非法行为的病毒、木马等等。 Embodiments of the present invention, malicious data refers to data in the user terminal steal, destroy illegal acts like a virus, trojan like. 若PC服务器验证手机浏览器的数据是上述恶意数据,则PC服务器拒绝将该恶意数据传输至长连接服务器,若经PC服务器的验证,手机浏览器的数据是非恶意数据,则PC服务器将该数据传输至长连接服务器。 If the authentication server PC mobile browser malicious data above, the PC server rejects the connection length malicious data to the server, if the authentication by the server PC, the data is non-malicious mobile browser, then the data server PC a long connection to the transport server. 优选的,本发明实施例中,手机浏览器的数据经合法性验证之后,PC服务器还可以对手机浏览器的数据进行加密处理,更加有效地提高数据传输的安全性。 Preferably, the embodiment of the invention, the mobile browser via the data after the validity verification, PC server may also be encrypted on the mobile browser data more effectively improve the security of data transmission. 通过PC服务器对手机浏览器的数据进行安全性验证及处理,能够更加有效地保证传输数据的安全性,防止在数据传输的过程中,一些恶意网址等附加到传输的数据中,对用户的终端或者客户端造成损害。 By PC server data mobile browser security verification and processing, to more effectively ensure the security of data transmission, to prevent the process of data transmission, the number of malicious URLs, etc. attached to the data transmission, the terminal of the user The client or cause damage.

[0094] PC服务器对手机浏览器的数据进行合法性验证之后,执行如图4中的步骤3,将经过合法性验证的唯一ID及手机浏览器中的数据转发至对应的长连接服务器。 [0094] After the server PC mobile browser data validity verification step 4 in FIG. 3, the legality verification data after the unique ID and the phone's browser to a corresponding forward long connection server.

[0095] 长连接服务器接收到经PC服务器发送的手机浏览器中的数据及唯一ID时,长连接服务器根据手机浏览器的唯一ID确定对应的PC浏览器,并根据长连接服务器存储的在线设备列表中记录的信息确定与PC浏览器之间长连接的状态。 When the [0095] length of the connection server received the data the mobile browser transmitted via the PC server and a unique ID, a long connection to the server determines the corresponding PC browser, according to the unique ID of the mobile browser, and long connection server storage line apparatus according to the information recorded in the list to determine the status between the PC browser and long connection.

[0096] 长连接服务器中存储的在线设备列表记录与该长连接服务器保持长连接的各个浏览器的唯一ID。 Online device list [0096] server connected to long holding records stored in the unique ID of each browser connected to the elongated length of the connection server. 若某一个浏览器与该长连接服务器之间的长连接断开,则在长连接服务器的在线设备列表中删除已断开的浏览器对应的唯一ID。 If a browser is disconnected from the long connection between the long connection to the server, remove the unique ID corresponding to the disconnected browser in a long list of online devices connected to the server. 本发明实施例中,长连接服务器中存储的在线设备列表能够实时更新,保证长连接服务器能够及时更新与其建立长连接的浏览器的信息,避免因在线设备列表数据更新不及时导致向已断开的浏览器发送数据,导致数据包丢失等恶性后果,提高数据传输的安全性。 Embodiments of the present invention, a long list of online device connected to the server can be updated in real time is stored, the server can guarantee long connection establishment information to update its long browser connection, to avoid the online data not updating the device list to cause disconnection has the browser sends data, resulting in data packet loss and other serious consequences, improve the security of data transmission.

[0097] 如图4中步骤4所示,长连接服务器根据与PC浏览器之间长连接的状态确定是否发送手机浏览器中的数据至PC浏览器。 [0097] In the step shown in FIG. 4, a long connection server determines whether the mobile browser to send data to the browser of the PC 4 according to the state between the PC browser and long link. 长连接服务器确定是否发送手机浏览器中的数据至PC浏览器的具体方式为,若根据长连接服务器的在线设备列表,长连接服务器与PC浏览器之间长连接的状态为连接,长连接服务器将手机浏览器中的数据发送至PC浏览器。 Long connection server determines whether to send the data in your phone's browser to a specific way of PC browser, if the device according to the state between long list of online connection to the server, the server long connection to the PC browser connection to connect long, long connection to the server the data in the mobile browser is sent to the PC browser. 若根据长连接服务器的在线设备列表,长连接服务器与PC浏览器之间此长连接的状态为断开,则在该长连接服务器中存储手机浏览器中的数据,然后,待该长连接的状态恢复之后,再将长连接服务器中存储的手机浏览器中的数据发送至PC浏览器。 If it is turned off according to the state this long between long list of online devices connect to the server, the server long connection to the PC browser connection, the data stored in the mobile browser in this long connection to the server, and then, to be the long connection after the state to recover, and then long connection data stored in the server's mobile browser is sent to the PC browser.

[0098] 基于上文各优选实施例提供的数据传输的方法及设备,基于同一发明构思,本发明实施例提供了一种数据传输系统。 [0098] Based on the data transmission method and apparatus provided in each of the above preferred embodiment, based on the same inventive concept, the present invention provides a data transmission system. 图5示出了根据本发明一个实施例的数据传输系统的结构示意图。 FIG. 5 shows a schematic structural diagram of a data transmission system according to an embodiment of the present invention. 参见图5,本发明实施例中的数据传输系统500至少包括第一服务器510、第一客户端520、第二客户端530以及长连接服务器540。 Referring to Figure 5, embodiment of the present invention is a data transmission system 500 includes at least a first server 510, a first client 520, the second client 530 and server 540 are connected long.

[0099]为将本发明实施例阐述得更加清楚简洁,本发明实施例中,将第一客户端520设置于第一终端,将第二客户端530设置于第二终端。 [0099] The illustrated embodiment of the invention will be more clearly simple, embodiment of the present invention, the first client 520 is provided to a first terminal, a second client 530 disposed on the second terminal. 现介绍本发明实施例的数据传输系统中各器件或组成的功能以及各部分间的连接关系。 It is presented connections between the data transmission system of the embodiment of the present invention or the composition of each device and function of each part. 数据传输系统500中,第一客户端520中的数据获取器521获取第一客户端520中的数据及其标识信息,并触发数据传输器522。 Data transmission system 500, the data of the first client 520 and the data acquirer 521 acquires the identification information of the first client 520, 522 and trigger the data transfer. 数据传输器522经触发将第一客户端520中的数据及其标识信息传输至第一服务器510。 Data transfer data 522 is triggered in a first client 520 and the first identification information to the server 510.

[0100] 第一服务器510接收到第一客户端520的数据及其标识信息之后,对第一客户端520的数据及其标识信息进行合法性验证。 After [0100] The first server 510 receives the first data and the identification information of the client terminal 520, the first client to verify the legitimacy of the data terminal 520 and identification information. 优选的,本发明实施例中,第一服务器510对第一客户端520的标识信息进行验证,确定第一客户端520的标识信息是否为合法信息,例如验证该标识信息是否已在客户端中心注册,或者是该标识信息是否是服务器内部生成的标识符。 Preferably, the embodiment of the present invention, the first server 510 first end 520 of the customer identification information to verify whether the identification information of the first client to determine end 520 as lawful information, such as verifying whether the identification information in the client-centric is registered, or the internal server identification information is generated identifier. 若该标识信息经验证是合法信息,则第一服务器510将该标识信息传输至长连接服务器540,若该标识信息不是合法信息,则第一服务器510拒绝将该标识信息发送至长连接服务器540。 If the identification information is verified valid information, the first identification information transmitting server 510 is connected to the long server 540, information is not valid if the identification information, the first server 510 transmits the identification information to reject the long connection server 540 .

[0101] 同样,第一服务器510还可以对除标识信息外的其他数据进行合法性验证,例如,验证第一客户端520的网页数据等,是否为非恶意数据。 [0101] Also, the first server 510 may also be other data in addition to the identification information to verify the legality of, e.g., a first authentication client webpage data 520 and the like, is a non-malicious data. 本发明实施例中,恶意数据指对用户终端内的数据进行窃取、毁坏等非法行为的病毒、木马等等。 Embodiments of the present invention, malicious data refers to data in the user terminal steal, destroy illegal acts like a virus, trojan like. 若第一服务器510验证第一客户端520的数据是上述恶意数据,则第一服务器510拒绝将该恶意数据传输至长连接服务器540,若经第一服务器510的验证,第一客户端520的数据是非恶意数据,则第一服务器510将该数据传输至长连接服务器540。 If the first server 510 to verify the data the first client terminal 520 is the above malicious data, the server 510 first reject malicious data to the long connection server 540, when the first authentication server 510 via the first client 520 data is non-malicious data, the first server 510 transmits the data server 540 is connected to the length.

[0102] 优选的,本发明实施例中,第一客户端520的数据经合法性验证之后,第一服务器510还可以对第一客户端520的数据进行加密处理,更加有效地提高数据传输的安全性。 [0102] Preferably, the embodiment of the present invention, the first client terminal 520 via the data after the legality verification, the first server to the first client 510 may also encrypt the data terminal 520, to more effectively improve the data transmission safety. 通过第一服务器510对第一客户端520的数据进行安全性验证及处理,能够更加有效地保证传输数据的安全性,防止在数据传输的过程中,一些恶意网址等附加到传输的数据中,对用户的终端或者客户端造成损害。 Security and authentication processing for a first data server 510 of the first client 520 through, can be more effectively ensure the security of data transmission, to prevent the process of data transmission, additional data transmitted to a malicious Web site or the like, the user or the client terminal damage. [0103] 第一服务器510对第一客户端520的数据及其标识信息进行合法性验证之后,将经过合法性验证的数据及第一客户端520的标识信息发送至对应的长连接服务器540。 After [0103] The first server 510 first end 520 and the client data identification information to verify the legitimacy of the verified legal data and identification information of the first client 520 transmits to the server 540 connected to a corresponding length. 第一服务器510与长连接服务器540可以通过多种协议进行通信,例如,传输控制协议、用户数据报协议等。 The first long link server 510 may communicate with the server 540, e.g., transmission control protocol, user datagram protocol through multiple protocols. 优选的,本发明实施例中,第一服务器510与长连接服务器540通过HTTP请求通信。 Preferably, embodiments of the present invention, the first server 510 and the long connection request server 540 via HTTP communication. HTTP支持多种服务器模式、简单快速,因此通过HTTP请求通知能够提高数据传输效率。 HTTP server supports multiple modes, simple and rapid, thus HTTP request notification data transmission efficiency can be improved.

[0104] 当长连接服务器540接收到经第一服务器510发送的第一客户端520中的数据及其标识信息时,长连接服务器540根据第一客户端520的标识信息确定对应的第二客户端530,并根据长连接服务器540存储的在线设备列表中记录的信息确定与第二客户端530之间长连接的状态。 [0104] When the length of the connection server 540 receives the data and the identification information of the first client 520 via the server 510 transmits a first in, the server 540 determines that the second long link corresponding to the customer according to the customer identification information of the first end 520 of end 530, between 530 and determine the state of the long connection according to the second client online device information list 540 stored in the server connection length recorded.

[0105] 长连接服务器540中存储的在线设备列表记录与该长连接服务器540保持长连接的各个客户端的标识信息。 [0105] Long-line connection device list 540 stored in the server 540 records the identification information holding each client connected to the elongated length of the connection server. 若某一个客户端与该长连接服务器540之间的长连接断开,则在长连接服务器540的在线设备列表中删除已断开的客户端对应的标识信息。 If a client disconnects the long connection between the long connection server 540, deletes the identification information corresponding to the client has been disconnected in the long list of online devices connected to the server 540. 本发明实施例中,长连接服务器540中存储的在线设备列表能够实时更新,保证长连接服务器540能够及时更新与其建立长连接的客户端的信息,避免因在线设备列表数据更新不及时导致向已断开的客户端发送数据,导致数据包丢失等恶性后果,提高数据传输的安全性。 Embodiments of the present invention, a list of online device long connection to the server 540 is stored can be updated in real time, to ensure the long connection server 540 can update its setup information client long link, to avoid online apparatus list data not updating lead to has been broken open the client sends data, resulting in data packet loss and other serious consequences, improve the security of data transmission.

[0106] 长连接服务器540确定是否发送第一客户端520中的数据至第二客户端530的具体方式为,若根据长连接服务器540的在线设备列表,长连接服务器540与第二客户端530之间长连接的状态为连接,长连接服务器540将第一客户端520的数据发送至第二客户端530。 [0106] long connection server 540 determines whether the data the first client 520 is sent to the second client embodiment 530 is particularly, if the server is connected in accordance with a long list of online devices 540, server 540 is connected to the second long client 530 connection state for the connection between the long, long connection client server 540 first data 520 is sent to the second client 530. 若根据长连接服务器540的在线设备列表,长连接服务器540与第二客户端530之间此长连接的状态为断开,则在该长连接服务器540中存储第一客户端520的数据,然后,待该长连接的状态恢复之后,再将长连接服务器540中存储的第一客户端520的数据发送至第二客户端530。 The long list if the line connected to the server apparatus 540, server 540 is connected to the second long client 530 is connected between the length of this state is turned off, then the length of a first connection to the server 540 stores the client data 520, and , after the state of the long link to be restored, then the first client server 540 is connected length of data stored in the second end 520 is transmitted to the client 530.

[0107] 由上述可知,第二客户端530从长连接服务器540处接收第一客户端520中的数据之前,需要与长连接服务器540建立长连接。 [0107] From the foregoing, the second client 530 prior to the data the first client 520 receives from server 540 connected to the long, a long connection to the server 540 is connected to the long established. 同理,第一客户端520从长连接服务器540处接收第二客户端530中的数据之前,同样需要与长连接服务器540建立长连接。 Before Similarly, the second data of the first client 520 receives the client 530 from the server 540 connected to the long, long connection also need to establish the connection to the server 540 long. 这里需要注意,与第一客户端对应的长连接服务器和与第二客户端对应的长连接服务器可以是相同的也可以是不同的服务器,在图5中都用540来表示。 It should be noted, with a first length corresponding to the client and the server is connected to a second length corresponding to the client connected to the server may be the same or may be different servers, in FIG. 5 are represented by 540.

[0108] 本发明实施例上述部分以第一客户端为数据发送端的角度出发进行描述。 [0108] Example embodiments of the present invention in the above section a first client is a data transmission terminal departure angle will be described. 考虑到本发明实施例的数据传输过程中是一个双向传输的过程,第一客户端在作为数据发送端的同时,也可以作为数据接收端存在。 Considering the data transmission process embodiment of the present invention is a process of two-way transmission, the first client at the same time as the data transmitting side, the receiving side can be used as the data is present. 下文以第一客户端作为数据接收端的角度出发,进行详细阐述。 Hereinafter the first client data receiving side as an angle of view, be elaborated.

[0109] 现具体介绍第一客户端520与长连接服务器540建立长连接的过程。 [0109] Referring now specifically describes the first client 520 and server 540 connect the long process of establishing a long connection.

[0110] 第一客户端520根据第一客户端520的标识信息确定对应的长连接服务器540,并向该长连接服务器540发送连接建立请求,该连接建立请求中携带有第一客户端520的标识信息。 [0110] The first client terminal 520 the identification information 520 is determined according to the first client server 540 connected to the corresponding length, and the length of the connection server 540 transmits a connection establishment request, the connection establishment request carries the first client 520 identification information. 长连接服务器540接收到第一客户端520发送的连接建立请求之后,长连接服务器540根据连接建立请求中携带的第一客户端520的标识信息对第一客户端520进行身份验证。 Long connection server 540 receives the client 520 after establishing a first connection request, the server 540 long connection establishment request carries the first client transmits the identification information according to the connection end 520 of the first client 520 for authentication. 优选的,本发明实施例中,长连接服务器540还可以根据第一客户端520的其他设备信息对第一客户端520进行身份验证,以保证该第一客户端520为接收第二客户端530中的数据接收端。 Embodiment, the length 540 may also be connected to the server 520 for information about other devices first authenticate the client terminal 520 according to a first preferred embodiment of the customer, the present invention is to ensure that the first client 520 to receive a second client 530 data receiving end. 第一客户端520的其他设备信息可以是第一客户端520的设备信息,还可以是第一终端的设备信息,优选的,本发明实施例中,其他设备信息包括第一终端的MEI号码、第一终端的设备名称以及第一终端的系统版本号。 Other information about the first client device 520 may be information of a first client device 520 may also be information of the first terminal device, the preferred, embodiment of the present invention, additional information includes a device number of the first terminal MEI, system version name of the first terminal apparatus and the first terminal.

[0111] 长连接服务器540根据第一客户端520的标识信息及其设备信息对第一客户端520进行身份验证之后,若第一客户端520未能通过身份验证,长连接服务器540拒绝与其建立长连接,若第一客户端520通过身份验证,则长连接服务器540与第一客户端520建立长连接。 [0111] After the first long link server 540 to authenticate the client 520 in accordance with customer identification information and the first end 520 of the device information, the first client 520 if the authentication fails, the server 540 denied long connection with the establishment of a long connection, if the first client authenticated 520, the length 540 is connected with the first client server 520 to establish a long connection.

[0112] 第一客户端520与长连接服务器540成功建立长连接之后,第一客户端520从长连接服务器540处接收第二客户端530中的数据,并根据第二客户端530中的数据进行相应处理以保证第一客户端520与第二客户端530之间实现信息共享,并能够在第一客户端520上继续执行之前在第二客户端530未执行结束的操作,例如继续进行网页内容阅读。 After [0112] the first client 520 and server 540 connect the long length of the connection is successfully established, the first client 520 receives data from the second client 530 from the server 540 connected to the long, and the data of the second client 530 to ensure that the corresponding processing 520 between a first client 530 to share information with the second client, and the client can be the first client 520 in the second end 530 before continuing operation is not performed, for example, to continue page read the contents.

[0113] 依据本发明实施例,第一客户端520能够发送数据至第二客户端530,实现了第一客户端520向第二客户端530进行数据传输,解决了现有技术提到的客户端间无法进行数据传输的问题,进一步解决因不同客户端间无法进行数据传输,新客户端启用时必须重新引入用户需求,从而导致资源浪费以及效率低下的问题。 [0113] According to an embodiment of the present invention, the first client 520 can send data to the second client 530, client 520 implements a first data transmission to the second client 530, the client prior art solution mentioned the problem can not be transferred between data terminal, further address the data can not be transmitted between different clients, new customers must re-introduced when the user needs to enable end, resulting in a waste of resources and low efficiency.

[0114] 根据上述任意一个优选实施例或多个优选实施例的组合,本发明实施例能够达到如下有益效果: [0114] Example embodiments of the composition or more preferred embodiments according to any one preferred embodiment, embodiments of the present invention can achieve the following advantages:

[0115] 依据本发明实施例,第一客户端能够发送数据至第二客户端,实现了第一客户端向第二客户端进行数据传输,解决了现有技术提到的客户端间无法进行数据传输的问题,进一步解决因不同客户端间无法进行数据传输,新客户端启用时必须重新引入用户需求,从而导致资源浪费以及效率低下的问题。 [0115] According to an embodiment of the present invention, a first client to transmit data to the second client, the first client implements data transmission to a second client, that can not be resolved between the client prior art mentioned the problem of data transmission, further address the data can not be transmitted between different clients, new customers must re-introduced when the user needs to enable end, resulting in a waste of resources and low efficiency.

[0116] 本发明一个实施例公开了Al、一种数据传输方法,应用于第一客户端与第二客户端间能够进行数据传输的情况,包括: [0116] An embodiment of the present invention disclose Al, a data transmission method, applied to a case capable of data transmission between a first client and a second client, comprising:

[0117] 将所述第一客户端中的数据及其标识信息传输至第一服务器,由所述第一服务器转发至根据所述第一客户端的标识信息确定的长连接服务器; [0117] The data of the first client and the identification information transmitted to the first server, the first server forwards the connection to the server is determined according to the length of the first identification information of the client;

[0118] 根据所述第二客户端与所述长连接服务器的长连接状态,确定是否将所述第一客户端的数据转发至所述第二客户端。 [0118] The length of the connection state of the second client of the long connection to the server determines whether the data of the first client to the second client forwards.

[0119] A2、根据权利要求Al所述的方法,其中,由所述第一服务器转发所述第一客户端中的数据及其标识信息至根据所述第一客户端的标识信息确定的长连接服务器,包括: [0119] A2, The method of claim Al, wherein said first data forwarded by the first server and the client identification information according to the connection identification information of the first client to determine the length server, including:

[0120] 由所述第一服务器对所述第一客户端中的数据及其标识信息进行安全性验证; [0120] security verification data to the first client and the identification information by the first server;

[0121] 将通过安全性验证的所述第一客户端中的数据及其标识信息转发至所述长连接服务器。 [0121] The security validation data by the first client and forwarded to the identification information of the long connection server.

[0122] A3、根据权利要求A2所述的方法,其中,通过安全性验证的所述第一客户端的数据为非恶意数据,通过安全性验证的所述第一客户端的标识信息为在所述第一服务器中已注册的所述第一客户端的标识信息。 [0122] A3, A2 method as claimed in claim, wherein the security validation data through a first non-malicious client data, through the identification information of the first security authentication to the client the first server has been registered identification information of the first client.

[0123] A4、根据权利要求Al至A3任一项所述的方法,其中,根据所述第二客户端与所述长连接服务器的长连接状态,确定是否将所述第一客户端的数据转发至所述第二客户端,包括: [0123] A4, Al according to claims method according to any one of A3, wherein, according to the second client and the server state of connection of long length, it is determined whether the data of the first client forwarding to the second client, comprising:

[0124] 所述第二客户端与所述长连接服务器的长连接状态为连接状态时,将所述第一客户端的数据转发至所述第二客户端; Long connection state of [0124] the second client and the server is connected to the long connection state, the first client data forwarded to the second client;

[0125] 所述第二客户端与所述长连接服务器的长连接状态为非连接状态时,在所述长连接服务器中存储所述第一客户端中的数据;以及,当所述第二客户端与所述长连接服务器之间的长连接状态从非连接状态转为连接状态时,由所述长连接服务器将已存储的所述第一客户端中的数据发送至所述第二客户端。 When [0125] the second client connection state of the long length of the non-connected state of the connection to the server, the first client data stored in said long connection server; and, when the second long connection state between the client and the server is connected into a long non-connected state from connected state, the first client data in the server connected by the length stored sent to the second client end.

[0126] A5、根据权利要求Al至A4任一项所述的方法,其中,按照如下步骤在所述第二客户端与所述长连接服务器间建立长连接,包括: [0126] A5, A4 A method according to any one of claims to Al, wherein the following steps to establish the long connection between the client and the second long connection server, comprising:

[0127] 所述第二客户端根据所述第二客户端的标识信息请求与所述长连接服务器建立长连接; [0127] According to the second client to the second client identification information request to the connection server to establish a long connector length;

[0128] 所述长连接服务器根据所述第二客户端的标识信息对所述第二客户端进行身份验证; [0128] The long connection to the second server authenticates the client to the second client identification information;

[0129] 所述长连接服务器与通过所述身份验证的所述第二客户端建立长连接。 [0129] The long connection to the server authenticated by the second client to establish a long connection.

[0130] A6、根据权利要求A5所述方法,其中,所述长连接服务器还根据所述第二客户端所位于的终端的设备信息进行身份验证。 [0130] A6, A5 according to the method as claimed in claim wherein, the long connection authentication server further information apparatus according to the second client terminal is located.

[0131] A7、根据权利要求A6所述的方法,其中,所述设备信息包括下列至少之一: [0131] A7, A6 method as claimed in claim, wherein the device information includes at least one of the following:

[0132] 所述终端的国际移动设备身份码MEI号码; [0132] MEI International Mobile Equipment Identity number of the terminal;

[0133] 所述终端的设备名称; [0133] The name of the terminal apparatus;

[0134] 所述终端的系统版本号。 System version number of the [0134] terminal.

[0135] AS、根据权利要求Al至A7任一项所述的方法,其中,所述第二客户端与所述长连接服务器的长连接状态的确定方式包括: [0135] AS, Al to A7 A method according to any claim wherein the second client determines how long the length of the connection state of the connection server comprises:

[0136] 在所述长连接服务器存储的在线设备列表中查询所述第二客户端与所述长连接服务器间的长连接状态,其中,所述在线设备列表中存储有与所述长连接服务器已建立长连接的各客户端的标识信息; [0136] In the list of query online device connected to the server stored in the long length of the second connection state between the client and server connection length, wherein the stored list of online devices of the long connection server We have established identification information of each client's long connection;

[0137] 若查询到所述第二客户端的标识信息,则确定所述第二客户端与所述长连接服务器的长连接状态为连接状态; [0137] If the query identification information to the second client, the second client is determined that the long length of the connection server connection state is a connection state;

[0138] 若未查询到所述第二客户端的标识信息,则确定所述第二客户端与所述长连接服务器的长连接状态为非连接状态。 [0138] If no identification information of the inquiry to the second client, the second client is determined that the state of connection of long length server disconnected state.

[0139] A9、根据权利要求Al至AS任一项所述的方法,其中,所述第一客户端中的数据包括下列至少之一: [0139] A9, Al A method according to claim any one of claims to AS, wherein the data the first client comprises at least one of the following:

[0140] 所述第一客户端的收藏夹中收藏的各网址; [0140] The first client Favorites URL each collection;

[0141] 所述第一客户端的常用网址; [0141] The first commonly used URLs client;

[0142] 所述第一客户端当前打开的网页; [0142] The first client currently open page;

[0143] 所述第一客户端根据用户指令调用的用户数据。 [0143] The user of the first client data of the user's instruction calls.

[0144] A10、根据权利要求Al至A9任一项所述的方法,其中,所述第一客户端与所述第二客户端具备相同的标识信息。 [0144] A10, A9 A method according to any one of claims to Al, wherein the first client and the second client includes the same identification information.

[0145] All、根据权利要求AlO所述的方法,其中,所述标识信息包括: [0145] All, AlO method according to claim, wherein the identification information comprises:

[0146] 所述第一客户端的用户登陆的账户信息; [0146] The user of the first client login account information;

[0147] 为所述第一客户端生成的唯一标识。 [0147] is a unique identification generated by the first client.

[0148] A12、根据权利要求Al至All任一项所述的方法,其中,所述第一服务器通过超文本传输协议HTTP请求与所述长连接服务器通信。 [0148] A12, All A method according to claim any one of Al according to, wherein said first server requests a communication connection with the server via the long hypertext transfer protocol, HTTP.

[0149] A13、根据权利要求Al至A12任一项所述的方法,其中, [0149] A13, A12 A method according to any one of claims to Al, wherein

[0150] 所述第一客户端和/或第二客户端设置于移动终端中。 [0150] The first client and / or the second client is provided in the mobile terminal.

[0151] 本发明另一个实施例公开了B14、一种客户端,应用于本客户端与其他客户端间能够进行数据传输的情况,包括: [0151] Another embodiment of the present invention disclosed a B14 embodiment, a client-side, the situation can be applied to the present data transmission between the client and the other clients, comprising:

[0152] 数据获取器,配置为获取本客户端的数据及其标识信息; [0152] data acquirer configured to acquire data about the client and the identification information;

[0153] 数据传输器,配置为传输所述数据获取器获取的本客户端中的数据及其标识信息至第一服务器,由所述第一服务器转发至根据本客户端的标识信息确定的长连接服务器,并根据其他客户端与所述长连接服务器的长连接状态,确定是否将本客户端中的数据转发至所述其他客户端。 [0153] Data transmitter configured to transmit the present data acquisition data acquired by the client and identification information to the first server, the first server forwards the connection to the client identification information according to the determined length the server and other clients in accordance with the state of connection of long length to the server, determines whether the data present in the client forwarded to the other clients.

[0154] B15、根据权利要求B14所述的客户端,其中,还包括: [0154] B15, B14 claimed in claim client end, wherein, further comprising:

[0155] 数据接收器,配置为接收所述长连接服务器转发的、来自所述其他客户端的数据。 [0155] The data receiver, configured to receive the forwarded long connection server, the data from other clients.

[0156] B16、根据权利要求B14或B15所述的客户端,其中,所述数据传输器还配置为: [0156] B16, B14 or claim B15 in the client, wherein the data transmission is further configured to:

[0157] 将本客户端中的数据及其标识信息发送至所述第一服务器,由所述第一服务器对本客户端中的数据及其标识信息进行安全性验证,并由所述第一服务器将通过安全性验证的本客户端中的数据及其标识信息发送至所述长连接服务器。 [0157] The transmission data present in the client and identification information to the first server, security validation data present in the client and the identification information by the first server by the first server the present data by client security verification and identification of the long connection information to the server.

[0158] B17、根据权利要求B16所述的客户端,其中,通过安全性验证的本客户端的数据为非恶意数据,通过安全性验证的本客户端的标识信息为在所述第一服务器中已注册的本客户端的标识信息。 [0158] B17, B16 of the client according to claim, wherein the data about the client security verification of non-malicious data, the identification information authenticated by the security client as present in the first server identification information registered in this client.

[0159] B18、根据权利要求B14至B17任一项所述的客户端,其中, [0159] B18, B14 to claim B17 to any one of the client, wherein,

[0160] 本客户端和/或所述其他客户端设置于移动终端中。 [0160] The present client and / or the other client in the mobile terminal is provided.

[0161] B19、根据权利要求B14至B18任一项所述的客户端,其中,本客户端中的数据包括下列至少之一: [0161] B19, B14 client according to claim any one of the B18, wherein the data present in the client includes at least one of the following:

[0162] 本客户端的收藏夹中收藏的各网址; [0162] each website of the client's Favorites collection;

[0163] 本客户端的常用网址; [0163] Frequently the website of the client;

[0164] 本客户端当前打开的网页; [0164] This client is currently open page;

[0165] 本客户端根据用户指令调用的用户数据。 User Data [0165] The present client calls according to a user instruction.

[0166] 本发明另一个实施例公开了C20、一种数据传输系统,应用于第一客户端与第二客户端间能够进行数据传输的情况,包括权利要求C14至C19任一项所述的第一客户端,权利要求C14至C19任一项所述的第二客户端,根据所述第一客户端的标识信息确定的长连接服务器以及第一服务器,其中, [0166] Another embodiment of the present invention discloses C20, a data transmission system, it can be applied to the case of data transmission between a first client and a second client, comprising any of C14 to C19 as claimed in claim one of the a first client, the second client according to any one of claims C14 to C19, according to the identification information of the first client and determining the length of a first server connected to the server, wherein

[0167] 所述第一客户端,配置为传输所述第一客户端中的数据及其标识信息至第一服务器; [0167] The first client is configured to transmit the first data in the client and the identification information to the first server;

[0168] 所述第一服务器,配置为接收所述第一客户端发送的数据及其标识信息,并转发至所述长连接服务器; [0168] The first server is configured to receive the first data sent by the client and identification information, and forwarded to a long connection to the server;

[0169] 所述长连接服务器,配置为与所述第二客户端建立长连接;以及,接收所述第一服务器转发的所述第一客户端中的数据及其标识信息,根据所述第二客户端与所述长连接服务器的长连接状态,确定是否将所述第一客户端的数据转发至所述第二客户端; [0169] The long connection server, configured to establish a connection with the length of the second client; and receiving the data forwarded by the first server and a first client identification information, based on the first two connecting client and the long length of the connection state of the server, determines whether the data to the first client forwarding the second client;

[0170] 所述第二客户端,配置为接收经所述长连接服务器发送的数据。 [0170] the second client, configured to receive data transmitted through the long connection server. [0171] 在此处所提供的说明书中,说明了大量具体细节。 [0171] In the description provided herein, numerous specific details are described. 然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。 However, it can be understood that the embodiments of the present invention may be practiced without these specific details. 在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。 In some examples, not shown in detail in well-known methods, structures and techniques, so as not to obscure the understanding of this description.

[0172] 类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。 [0172] Similarly, it should be understood that the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects in the description of exemplary embodiments of the present invention, various features of the invention are sometimes grouped into a single together embodiment, FIG, or the description thereof. 然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。 However, the methods disclosed herein should not be interpreted as reflecting an intention: that the claimed invention requires more features than in each of the claims expressly recited. 更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。 More specifically, as reflected in the book as the following claims, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. 因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。 Thus, the claims following the specific embodiments are hereby incorporated into this Detailed Description explicitly, with each claim itself as a separate embodiment of the present invention.

[0173] 本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。 [0173] Those skilled in the art can understand may be made to change adaptively embodiment device module and provided them with one or more devices different from this embodiment of the. 可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。 The embodiments may be modules or units into one module or component or components or units, and in addition they can be divided into a plurality of sub-modules or sub-units or sub-assemblies. 除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。 Any method other than such features and / or process, or at least some of the units are mutually exclusive, any combination of the present specification (including the accompanying claims, abstract and drawings) All of the features disclosed in, or disclosed herein and such All process units or equipment combination. 除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。 Unless expressly stated otherwise, each feature of the present specification (including the accompanying claims, abstract and drawings) may be provided by the same disclosed, characterized equivalents or similar purpose may be substituted.

[0174] 此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。 [0174] Moreover, those skilled in the art will appreciate that although in some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant in the present within the scope of the invention and form different embodiments. 例如,在权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。 For example, in any combination can be used in the manner of any one of claims embodiment, as claimed.

[0175] 本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。 Each member [0175] embodiment of the present invention may be implemented in hardware, or as software modules running on one or more processors, or in a combination thereof. 本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP )来实现根据本发明实施例的数据传输设备中的一些或者全部部件的一些或者全部功能。 Those skilled in the art will appreciate that a microprocessor may be used or a digital signal processor (DSP) in practice to implement some or all functions of the data transmission device in the embodiment, some or all parts of the embodiment according to the present invention. 本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。 The present invention may also be implemented as a part or all of the device or apparatus programs for performing the methods described herein (e.g., computer programs and computer program products). 这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。 Such a program implementing the present invention may be stored on a computer-readable medium, or may have the form of one or more signals. 这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。 Such signals can be downloaded from the Internet website, or provided on a carrier signal, or in any other form.

[0176] 应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。 [0176] It should be noted that the embodiments of the present invention, the above-described embodiments illustrate rather than limit the invention, and those skilled in the art without departing from the scope of the appended claims may be devised alternative embodiments. 在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。 In the claims, should not be limited by any reference signs located claimed configured to claims between parentheses. 单词“包含”不排除存在未列在权利要求中的元件或步骤。 The word "comprising" does not exclude the presence of elements or steps not listed in the appended claims. 位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。 Preceding an element of the word "a" or "an" does not exclude the presence of a plurality of such elements. 本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。 The present invention by means of hardware comprising several distinct elements, and by means of a suitably programmed computer implemented. 在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。 Unit claims enumerating several means, several of these means may be embodied by the same item of hardware. 单词第一、第二、以及第三等的使用不表示任何顺序。 Word of the first, second, and third, etc. does not denote any order. 可将这些单词解释为名称。 These words can be interpreted as names.

[0177] 至此,本领域技术人员应认识到,虽然本文已详尽示出和描述了本发明的多个示例性实施例,但是,在不脱离本发明精神和范围的情况下,仍可根据本发明公开的内容直接确定或推导出符合本发明原理的许多其他变型或修改。 [0177] Thus, the skilled artisan will recognize that although in detail herein, have been shown and described, a plurality of exemplary embodiments of the present invention, however, without departing from the spirit and scope of the invention, still according to the present SUMMARY disclosed determined directly or derived numerous other variations or modifications consistent with the principles of the present invention. 因此,本发明的范围应被理解和认定为覆盖了所有这些其他变型或修改。 Accordingly, the scope of the invention should be recognized and understood to cover all such variations or modifications other.

Claims (10)

  1. 1.一种数据传输方法,应用于第一客户端与第二客户端间能够进行数据传输的情况,包括: 将所述第一客户端中的数据及其标识信息传输至第一服务器,由所述第一服务器转发至根据所述第一客户端的标识信息确定的长连接服务器; 根据所述第二客户端与所述长连接服务器的长连接状态,确定是否将所述第一客户端的数据转发至所述第二客户端。 1. A data transmission method, applied to a case capable of data transmission between a first client and a second client, comprising: the first client data and the identification information transmitted to the first server, by the according to the first server forwards the connection to the server identification information of the length of the first client determined; according to the second client connection to the server of the long length of the connection state, it is determined whether the data of the first client forwarded to the second client.
  2. 2.根据权利要求1所述的方法,其中,由所述第一服务器转发所述第一客户端中的数据及其标识信息至根据所述第一客户端的标识信息确定的长连接服务器,包括: 由所述第一服务器对所述第一客户端中的数据及其标识信息进行安全性验证; 将通过安全性验证的所述第一客户端中的数据及其标识信息转发至所述长连接服务器。 The method according to claim 1, wherein said first data forwarded by the first server and the client identification information according to the length information of the first connection to the server client identification determined, comprising : security verification data to the first client and the identification information by the first server; forwarding said data to said length by a first security authentication client identification information and connect to the server.
  3. 3.根据权利要求2所述的方法,其中,通过安全性验证的所述第一客户端的数据为非恶意数据,通过安全性验证的所述第一客户端的标识信息为在所述第一服务器中已注册的所述第一客户端的标识信息。 The method according to claim 2, wherein the security validation data through a first non-malicious client data, the identification information authenticated by the first security client to the first server identification information of the first client has been registered.
  4. 4.根据权利要求1至3任一项所述的方法,其中,根据所述第二客户端与所述长连接服务器的长连接状态,确定是否将所述第一客户端的数据转发至所述第二客户端,包括: 所述第二客户端与所述长连接服务器的长连接状态为连接状态时,将所述第一客户端的数据转发至所述第二客户端;` 所述第二客户端与所述长连接服务器的长连接状态为非连接状态时,在所述长连接服务器中存储所述第一客户端中的数据;以及,当所述第二客户端与所述长连接服务器之间的长连接状态从非连接状态转为连接状态时,由所述长连接服务器将已存储的所述第一客户端中的数据发送至所述第二客户端。 4. The method according to any one of claims 1 to 3, wherein, according to the second client and the server state of connection of long length, it is determined whether the forward data to the first client a second client, comprising: a second client and the state of connection of long length to the server when the connection state, the first client data is forwarded to the second client; the second ` client connection to the server of the long length of the connection state of non-connected state, the data stored in the first client in the long connection server; and, when the second client is connected to the long when the length of the connection state between the connection state from the server into the non-connected state, the data of the first client by a server connected to the long-stored transmitted to the second client.
  5. 5.根据权利要求1至4任一项所述的方法,其中,按照如下步骤在所述第二客户端与所述长连接服务器间建立长连接,包括: 所述第二客户端根据所述第二客户端的标识信息请求与所述长连接服务器建立长连接; 所述长连接服务器根据所述第二客户端的标识信息对所述第二客户端进行身份验证; 所述长连接服务器与通过所述身份验证的所述第二客户端建立长连接。 5. A method according to any one of claims 1 to 4, wherein the length of the following steps to establish the connection between the second client of the long connection server, comprising: the second client according to the information identifying the second client requests the server to establish connection with the long length; said connection server authenticate length of the second client according to the identification information of the second client; the server is connected via the long the second client of said authenticated terminal to establish a long connection.
  6. 6.根据权利要求5所述方法,其中,所述长连接服务器还根据所述第二客户端所位于的终端的设备信息进行身份验证。 6. The method as claimed in claim 5, wherein, the long connection authentication server further information apparatus according to the second client terminal is located.
  7. 7.根据权利要求6所述的方法,其中,所述设备信息包括下列至少之一: 所述终端的国际移动设备身份码IMEI号码; 所述终端的设备名称; 所述终端的系统版本号。 7. The method according to claim 6, wherein the device information includes at least one of the following: International Mobile Equipment Identity (IMEI) number of the terminal; the name of the terminal apparatus; system version number of the terminal.
  8. 8.根据权利要求1至7任一项所述的方法,其中,所述第二客户端与所述长连接服务器的长连接状态的确定方式包括: 在所述长连接服务器存储的在线设备列表中查询所述第二客户端与所述长连接服务器间的长连接状态,其中,所述在线设备列表中存储有与所述长连接服务器已建立长连接的各客户端的标识信息; 若查询到所述第二客户端的标识信息,则确定所述第二客户端与所述长连接服务器的长连接状态为连接状态; 若未查询到所述第二客户端的标识信息,则确定所述第二客户端与所述长连接服务器的长连接状态为非连接状态。 8. A method according to any one of claims 1 to 7, wherein, said second mode determining the long client connection state of the long connection server comprises: a long list of devices connected to the line stored in the server the second client query connection state between the long length of the connection server, wherein the stored list of online devices of the long established connection server identification information for each client connection length; if queried identification information of the second client, the second client is determined that the long length of the connection server connection state is a connection state; if no query to the second client identification information, determining the second long long client and the state of connection of the server disconnected state.
  9. 9.一种客户端,应用于本客户端与其他客户端间能够进行数据传输的情况,包括: 数据获取器,配置为获取本客户端的数据及其标识信息; 数据传输器,配置为传输所述数据获取器获取的本客户端中的数据及其标识信息至第一服务器,由所述第一服务器转发至根据本客户端的标识信息确定的长连接服务器,并根据其他客户端与所述长连接服务器的长连接状态,确定是否将本客户端中的数据转发至所述其他客户端。 A client, and the client is applied between this other case where clients capable of data transmission, comprising: a data acquirer configured to acquire the data and the identification information about the client; data transmitter configured to transmit the said data acquisition client obtains the data present in its identification information to the first server, said first server forwards a long connection to the server according to the identification information about the client is determined, and in accordance with the length of other client a long connection to the server connection state, it is determined whether the data is present in the client forwards to the other clients.
  10. 10.一种数据传输系统,应用于第一客户端与第二客户端间能够进行数据传输的情况,包括权利要求9所述的第一客户端,权利要求9所述的第二客户端,根据所述第一客户端的标识信息确定的长连接服务器以及第一服务器,其中, 所述第一客户端,配置为传输所述第一客户端中的数据及其标识信息至第一服务器;所述第一服务器,配置为接收所述第一客户端发送的数据及其标识信息,并转发至所述长连接服务器; 所述长连接服务器,配置为与所述第二客户端建立长连接;以及,接收所述第一服务器转发的所述第一客户端中的数据及其标识信息,根据所述第二客户端与所述长连接服务器的长连接状态,确定是否将所述第一客户端的数据转发至所述第二客户端; 所述第二客户端,配置为接收经所述长连接服务器发送的数据。 10. A data transmission system, can be applied to the case of data transmission between a first client and a second client, comprising a first client of claim 9 wherein the second client according to claim 9, the identification information of the first client and determining the length of a first server connected to the server, wherein the first client is configured to transmit the first data and the client identification information to the first server; the said first server is configured to receive the first data sent by the client and identification information, and forwarded to a long connection to the server; the long connection server configured to communicate with the second client to establish a long connection; and, receiving the first data forwarded by the server and the identification information of the first client, the second connection state according to the length of the long client connection to the server, determining whether the first client forwarding the data terminal to the second client; the second client, the server is configured to receive data transmitted from the long connection.
CN 201310456279 2013-09-29 2013-09-29 Data transmission method, device and system CN103491184A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310456279 CN103491184A (en) 2013-09-29 2013-09-29 Data transmission method, device and system

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN 201310456279 CN103491184A (en) 2013-09-29 2013-09-29 Data transmission method, device and system
PCT/CN2014/087203 WO2015043455A1 (en) 2013-09-29 2014-09-23 Data transmission method, device, and system
US15025401 US20160234307A1 (en) 2013-09-29 2014-09-23 Data transmission method, device, and system

Publications (1)

Publication Number Publication Date
CN103491184A true true CN103491184A (en) 2014-01-01

Family

ID=49831137

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310456279 CN103491184A (en) 2013-09-29 2013-09-29 Data transmission method, device and system

Country Status (1)

Country Link
CN (1) CN103491184A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103944923A (en) * 2014-05-14 2014-07-23 沈文策 Network information processing system and method
WO2015043455A1 (en) * 2013-09-29 2015-04-02 北京奇虎科技有限公司 Data transmission method, device, and system
CN104980481A (en) * 2014-10-22 2015-10-14 腾讯科技(深圳)有限公司 Method and system for transmitting data between electronic terminals and electronic terminal
CN107395686A (en) * 2017-06-28 2017-11-24 甘棠软件系统(上海)有限公司 Persistent connection switching methods and devices, and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020184494A1 (en) * 2001-06-04 2002-12-05 Awadalla Emad M. Methods for using embedded printer description language as a security tool and printers and systems with whcih the method may be used
CN101064659A (en) * 2006-04-28 2007-10-31 腾讯科技(深圳)有限公司 Data transmission system and method
CN101072385A (en) * 2007-06-27 2007-11-14 蒋晓海 Method for realizing mobile instant messaging by socket direct connection of mobile phone
CN101808090A (en) * 2010-03-09 2010-08-18 上海华探通讯技术有限公司 On-site intelligent mobile information service system
CN102098317A (en) * 2011-03-22 2011-06-15 浙江中控技术股份有限公司 Data transmitting method and system applied to cloud system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020184494A1 (en) * 2001-06-04 2002-12-05 Awadalla Emad M. Methods for using embedded printer description language as a security tool and printers and systems with whcih the method may be used
CN101064659A (en) * 2006-04-28 2007-10-31 腾讯科技(深圳)有限公司 Data transmission system and method
CN101072385A (en) * 2007-06-27 2007-11-14 蒋晓海 Method for realizing mobile instant messaging by socket direct connection of mobile phone
CN101808090A (en) * 2010-03-09 2010-08-18 上海华探通讯技术有限公司 On-site intelligent mobile information service system
CN102098317A (en) * 2011-03-22 2011-06-15 浙江中控技术股份有限公司 Data transmitting method and system applied to cloud system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015043455A1 (en) * 2013-09-29 2015-04-02 北京奇虎科技有限公司 Data transmission method, device, and system
CN103944923A (en) * 2014-05-14 2014-07-23 沈文策 Network information processing system and method
CN104980481A (en) * 2014-10-22 2015-10-14 腾讯科技(深圳)有限公司 Method and system for transmitting data between electronic terminals and electronic terminal
CN107395686A (en) * 2017-06-28 2017-11-24 甘棠软件系统(上海)有限公司 Persistent connection switching methods and devices, and system
CN107395686B (en) * 2017-06-28 2018-06-05 甘棠软件系统(上海)有限公司 The method of switching the connection length, devices and systems

Similar Documents

Publication Publication Date Title
US20150188949A1 (en) Cloud-based network security
US20120284786A1 (en) System and method for providing access credentials
US20130227291A1 (en) Methods and apparatuses for secure communication
US20080127323A1 (en) Detecting stolen authentication cookie attacks
US20150113172A1 (en) Deploying and managing networked devices
US20100199086A1 (en) Network transaction verification and authentication
JP2010532107A (en) Secure transfer of software sim credentials
CN1946022A (en) Method and system for switching third party landing and third party network and service server
US8151336B2 (en) Devices and methods for secure internet transactions
US20120284506A1 (en) Methods and apparatus for preventing crimeware attacks
US20110093710A1 (en) Low-latency peer session establishment
US20100153702A1 (en) Tls key and cgi session id pairing
JP2005099980A (en) Service provision method, service provision program, host device, and service provision device
US20110281567A1 (en) Establishing sessions between devices in a network
US20130086679A1 (en) Responses To Server Challenges Included In A Hypertext Transfer Protocol Header
CN101510877A (en) Single-point logging-on method and system, communication apparatus
CN101179583A (en) Method and equipment preventing user counterfeit internet
CN101014022A (en) Method, apparatus and system for transmitting files in instant messaging tool
CN102148835A (en) Method and system for transmitting and sharing electronic documents
CN101420416A (en) Identity management platform, service server, login system and federation method
CN101127604A (en) Information secure transmission method and system
CN103037312A (en) Message push method and message push device
JP2007082073A (en) Communication connecting method, system, and program
CN101304318A (en) Safe network authentication system and method
US20140201820A1 (en) Adapting Federated Web Identity Protocols

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
RJ01