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

Data transmission method, device and system Download PDF

Info

Publication number
CN103491184A
CN103491184A CN201310456279.XA CN201310456279A CN103491184A CN 103491184 A CN103491184 A CN 103491184A CN 201310456279 A CN201310456279 A CN 201310456279A CN 103491184 A CN103491184 A CN 103491184A
Authority
CN
China
Prior art keywords
client
data
long connection
server
identification information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310456279.XA
Other languages
Chinese (zh)
Inventor
严腾飞
江洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201310456279.XA priority Critical patent/CN103491184A/en
Publication of CN103491184A publication Critical patent/CN103491184A/en
Priority to US15/025,401 priority patent/US20160234307A1/en
Priority to PCT/CN2014/087203 priority patent/WO2015043455A1/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

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, equipment and system
Technical field
The present invention relates to the internet, applications field, particularly relate to a kind of data transmission method, equipment and system.
Background technology
Day by day flourishing today in the Internet, the client that the user can use is more and more, and can enable the client of same type on different terminals, applies identical function.
The user, when using a certain class client, there will be the situation that turns to another terminal from a terminal, and corresponding, this user can turn to another client from a client.In the prior art, due to the data difference of different clients storage, often enable a new client, the user need to be input to user's request in new client again.And new client executing user's request is to obtain the needed information of user, with operating in of client executing user's request before be repetition to a certain extent, the message part obtained is also repetition, therefore can cause operation and the data redundancy of two clients, waste a large amount of resources, and the time delay that makes user's request be met is elongated, and efficiency is lower.
Summary of the invention
In view of the above problems, the present invention has been proposed in order to a kind of method, equipment and corresponding data transmission system of the transfer of data that overcomes the problems referred to above or address the above problem at least in part are provided.
According to one aspect of the present invention, a kind of data transmission method is provided, be applied to can carry out between the first client and the second client the situation of transfer of data, comprise: data and identification information thereof in described the first client are transferred to first server, be forwarded to the long connection server of determining according to the identification information of described the first client by described first server; According to the long connection status of described the second client and described long connection server, determine whether the data retransmission of described the first client to described the second client.
Alternatively, forward by described first server the long connection server that data in described the first client and identification information thereof are determined to the identification information according to described the first client, comprising: by described first server, the data in described the first client and identification information thereof are carried out to security verification; To be forwarded to described long connection server by the data in described first client of security verification and identification information thereof.
Alternatively, the data of described the first client by security verification are non-malicious data, the identification information that the identification information of described the first client by security verification is registered described the first client in described first server.
Alternatively, long connection status according to described the second client and described long connection server, determine whether the data retransmission of described the first client to described the second client, comprise: when the long connection status of described the second client and described long connection server is connection status, by the data retransmission of described the first client to described the second client; When the long connection status of described the second client and described long connection server is notconnect state, the data in described long connection server in described the first client of storage; And, when the long connection status between described the second client and described long connection server transfers connection status to from notconnect state, by described long connection server, the data in described first client of having stored are sent to described the second client.
Alternatively, set up between described the second client and described long connection server long the connection in accordance with the following steps, comprising: described the second client is grown and is connected with described long connection server foundation according to the requests for identification information of described the second client; Described long connection server carries out authentication according to the identification information of described the second client to described the second client; Described long connection server is set up long the connection with described the second client by described authentication.
The facility information of the terminal that alternatively, described long connection server also is positioned at according to described the second client carries out authentication.
Alternatively, described facility information comprise following one of at least: the International Mobile Equipment Identity code IMEI of described terminal; The device name of described terminal; The system version number of described terminal.
Alternatively, definite mode of the long connection status of described the second client and described long connection server comprises: the long connection status in the online list of devices of described long connection server storage between described the second client of inquiry and described long connection server, wherein, store the identification information of each client be connected with the built vertical length of described long connection server in described online list of devices; If inquire the identification information of described the second client, determine that the long connection status of described the second client and described long connection server is connection status; If do not inquire the identification information of described the second client, determine that the long connection status of described the second client and described long connection server is notconnect state.
Alternatively, the data in described the first client comprise following one of at least: each network address of collecting in the collection of described the first client; The network address commonly used of described the first client; Described the first client is when the webpage of front opening; The user data that described the first client is called according to user instruction.
Alternatively, described the first client possesses identical identification information with described the second client.
Alternatively, described identification information comprises: the accounts information that the user of described the first client logs in; Unique identification for described the first client generation.
Alternatively, described first server is communicated by letter with described long connection server by HTML (Hypertext Markup Language) HTTP request.
Alternatively, described the first client and/or the second client are arranged in mobile terminal.
According to another aspect of the present invention, a kind of client also is provided, be applied to can carry out between this client and other clients the situation of transfer of data, comprising: data obtainer is configured to obtain data and the identification information thereof of this client; Data link, be configured to transmit data in this client that described data obtainer obtains and identification information thereof to first server, be forwarded to the long connection server of determining according to the identification information of this client by described first server, and, according to the long connection status of other clients and described long connection server, determine whether the data retransmission in this client to described other clients.
Alternatively, also comprise: data sink, be configured to receive that described long connection server forwards, from the data of described other clients.
Alternatively, described data link also is configured to: the data in this client and identification information thereof are sent to described first server, by described first server, the data in this client and identification information thereof are carried out to security verification, and will be sent to described long connection server by the data in this client of security verification and identification information thereof by described first server.
Alternatively, the data of this client by security verification are non-malicious data, the identification information that the identification information of this client by security verification is registered client in described first server.
Alternatively, this client and/or described other clients are arranged in mobile terminal.
Alternatively, the data in this client comprise following one of at least: each network address of collecting in the collection of this client; The network address commonly used of this client; This client is when the webpage of front opening; The user data that this client is called according to user instruction.
According to another aspect of the present invention, a kind of data transmission system also is provided, be applied to can carry out between the first client and the second client the situation of transfer of data, comprise the first client, the second client, long connection server and the first server according to the identification information of described the first client, determined, wherein, described the first client, be configured to transmit data in described the first client and identification information thereof to first server; Described first server, be configured to receive data and the identification information thereof that described the first client sends, and be forwarded to described long connection server; Described long connection server, be configured to set up long the connection with described the second client; And, receive data and identification information thereof in described the first client that described first server forwards, according to the long connection status of described the second client and described long connection server, determine whether the data retransmission of described the first client to described the second client; Described the second client, be configured to receive the data that send through described long connection server.
According to the embodiment of the present invention, the first client can send data to the second client, realized that the first client carries out transfer of data to the second client, solved the problem that can't carry out transfer of data between the client that prior art mentions, further solve because between different clients, carrying out transfer of data, new client must be reintroduced back to user's request while enabling, thereby causes the problem of the wasting of resources and inefficiency.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to better understand technological means of the present invention, and can be implemented according to the content of specification, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
According to hereinafter, by reference to the accompanying drawings to the detailed description of the specific embodiment of the invention, those skilled in the art will understand above-mentioned and other purposes, advantage and feature of the present invention more.
The accompanying drawing explanation
By reading hereinafter detailed description of the preferred embodiment, various other advantage and benefits will become cheer and bright for those of ordinary skills.Accompanying drawing is only for the purpose of preferred implementation is shown, and do not think limitation of the present invention.And, in whole accompanying drawing, by identical reference symbol, mean identical parts.In the accompanying drawings:
Fig. 1 shows the process chart of data transmission method according to an embodiment of the invention;
Fig. 2 shows the structural representation of client according to an embodiment of the invention;
Fig. 3 shows data transmission method flow chart in accordance with a preferred embodiment of the present invention;
Fig. 4 shows the data transmission method flow chart according to another preferred embodiment of the present invention; And
Fig. 5 shows the structural representation of data transmission system according to an embodiment of the invention.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in accompanying drawing, yet should be appreciated that and can realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order more thoroughly to understand the disclosure that these embodiment are provided, and can be by the scope of the present disclosure complete conveys to those skilled in the art.
For solving the problems of the technologies described above, the embodiment of the present invention provides a kind of data transmission method, be applied to the situation of the passage of built vertical transfer of data between the first client and the second client,, can carry out transfer of data between the first client and the second client, the embodiment of the present invention is intended to illustrate the detailed process of carrying out transfer of data between the first client and the second client.
Fig. 1 shows the process chart of data transmission method according to an embodiment of the invention.As shown in Figure 1, the handling process of this data transmission method originates in step S102, and the data in the first client and identification information thereof are transferred to first server.After first server receives the data and identification information thereof of the first client, trigger step S104.
In step S104, first server is determined corresponding long connection server according to the identification information of the first client, and the data in the first client and identification information thereof are forwarded to corresponding long connection server.After long connection server receives the data and identification information thereof of the first client that first server sends, execution step S106, long connection status according to the second client with long connection server, determine whether data retransmission to the second client of the first client.
According to the embodiment of the present invention, the first client can send data to the second client, realized that the first client carries out transfer of data to the second client, solved the problem that can't carry out transfer of data between the client that prior art mentions, further solve because between different clients, carrying out transfer of data, new client must be reintroduced back to user's request while enabling, thereby causes the problem of the wasting of resources and inefficiency.
For the embodiment of the present invention being set forth clearer succinct, in the embodiment of the present invention, the first client is arranged to first terminal, the second client is arranged to the second terminal.Flow process as shown in Figure 1 is known, and in data transmission procedure, transfer of data to the second client in the first client need to be through routing forwarding such as servers.Now its first client is specifically described the transmitting procedure of transfer of data to the second client in the first client.
At first, carry out step S102 as shown in Figure 1, the first client is sent to first server by the data in the first client and identification information thereof, and first server herein is the corresponding server of first terminal.For example, if first terminal is personal computer (Personal Computer, hereinafter to be referred as PC), first server is the PC server.Secondly, execution step S104, after first server receives the data of the first client, carry out legitimate verification to the data of the first client.Preferably, in the embodiment of the present invention, first server is verified the identification information of the first client in above-mentioned data, whether the identification information of determining the first client is legal information, for example verify that whether this identification information is in the registration of client center, or whether this identification information is the inner identifier generated of server.If this identification information empirical tests is legal information, first server transfers to long connection server by this identification information, if this identification information is not legal information, the first server refusal is sent to long connection server by this identification information.
Equally, whether first server can also be carried out legitimate verification to the data of other except identification information in data, for example, verifies the web data of the first client etc., be non-malicious data.In the embodiment of the present invention, malicious data refer to the data in user terminal stolen, virus of the illegal act such as breaking-up, wooden horse etc.If it is above-mentioned malicious data that first server is verified the data of the first client, the first server refusal transfers to long connection server by this malicious data, if the checking through first server, the data of the first client are non-malicious data, first server by this transfer of data to long connection server.Preferably, in the embodiment of the present invention, the data of the first client are after legitimate verification, and first server can also be encrypted the data of the first client, more effectively improves the fail safe of transfer of data.By first server, the data of the first client are carried out to security verification and processing, can more effectively guarantee to transmit the fail safe of data, prevent in the process of transfer of data, some malice network address etc. append in the data of transmission, and user's terminal or client caused damage.
First server will be sent to through the data of legitimate verification corresponding long connection server after the data of the first client are carried out to legitimate verification.First server can communicate by various protocols with long connection server, for example, and transmission control protocol, User Datagram Protoco (UDP) etc.Preferably, in the embodiment of the present invention, first server is communicated by letter by HTML (Hypertext Markup Language) (Hypertext transfer protocol, hereinafter to be referred as HTTP) request with long connection server.HTTP supports many services device pattern, Simple fast, therefore by HTTP, asks notice can improve data transmission efficiency.
When long connection server receives data in the first client that first server sends and identification information thereof, long connection server is determined the second corresponding client according to the identification information of the first client, and the information recorded in the online list of devices according to long connection server storage determine with the second client between the state that is connected of length.
Online list of devices record and this long connection server of storing in long connection server keeps the identification information of long each client be connected.If some clients are connected disconnection with the length between this long connection server, in the online list of devices of long connection server, delete identification information corresponding to client disconnected.In the embodiment of the present invention, the online list of devices of storing in long connection server can real-time update, guarantee the information that long connection server can upgrade in time with the long client be connected of its foundation, avoid causing not in time sending data to the client disconnected because of online list of devices Data Update, cause the pernicious consequences such as data-bag lost, improve the fail safe of transfer of data.
The concrete mode that long connection server determines whether to send data to the second client in the first client is, if the online list of devices according to long connection server, between long connection server and the second client, the long state is connected is connection, and long connection server is sent to the second client by the data of the first client.If the online list of devices according to long connection server, between long connection server and the second client, this long state is connected is disconnection, in this long connection server, store the data of the first client, then, after treating recovering state that this length connects, then the data of first client of storing in will long connection server are sent to the second client.
In the embodiment of the present invention, built vertical data transmission channel between the first client and the second client, can carry out transfer of data, preferably, at first the first client can send the identification information of the first client when the second client sends data, so that in data transmission procedure, the server of process is (as first server, long connection server) etc. can confirm corresponding data receiver according to identification information, secondly the first client sends other data except identification information in the first client to the second client, realize the process of the first client to the second client transmissions data.
From the above, in data transmission procedure, the second client is set up long the connection with long connection server, in order to receive the data in the first client from long connection server.Now specifically introduce the second client and set up the long process be connected with long connection server.
The second client is determined corresponding long connection server according to the identification information of the second client, and sends and connect the request of foundation to this long connection server, and the identification information that carries the second client in request is set up in this connection.After long connection server receives the connection foundation request of the second client transmission, the identification information of the second client that long connection server carries in asking according to connection foundation carries out authentication to the second client.Preferably, in the embodiment of the present invention, long connection server can also carry out authentication to the second client according to other facility informations of the second client, take the receiving terminal that guarantees the data of this second client in receiving the first client.Other facility informations of the second client can be the facility informations of the second client, it can also be the facility information of the second terminal, preferably, in the embodiment of the present invention, other facility informations comprise the International Mobile Equipment Identity code (International Mobile Equipment Identity, hereinafter to be referred as IMEI) of the second terminal, the device name of the second terminal and the system version number of the second terminal.
In data transmission procedure, after long connection server carries out authentication according to the identification information of the second client and facility information thereof to the second client, if the second client is failed by authentication, long connection server refusal is connected with its foundation is long, if the second client is by authentication, long connection server is set up long the connection with the second client.
After the second client and long connection server are successfully set up long the connection, the second client receives the data in the first client from long connection server, and carry out respective handling to guarantee between the first client and the second client in the situation that built vertical data transmission channel is realized information sharing according to the data in the first client, and do not carry out the operation of end before can continuing to carry out in the first client on the second client, for example proceed web page contents and read.
In the embodiment of the present invention, identification information is the authentication information of client, can be the authentication information arranged by the user, can also be that server is the authentication information that client arranges, and the embodiment of the present invention is not limited this.Preferably, in the embodiment of the present invention, identification information can be the accounts information of the user login of the first client, the account information be the account that the user applies for the registration of at the client center, the application of accounts information is simple, and each accounts information can be logined in a plurality of clients.
In addition, the identification information in the embodiment of the present invention can be also an energy generating of server as the uniquely identified character string, shadow account for example.The shadow account can be the unique identification of server according to Information generations such as time, machine identification, the shadow account can be also the random account generated of server, server is after generating this account, check whether this shadow account generated exists, if exist, server regenerates a shadow account, until do not exist before this account.The shadow account has nonrepeatability and uniqueness, and each shadow account only can identify a client.
In the embodiment of the present invention, the data of the first client can be carried out the data of any operation in the first client for the user, can be also other data that the first client is upgraded, and are stored in the data of the first client, etc., the embodiment of the present invention is not done any restriction to this.Preferably, in the embodiment of the present invention, these data can comprise each network address of collecting in the collection of the first client, network address, the network address commonly used of the first client and the user data that any the first client is called according to user instruction etc. that the first client is worked as front opening.
The arbitrary data of the first client all can be sent to the second client, in having guaranteed that various operations that the user carries out in the first client all can synchronously be updated to the second client, avoid the user in new client executing repetitive operation, obtain duplicate message, further avoid the waste of data redundancy and resource.The user usually carries out the collection network address at browser client, individual operations such as commonly using webpage is set, when the user turns to another terminal from a terminal, need to enable new client in another terminal, according to the embodiment of the present invention, the individual operation that the user arranges on client once can be by automatic synchronization in the client of newly enabling, without user's repetitive operation.
In embodiments of the present invention, the first client and/or the second client can be the client of any same type such as browser client, security guard's client, reader client, media player client, can also be client dissimilar but the execution identical function, the embodiment of the present invention be limited this.Herein first, second only, for distinguishing different clients, do not cause restriction for the attribute of client own, order and function, first, second transposition referred to different clients and can yet.; in the embodiment of the present invention; can be that the first client that is arranged at first terminal sends the data of the first client to the second client that is arranged at the second terminal; can also be to be arranged at data that the second client of the second terminal sends the second client to the first client that is arranged at first terminal, realize the mutual transmission of information between client.
In the embodiment of the present invention, except the transmission of the client data between the different terminals arrived in prerequisite, can also realize the client data transmission of the transfer of data between different clients on same terminal and mobile terminal and terminal room.Therefore, in the embodiment of the present invention, first terminal and the second terminal can be the terminals such as desktop computer, notebook computer, can also be the mobile terminals such as mobile phone, music player, panel computer.Preferably, in the embodiment of the present invention, the first client and/or the second client are arranged at mobile client, so that the more clear transfer of data of setting forth compactly the client between terminal and mobile terminal.
The method of the transfer of data based on above each preferred embodiment provides, based on same inventive concept, the embodiment of the present invention provides a kind of client for transfer of data, for realizing the method for above-mentioned transfer of data.
Fig. 2 shows the structural representation of client according to an embodiment of the invention.Transfer of data flow process between the first client 210 and the second client 220 has been shown in Fig. 2.Wherein, the framework of the first client and the second client or composition or structure are similar.For the embodiment of the present invention being set forth clearer succinct, the embodiment of the present invention is only introduced the structure of the first client 210 in detail, and for the structure of the second client 220, the embodiment of the present invention repeats no more.In addition, two clients in Fig. 2 only can be carried out transfer of data for illustrating between different clients, for the parameters such as data of transmitting procedure, transmission path and transmission between two clients, do not cause restriction.
Participate in Fig. 2, at least comprise in the first client 210: data obtainer 211, data link 212 and data sink 213.Now introduce each device or the function of composition and the annexation between each several part of the first client 210.Data obtainer 211 in the first client 210 is obtained data and the identification information thereof in the first client 210.After data obtainer 211 gets the data and identification information thereof in the first client 210, trigger data transmitter 212.Data link 212 transfers to first server by data and identification information thereof in the first client 210, by first server, through long connection server, transfers to the second corresponding client 220.
According to the embodiment of the present invention, the first client 210 can send data to the second client 220, realized that the first client 210 carries out transfer of data to the second client 220, solved the problem that can't carry out transfer of data between the client that prior art mentions, further solve because between different clients, carrying out transfer of data, new client must be reintroduced back to user's request while enabling, thereby causes the problem of the wasting of resources and inefficiency.
Particularly, the data obtainer 211 in the first client 210 is obtained data and the identification information thereof in the first client 210.After data obtainer 211 gets the data and identification information thereof in the first client 210, trigger data transmitter 212.Data link 212, through triggering, is sent to first server by data and identification information thereof in the first client 210, and first server herein is the corresponding server of first terminal.For example, if first terminal is PC, first server is the PC server.
After first server receives the data of the first client 210, the data of the first client 210 are carried out to legitimate verification.Preferably, in the embodiment of the present invention, first server is verified the identification information of the first client 210, whether the identification information of determining the first client 210 is legal information, for example verify that whether this identification information is in the registration of client center, or whether this identification information is the inner identifier generated of server.If this identification information empirical tests is legal information, first server transfers to long connection server by this identification information, if this identification information is not legal information, the first server refusal is sent to long connection server by this identification information.
Equally, whether first server can also be carried out legitimate verification to other data except identification information, for example, verifies the web data of the first client 210 etc., be non-malicious data.In the embodiment of the present invention, malicious data refer to the data in user terminal stolen, virus of the illegal act such as breaking-up, wooden horse etc.If it is above-mentioned malicious data that first server is verified the data of the first client 210, the first server refusal transfers to long connection server by this malicious data, if the checking through first server, the data of the first client 210 are non-malicious data, first server by this transfer of data to long connection server.Preferably, in the embodiment of the present invention, the data of the first client 210 are after legitimate verification, and first server can also be encrypted the data of the first client 210, more effectively improves the fail safe of transfer of data.By first server, the data of the first client 210 are carried out to security verification and processing, can more effectively guarantee to transmit the fail safe of data, prevent in the process of transfer of data, some malice network address etc. append in the data of transmission, and user's terminal or client caused damage.
First server will be sent to through the data of legitimate verification corresponding long connection server after the data of the first client 210 are carried out to legitimate verification.First server can communicate by various protocols with long connection server, for example, and transmission control protocol, User Datagram Protoco (UDP) etc.Preferably, in the embodiment of the present invention, first server asks to communicate by letter by HTTP with long connection server.HTTP supports many services device pattern, Simple fast, therefore by HTTP, asks notice can improve data transmission efficiency.
When long connection server receives data in the first client 210 that first server sends and identification information thereof, long connection server is determined the second corresponding client 220 according to the identification information of the first client 210, and the information recorded in the online list of devices according to long connection server storage determine with the second client 220 between the state that is connected of length.
Online list of devices record and this long connection server of storing in long connection server keeps the identification information of long each client be connected.If some clients are connected disconnection with the length between this long connection server, in the online list of devices of long connection server, delete identification information corresponding to client disconnected.In the embodiment of the present invention, the online list of devices of storing in long connection server can real-time update, guarantee the information that long connection server can upgrade in time with the long client be connected of its foundation, avoid causing not in time sending data to the client disconnected because of online list of devices Data Update, cause the pernicious consequences such as data-bag lost, improve the fail safe of transfer of data.
Long connection server determines whether that the concrete mode that sends data to the second client 220 in the first client 210 is, if the online list of devices according to long connection server, between long connection server and the second client 220, the long state is connected is connection, and long connection server is sent to the second client 220 by the data of the first client 210.If the online list of devices according to long connection server, between long connection server and the second client 220, this long state is connected is disconnection, in this long connection server, store the data of the first client 210, then, after treating recovering state that this length connects, then the data of first client 210 of storing in will long connection server are sent to the second client 220.
In addition, in the first client 210 data sink 213 can receive through long connection server, forward, from the data in the second client 220.After the long connection server corresponding with the first client 210 receives the data in the second client 220, according between the inquiry of online list of devices and the first client 210, grow the state be connected.When between this long connection server and the first client 210, the long state is connected is for connection, long connection server sends data to the first client 210 in the second client 220.Data in the second client 220 that the long connection server of data sink 213 reception in the first client 210 sends.When between this long connection server and the first client 210, the long state is connected is for disconnection, long connection server is stored the data in the second client 220, treat with the first client 210 between after the long recovering state be connected, send data to the first client 210 in the second client 220.
In the embodiment of the present invention, identification information is the authentication information of client, can be the authentication information arranged by the user, can also be that server is the authentication information that client arranges, and the embodiment of the present invention is not limited this.Preferably, in the embodiment of the present invention, identification information can be the accounts information of the user login of the first client 210, the account information be the account that the user applies for the registration of at the client center, the application of accounts information is simple, and each accounts information can be logined in a plurality of clients.
In addition, the identification information in the embodiment of the present invention can be also an energy generating of server as the uniquely identified character string, shadow account for example.The shadow account can be the unique identification of server according to Information generations such as time, machine identification, the shadow account can be also the random account generated of server, server is after generating this account, check whether this shadow account generated exists, if exist, server regenerates a shadow account, until do not exist before this account.The shadow account has nonrepeatability and uniqueness, and each shadow account only can identify a client.
Preferably, in the embodiment of the present invention, the data of the first client 210 can be the data of user in any operation of the interior execution of the first client 210, can be also other data that the first client 210 is upgraded, be stored in the data of the first client 210, etc., the embodiment of the present invention is not done any restriction to this.Preferably, in the embodiment of the present invention, these data can comprise each network address of collecting in the collection of the first client 210, network address, the network address commonly used of the first client 210 and the user data that any the first client 210 is called according to user instruction etc. that the first client 210 is worked as front opening.
The arbitrary data of the first client 210 all can be sent to the second client 220, in having guaranteed that various operations that the user carries out in the first client 210 all can synchronously be updated to the second client 220, avoid the user in new client executing repetitive operation, obtain duplicate message, further avoid the waste of data redundancy and resource.The user usually carries out the collection network address at browser client, individual operations such as commonly using webpage is set, when the user turns to another terminal from a terminal, need to enable new client in another terminal, according to the embodiment of the present invention, the individual operation that the user arranges on client once can be by automatic synchronization in the client of newly enabling, without user's repetitive operation.
In the embodiment of the present invention, except the transmission of the client data between the different terminals arrived in prerequisite, can also realize the client data transmission of the transfer of data between different clients on same terminal and mobile terminal and terminal room.Therefore, in the embodiment of the present invention, first terminal and the second terminal can be the terminals such as desktop computer, notebook computer, can also be the mobile terminals such as mobile phone, music player, panel computer.Preferably, in the embodiment of the present invention, the first client 210 and/or the second client 220 are arranged at mobile terminal, so that the more clear transfer of data of setting forth compactly the client between terminal and mobile terminal.
Embodiment mono-
Fig. 3 shows data transmission method flow chart in accordance with a preferred embodiment of the present invention, for supporting above-mentioned any one data transmission method and data transmission set, by above-mentioned data transmission method and data transmission set, sets forth clearer succinctly.As shown in Figure 3, in this example, select PC as first terminal, mobile phone is the second terminal, and client is browser client.For convenience of identification the first client and the second client, in this example, the first client is called as the PC browser, and the second client is called as mobile phone browser, and identification information is unique identify label number (Identity, hereinafter to be referred as ID).In addition, this preferred embodiment emphasis is described the PC browser and how to mobile phone browser, is sent the process of data.
As shown in Figure 3, the step of this preferred embodiment originates in step 1, and mobile phone browser is set up long the connection with long connection server.Concrete mode is that mobile phone browser is determined corresponding long connection server according to the identification information of self, and, to this long connection server transmission connection foundation request, this connection carries the identification information of mobile phone browser in setting up and asking.After long connection server receives the connection foundation request of mobile phone browser transmission, the identification information of the mobile phone browser that long connection server carries in asking according to connection foundation carries out authentication to mobile phone browser.Preferably, in the embodiment of the present invention, long connection server can also carry out authentication to mobile phone browser according to other facility informations of mobile phone browser, take the receiving terminal that guarantees the data of this mobile phone browser in receiving the PC browser.Other facility informations of mobile phone browser can be the information of mobile phone browser, can also be the information of the second terminal, preferably, in the embodiment of the present invention, other facility informations comprise the IMEI of the second terminal, the device name of the second terminal and the system version number of the second terminal.
After long connection server carries out authentication according to the identification information of mobile phone browser and facility information thereof to mobile phone browser, if mobile phone browser is failed by authentication, long connection server refusal is connected with its foundation is long, if mobile phone browser is by authentication, long connection server is set up long the connection with mobile phone browser.
After mobile phone browser and long connection server are successfully set up long the connection, mobile phone browser receives the data in the PC browser from long connection server, and carry out respective handling to guarantee realizing information sharing between PC browser and mobile phone browser according to the data in the PC browser, and do not carry out the operation of end before can continuing to carry out at the PC browser on mobile phone browser, for example proceed web page contents and read.
Data in the PC browser are sent to mobile phone browser by the PC browser through PC server and long connection server, now introduce the process of the data of PC browser in PC server transmission PC browser to long connection server.
As described in the step 2 in Fig. 3, the PC browser sends data and unique ID to the PC server in the PC browser.After the PC server receives the data of PC browser, the data of PC browser are carried out to legitimate verification.Preferably, in the embodiment of the present invention, the PC server is verified unique ID of PC browser in above-mentioned data, whether the unique ID that determines the PC browser is legal information, for example verify that whether unique ID is in the registration of client center, or whether unique ID is the inner identifier generated of server.If unique ID empirical tests is legal information, the PC server transfers to long connection server by unique ID, if unique ID is not legal information, PC server refusal is sent to long connection server by unique ID.
Equally, the PC server can also carry out legitimate verification to the data in the PC browser, and for example, whether the web data of checking PC browser etc., be non-malicious data.In the embodiment of the present invention, malicious data refer to the data in user terminal stolen, virus of the illegal act such as breaking-up, wooden horse etc.If the data of PC server authentication PC browser are above-mentioned malicious data, PC server refusal transfers to long connection server by this malicious data, if through the checking of PC server, the data of PC browser are non-malicious data, the PC server by this transfer of data to long connection server.Preferably, in the embodiment of the present invention, the data of PC browser are after legitimate verification, and the PC server can also be encrypted the data of PC browser, more effectively improves the fail safe of transfer of data.By the PC server, the data of PC browser are carried out to security verification and processing, can more effectively guarantee to transmit the fail safe of data, prevent in the process of transfer of data, some malice network address etc. append in the data of transmission, and user's terminal or client caused damage.
After the PC server carries out legitimate verification to the data of PC browser, carry out as the step 3 in Fig. 3, will be through unique ID of legitimate verification and the data retransmission in the PC browser corresponding long connection server extremely.
When long connection server receives data in the PC browser that the PC server sends and unique ID, long connection server is determined corresponding mobile phone browser according to unique ID of PC browser, and the information recorded in the online list of devices according to the storage of long connection server determine with mobile phone browser between the long state be connected.
Online list of devices record and this long connection server of storing in long connection server keeps unique ID of long each browser be connected.If some browsers are connected disconnection with the length between this long connection server, in the online list of devices of long connection server, delete unique ID corresponding to browser disconnected.In the embodiment of the present invention, the online list of devices of storing in long connection server can real-time update, guarantee the information that long connection server can upgrade in time with the long browser be connected of its foundation, avoid causing not in time sending data to the browser disconnected because of online list of devices Data Update, cause the pernicious consequences such as data-bag lost, improve the fail safe of transfer of data.
As shown in step 4 in Fig. 3, long connection server according to mobile phone browser between the long state be connected determine whether to send data in the PC browser to mobile phone browser.Long connection server determines whether to send data in the PC browser to the concrete mode of mobile phone browser, if the online list of devices according to long connection server, between long connection server and mobile phone browser, the long state is connected is connection, and long connection server is sent to mobile phone browser by the data in the PC browser.If the online list of devices according to long connection server, between long connection server and mobile phone browser, this long state is connected is disconnection, in this long connection server, store the data in the PC browser, then, after treating recovering state that this length connects, then the data in the PC browser of storing in will long connection server are sent to mobile phone browser.
Embodiment bis-
Fig. 4 shows the data transmission method flow chart according to another preferred embodiment of the present invention, for supporting above-mentioned any one data transmission method and data transmission set, by above-mentioned data transmission method and data transmission set, sets forth clearer succinctly.As shown in Figure 4, in this example, select PC as first terminal, mobile phone is the second terminal, and client is browser client.For convenience of identification the first client and the second client, in this example, the first client is called as the PC browser, and the second client is called as mobile phone browser, and identification information is unique ID.In addition, this preferred embodiment emphasis is described mobile phone browser and how to the PC browser, is sent the process of data.
As shown in Figure 4, the step of this preferred embodiment originates in step 1, and the PC browser is set up long the connection with long connection server.Concrete mode is that the PC browser is determined corresponding long connection server according to unique ID, and, to this long connection server transmission connection foundation request, this connection carries unique ID of PC browser in setting up and asking.After long connection server receives the connection foundation request of PC browser transmission, unique ID of the PC browser that long connection server carries in asking according to connection foundation carries out authentication to the PC browser.Preferably, in the embodiment of the present invention, long connection server can also carry out authentication to the PC browser according to other facility informations of PC browser, take the receiving terminal that guarantees the data of this PC browser in receiving mobile phone browser.Other facility informations of PC browser can be the facility informations of PC browser, can also be the facility informations of first terminal, preferred, and in the embodiment of the present invention, other facility informations comprise the system version number of the device name of first terminal and first terminal etc.
After long connection server carries out authentication according to unique ID of PC browser and facility information thereof to the PC browser, if the PC browser is failed by authentication, long connection server refusal is connected with its foundation is long, if the PC browser is by authentication, long connection server is set up long the connection with the PC browser.
After PC browser and long connection server are successfully set up long the connection, the PC browser receives the data in mobile phone browser from long connection server, and carry out respective handling to guarantee realizing information sharing between mobile phone browser and PC browser according to the data in mobile phone browser, and do not carry out the operation of end before can continuing to carry out at mobile phone browser on the PC browser, for example proceed web page contents and read.
Data in mobile phone browser are sent to the PC browser by mobile phone browser through PC server and long connection server, now introduce the process of the data of mobile phone browser in PC server transmission mobile phone browser to long connection server.
As shown in the step 2 in Fig. 4, mobile phone browser sends data and unique ID to the PC server in mobile phone browser.After the PC server receives the data and unique ID of mobile phone browser, data and unique ID of mobile phone browser carried out to legitimate verification.Preferably, in the embodiment of the present invention, the PC server is verified unique ID of mobile phone browser in above-mentioned data, whether the unique ID that determines mobile phone browser is legal information, for example verify that whether unique ID is in the registration of client center, or whether unique ID is the inner identifier generated of server.If unique ID empirical tests is legal information, the PC server transfers to long connection server by unique ID, if unique ID is not legal information, PC server refusal is sent to long connection server by unique ID.
Equally, the PC server can also carry out legitimate verification to the data in mobile phone browser, and for example, whether the web data of checking mobile phone browser etc., be non-malicious data.In the embodiment of the present invention, malicious data refer to the data in user terminal stolen, virus of the illegal act such as breaking-up, wooden horse etc.If the data of PC server authentication mobile phone browser are above-mentioned malicious data, PC server refusal transfers to long connection server by this malicious data, if through the checking of PC server, the data of mobile phone browser are non-malicious data, the PC server by this transfer of data to long connection server.Preferably, in the embodiment of the present invention, the data of mobile phone browser are after legitimate verification, and the PC server can also be encrypted the data of mobile phone browser, more effectively improves the fail safe of transfer of data.By the PC server, the data of mobile phone browser are carried out to security verification and processing, can more effectively guarantee to transmit the fail safe of data, prevent in the process of transfer of data, some malice network address etc. append in the data of transmission, and user's terminal or client caused damage.
After the PC server carries out legitimate verification to the data of mobile phone browser, carry out as the step 3 in Fig. 4, will be through unique ID of legitimate verification and the data retransmission in mobile phone browser corresponding long connection server extremely.
When long connection server receives data in the mobile phone browser that the PC server sends and unique ID, long connection server is determined corresponding PC browser according to unique ID of mobile phone browser, and the information recorded in the online list of devices according to the storage of long connection server determine with the PC browser between grow the state be connected.
Online list of devices record and this long connection server of storing in long connection server keeps unique ID of long each browser be connected.If some browsers are connected disconnection with the length between this long connection server, in the online list of devices of long connection server, delete unique ID corresponding to browser disconnected.In the embodiment of the present invention, the online list of devices of storing in long connection server can real-time update, guarantee the information that long connection server can upgrade in time with the long browser be connected of its foundation, avoid causing not in time sending data to the browser disconnected because of online list of devices Data Update, cause the pernicious consequences such as data-bag lost, improve the fail safe of transfer of data.
As shown in step 4 in Fig. 4, long connection server according to the PC browser between the long state be connected determine whether to send data in mobile phone browser to the PC browser.Long connection server determines whether to send data in mobile phone browser to the concrete mode of PC browser, if the online list of devices according to long connection server, between long connection server and PC browser, the long state is connected is connection, and long connection server is sent to the PC browser by the data in mobile phone browser.If the online list of devices according to long connection server, between long connection server and PC browser, this long state is connected is disconnection, data in the memory mobile phone browser in this long connection server, then, after treating recovering state that this length connects, then the data in the mobile phone browser of storing in will long connection server are sent to the PC browser.
The method and apparatus of the transfer of data based on above each preferred embodiment provides, based on same inventive concept, the embodiment of the present invention provides a kind of data transmission system.Fig. 5 shows the structural representation of data transmission system according to an embodiment of the invention.Referring to Fig. 5, the data transmission system 500 in the embodiment of the present invention at least comprises first server 510, the first client 520, the second client 530 and long connection server 540.
For the embodiment of the present invention being set forth clearer succinct, in the embodiment of the present invention, the first client 520 is arranged to first terminal, the second client 530 is arranged to the second terminal.Now introduce each device or the function of composition and the annexation between each several part in the data transmission system of the embodiment of the present invention.In data transmission system 500, the data obtainer 521 in the first client 520 is obtained data and the identification information thereof in the first client 520, and trigger data transmitter 522.Data link 522 transfers to first server 510 through triggering by the data in the first client 520 and identification information thereof.
After first server 510 receives the data and identification information thereof of the first client 520, data and the identification information thereof of the first client 520 carried out to legitimate verification.Preferably, in the embodiment of the present invention, the identification information of 510 pairs of the first clients 520 of first server is verified, whether the identification information of determining the first client 520 is legal information, for example verify that whether this identification information is in the registration of client center, or whether this identification information is the inner identifier generated of server.If this identification information empirical tests is legal information, first server 510 transfers to long connection server 540 by this identification information, if this identification information is not legal information, first server 510 refusals are sent to long connection server 540 by this identification information.
Equally, whether first server 510 can also be carried out legitimate verification to other data except identification information, for example, verifies the web data of the first client 520 etc., be non-malicious data.In the embodiment of the present invention, malicious data refer to the data in user terminal stolen, virus of the illegal act such as breaking-up, wooden horse etc.If the data of first server 510 checking the first clients 520 are above-mentioned malicious data, first server 510 refusals transfer to long connection server 540 by this malicious data, if the checking through first server 510, the data of the first client 520 are non-malicious data, first server 510 by this transfer of data to long connection server 540.
Preferably, in the embodiment of the present invention, the data of the first client 520 are after legitimate verification, and first server 510 can also be encrypted the data of the first client 520, more effectively improves the fail safe of transfer of data.Data by 510 pairs of the first clients 520 of first server are carried out security verification and processing, can more effectively guarantee to transmit the fail safe of data, prevent in the process of transfer of data, some malice network address etc. append in the data of transmission, and user's terminal or client caused damage.
After the data of 510 pairs of the first clients 520 of first server and identification information thereof carry out legitimate verification, will be sent to corresponding long connection server 540 through the data of legitimate verification and the identification information of the first client 520.First server 510 can communicate by various protocols with long connection server 540, for example, and transmission control protocol, User Datagram Protoco (UDP) etc.Preferably, in the embodiment of the present invention, first server 510 asks to communicate by letter by HTTP with long connection server 540.HTTP supports many services device pattern, Simple fast, therefore by HTTP, asks notice can improve data transmission efficiency.
When long connection server 540 receives data in the first client 520 sent through first server 510 and identification information thereof, long connection server 540 is determined the second corresponding client 530 according to the identification information of the first client 520, and the information recorded in the online list of devices according to long connection server 540 storages determine with the second client 530 between the state that is connected of length.
The identification information of each client that in long connection server 540, the online list of devices record of storage keeps length to be connected with this long connection server 540.If some clients are connected disconnection with the length between this long connection server 540, in the online list of devices of long connection server 540, delete identification information corresponding to client disconnected.In the embodiment of the present invention, in long connection server 540, the online list of devices of storage can real-time update, guarantee the information that long connection server 540 can upgrade in time with the long client be connected of its foundation, avoid causing not in time sending data to the client disconnected because of online list of devices Data Update, cause the pernicious consequences such as data-bag lost, improve the fail safe of transfer of data.
Long connection server 540 determines whether that the concrete mode that sends data to the second client 530 in the first client 520 is, if the online list of devices according to long connection server 540, between long connection server 540 and the second client 530, the long state is connected is connection, and long connection server 540 is sent to the second client 530 by the data of the first client 520.If the online list of devices according to long connection server 540, between long connection server 540 and the second client 530, this long state is connected is disconnection, in this long connection server 540, store the data of the first client 520, then, after treating recovering state that this length connects, then in will long connection server 540, the data of the first client 520 of storage be sent to the second client 530.
From the above, before the second client 530 receives the data in the first client 520 from long connection server 540, need to set up long the connection with long connection server 540.In like manner, before the first client 520 receives the data in the second client 530 from long connection server 540, need to set up long the connection with long connection server 540 equally.Here it is noted that the long connection server corresponding from the first client and with long connection server corresponding to the second client can be identical can be also different server, in Fig. 5, all use 540 to mean.
The above-mentioned part of the embodiment of the present invention be take angle that the first client is data sending terminal and is set out and be described.Consider that in the data transmission procedure of the embodiment of the present invention be the process of a transmitted in both directions, the first client, in as data sending terminal, also can be used as data receiver and exists.First client of hereinafter usining is set out as the angle of data receiver, is described in detail.
Now specifically introduce the first client 520 and set up the long process be connected with long connection server 540.
The first client 520 is determined corresponding long connection server 540 according to the identification information of the first client 520, and sends and connect the request of foundation to this long connection server 540, and the identification information that carries the first client 520 in request is set up in this connection.After long connection server 540 receives the connection foundation request of the first client 520 transmissions, the identification information of the first client 520 that long connection server 540 carries in asking according to connection foundation carries out authentication to the first client 520.Preferably, in the embodiment of the present invention, long connection server 540 can also carry out authentication to the first client 520 according to other facility informations of the first client 520, take and guarantees the data receiver of this first client 520 in receiving the second client 530.Other facility informations of the first client 520 can be the facility informations of the first client 520, it can also be the facility information of first terminal, preferably, in the embodiment of the present invention, other facility informations comprise the IMEI of first terminal, the device name of first terminal and the system version number of first terminal.
After long connection server 540 carries out authentication according to the identification information of the first client 520 and facility information thereof to the first client 520, if the first client 520 is failed by authentication, long connection server 540 refusals are connected with its foundation is long, if the first client 520 is by authentication, long connection server 540 is set up long the connection with the first client 520.
After the first client 520 and long connection server 540 are successfully set up long the connection, the first client 520 receives the data in the second client 530 from long connection server 540, and carry out respective handling to guarantee realizing information sharing between the first client 520 and the second client 530 according to the data in the second client 530, and do not carry out in the second client 530 operation finished before can continuing to carry out on the first client 520, for example proceed web page contents and read.
According to the embodiment of the present invention, the first client 520 can send data to the second client 530, realized that the first client 520 carries out transfer of data to the second client 530, solved the problem that can't carry out transfer of data between the client that prior art mentions, further solve because between different clients, carrying out transfer of data, new client must be reintroduced back to user's request while enabling, thereby causes the problem of the wasting of resources and inefficiency.
According to the combination of above-mentioned any one preferred embodiment or a plurality of preferred embodiments, the embodiment of the present invention can reach following beneficial effect:
According to the embodiment of the present invention, the first client can send data to the second client, realized that the first client carries out transfer of data to the second client, solved the problem that can't carry out transfer of data between the client that prior art mentions, further solve because between different clients, carrying out transfer of data, new client must be reintroduced back to user's request while enabling, thereby causes the problem of the wasting of resources and inefficiency.
One embodiment of the invention discloses A1, a kind of data transmission method, is applied to can carry out between the first client and the second client the situation of transfer of data, comprising:
Data and identification information thereof in described the first client are transferred to first server, be forwarded to the long connection server of determining according to the identification information of described the first client by described first server;
According to the long connection status of described the second client and described long connection server, determine whether the data retransmission of described the first client to described the second client.
A2, according to the described method of claim A1, wherein, by described first server, forward the long connection server that data in described the first client and identification information thereof are determined to the identification information according to described the first client, comprising:
By described first server, the data in described the first client and identification information thereof are carried out to security verification;
To be forwarded to described long connection server by the data in described first client of security verification and identification information thereof.
A3, according to the described method of claim A2, wherein, the data of described the first client by security verification are non-malicious data, the identification information that the identification information of described the first client by security verification is registered described the first client in described first server.
A4, according to the described method of claim A1 to A3 any one, wherein, according to the long connection status of described the second client and described long connection server, determine whether the data retransmission of described the first client to comprise to described the second client:
When the long connection status of described the second client and described long connection server is connection status, by the data retransmission of described the first client to described the second client;
When the long connection status of described the second client and described long connection server is notconnect state, the data in described long connection server in described the first client of storage; And, when the long connection status between described the second client and described long connection server transfers connection status to from notconnect state, by described long connection server, the data in described first client of having stored are sent to described the second client.
A5, according to the described method of claim A1 to A4 any one, wherein, between described the second client and described long connection server, set up long the connection in accordance with the following steps, comprising:
Described the second client is set up long the connection according to the requests for identification information of described the second client with described long connection server;
Described long connection server carries out authentication according to the identification information of described the second client to described the second client;
Described long connection server is set up long the connection with described the second client by described authentication.
A6, according to the described method of claim A5, wherein, the facility information of the terminal that described long connection server also is positioned at according to described the second client carries out authentication.
A7, according to the described method of claim A6, wherein, described facility information comprise following one of at least:
The International Mobile Equipment Identity code IMEI of described terminal;
The device name of described terminal;
The system version number of described terminal.
A8, according to the described method of claim A1 to A7 any one, wherein, definite mode of the long connection status of described the second client and described long connection server comprises:
Long connection status in the online list of devices of described long connection server storage between described the second client of inquiry and described long connection server, wherein, store the identification information of each client be connected with the built vertical length of described long connection server in described online list of devices;
If inquire the identification information of described the second client, determine that the long connection status of described the second client and described long connection server is connection status;
If do not inquire the identification information of described the second client, determine that the long connection status of described the second client and described long connection server is notconnect state.
A9, according to the described method of claim A1 to A8 any one, wherein, the data in described the first client comprise following one of at least:
Each network address of collecting in the collection of described the first client;
The network address commonly used of described the first client;
Described the first client is when the webpage of front opening;
The user data that described the first client is called according to user instruction.
A10, according to the described method of claim A1 to A9 any one, wherein, described the first client possesses identical identification information with described the second client.
A11, according to the described method of claim A10, wherein, described identification information comprises:
The accounts information that the user of described the first client logs in;
Unique identification for described the first client generation.
A12, according to the described method of claim A1 to A11 any one, wherein, described first server is communicated by letter with described long connection server by HTML (Hypertext Markup Language) HTTP request.
A13, according to the described method of claim A1 to A12 any one, wherein,
Described the first client and/or the second client are arranged in mobile terminal.
Another embodiment of the present invention discloses B14, a kind of client, is applied to can carry out between this client and other clients the situation of transfer of data, comprising:
Data obtainer, be configured to obtain data and the identification information thereof of this client;
Data link, be configured to transmit data in this client that described data obtainer obtains and identification information thereof to first server, be forwarded to the long connection server of determining according to the identification information of this client by described first server, and, according to the long connection status of other clients and described long connection server, determine whether the data retransmission in this client to described other clients.
B15, according to the described client of claim B14, wherein, also comprise:
Data sink, be configured to receive that described long connection server forwards, from the data of described other clients.
B16, according to claim B14 or the described client of B15, wherein, described data link also is configured to:
Data in this client and identification information thereof are sent to described first server, by described first server, the data in this client and identification information thereof are carried out to security verification, and will be sent to described long connection server by the data in this client of security verification and identification information thereof by described first server.
B17, according to the described client of claim B16, wherein, the data of this client by security verification are non-malicious data, the identification information that the identification information of this client by security verification is registered client in described first server.
B18, according to the described client of claim B14 to B17 any one, wherein,
This client and/or described other clients are arranged in mobile terminal.
B19, according to the described client of claim B14 to B18 any one, wherein, the data in this client comprise following one of at least:
Each network address of collecting in the collection of this client;
The network address commonly used of this client;
This client is when the webpage of front opening;
The user data that this client is called according to user instruction.
Another embodiment of the present invention discloses C20, a kind of data transmission system, be applied to can carry out between the first client and the second client the situation of transfer of data, comprise described the first client of claim C14 to C19 any one, described the second client of claim C14 to C19 any one, long connection server and the first server according to the identification information of described the first client, determined, wherein
Described the first client, be configured to transmit data in described the first client and identification information thereof to first server;
Described first server, be configured to receive data and the identification information thereof that described the first client sends, and be forwarded to described long connection server;
Described long connection server, be configured to set up long the connection with described the second client; And, receive data and identification information thereof in described the first client that described first server forwards, according to the long connection status of described the second client and described long connection server, determine whether the data retransmission of described the first client to described the second client;
Described the second client, be configured to receive the data that send through described long connection server.
In the specification that provided herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can be in the situation that do not have these details to put into practice.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the description to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes in the above.Yet the method for the disclosure should be construed to the following intention of reflection: the present invention for required protection requires the more feature of feature than institute clearly puts down in writing in each claim.Or rather, as following claims are reflected, inventive aspect is to be less than all features of the disclosed single embodiment in front.Therefore, claims of following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can adaptively change and they are arranged in one or more equipment different from this embodiment the module in the equipment in embodiment.Can be combined into a module or unit or assembly to the module in embodiment or unit or assembly, and can put them into a plurality of submodules or subelement or sub-component in addition.At least some in such feature and/or process or unit are mutually repelling, and can adopt any combination to disclosed all features in this specification (comprising claim, summary and the accompanying drawing followed) and so all processes or the unit of disclosed any method or equipment are combined.Unless clearly statement in addition, in this specification (comprising claim, summary and the accompanying drawing followed) disclosed each feature can be by providing identical, be equal to or the alternative features of similar purpose replaces.
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included in other embodiment, the combination of the feature of different embodiment means within scope of the present invention and forms different embodiment.For example, in claims, the one of any of embodiment required for protection can be used with compound mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, or realizes with the software module of moving on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that and can use in practice microprocessor or digital signal processor (DSP) to realize according to some or all some or repertoire of parts in the data transmission set of the embodiment of the present invention.The present invention for example can also be embodied as, for carrying out part or all equipment or device program (, computer program and computer program) of method as described herein.The program of the present invention that realizes like this can be stored on computer-readable medium, or can have the form of one or more signal.Such signal can be downloaded and obtain from internet website, or provides on carrier signal, or provides with any other form.
It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment in the situation that do not break away from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed in element or the step in claim.Being positioned at word " " before element or " one " does not get rid of and has a plurality of such elements.The present invention can realize by means of the hardware that includes some different elements and by means of the computer of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to carry out imbody by same hardware branch.The use of word first, second and C grade does not mean any order.Can be title by these word explanations.
So far, those skilled in the art will recognize that, illustrate and described a plurality of exemplary embodiment of the present invention although this paper is detailed, but, without departing from the spirit and scope of the present invention, still can directly determine or derive many other modification or the modification that meets the principle of the invention according to content disclosed by the invention.Therefore, scope of the present invention should be understood and regard as and cover all these other modification or modifications.

Claims (10)

1. a data transmission method, be applied to can carry out between the first client and the second client the situation of transfer of data, comprising:
Data and identification information thereof in described the first client are transferred to first server, be forwarded to the long connection server of determining according to the identification information of described the first client by described first server;
According to the long connection status of described the second client and described long connection server, determine whether the data retransmission of described the first client to described the second client.
2. method according to claim 1, wherein, forward by described first server the long connection server that data in described the first client and identification information thereof are determined to the identification information according to described the first client, comprising:
By described first server, the data in described the first client and identification information thereof are carried out to security verification;
To be forwarded to described long connection server by the data in described first client of security verification and identification information thereof.
3. method according to claim 2, wherein, the data of described the first client by security verification are non-malicious data, the identification information that the identification information of described the first client by security verification is registered described the first client in described first server.
4. according to the described method of claims 1 to 3 any one, wherein, according to the long connection status of described the second client and described long connection server, determine whether the data retransmission of described the first client to comprise to described the second client:
When the long connection status of described the second client and described long connection server is connection status, by the data retransmission of described the first client to described the second client;
When the long connection status of described the second client and described long connection server is notconnect state, the data in described long connection server in described the first client of storage; And, when the long connection status between described the second client and described long connection server transfers connection status to from notconnect state, by described long connection server, the data in described first client of having stored are sent to described the second client.
5. according to the described method of claim 1 to 4 any one, wherein, set up long the connection in accordance with the following steps between described the second client and described long connection server, comprising:
Described the second client is set up long the connection according to the requests for identification information of described the second client with described long connection server;
Described long connection server carries out authentication according to the identification information of described the second client to described the second client;
Described long connection server is set up long the connection with described the second client by described authentication.
6. method according to claim 5, wherein, the facility information of the terminal that described long connection server also is positioned at according to described the second client carries out authentication.
7. method according to claim 6, wherein, described facility information comprise following one of at least:
The International Mobile Equipment Identity code IMEI of described terminal;
The device name of described terminal;
The system version number of described terminal.
8. according to the described method of claim 1 to 7 any one, wherein, definite mode of the long connection status of described the second client and described long connection server comprises:
Long connection status in the online list of devices of described long connection server storage between described the second client of inquiry and described long connection server, wherein, store the identification information of each client be connected with the built vertical length of described long connection server in described online list of devices;
If inquire the identification information of described the second client, determine that the long connection status of described the second client and described long connection server is connection status;
If do not inquire the identification information of described the second client, determine that the long connection status of described the second client and described long connection server is notconnect state.
9. a client, be applied to can carry out between this client and other clients the situation of transfer of data, comprising:
Data obtainer, be configured to obtain data and the identification information thereof of this client;
Data link, be configured to transmit data in this client that described data obtainer obtains and identification information thereof to first server, be forwarded to the long connection server of determining according to the identification information of this client by described first server, and, according to the long connection status of other clients and described long connection server, determine whether the data retransmission in this client to described other clients.
10. a data transmission system, be applied to can carry out between the first client and the second client the situation of transfer of data, comprise the first client claimed in claim 9, the second client claimed in claim 9, long connection server and the first server according to the identification information of described the first client, determined, wherein
Described the first client, be configured to transmit data in described the first client and identification information thereof to first server;
Described first server, be configured to receive data and the identification information thereof that described the first client sends, and be forwarded to described long connection server;
Described long connection server, be configured to set up long the connection with described the second client; And, receive data and identification information thereof in described the first client that described first server forwards, according to the long connection status of described the second client and described long connection server, determine whether the data retransmission of described the first client to described the second client;
Described the second client, be configured to receive the data that send through described long connection server.
CN201310456279.XA 2013-09-29 2013-09-29 Data transmission method, device and system Pending CN103491184A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201310456279.XA CN103491184A (en) 2013-09-29 2013-09-29 Data transmission method, device and system
US15/025,401 US20160234307A1 (en) 2013-09-29 2014-09-23 Data transmission method, device, and system
PCT/CN2014/087203 WO2015043455A1 (en) 2013-09-29 2014-09-23 Data transmission method, device, and system

Applications Claiming Priority (1)

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

Publications (1)

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

Family

ID=49831137

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310456279.XA Pending 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 (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103746906A (en) * 2014-01-22 2014-04-23 北京奇虎科技有限公司 Method, device and system for pushing mobile terminal to control PC (personal computer) operation-related message
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 甘棠软件***(上海)有限公司 The method, apparatus and system of the long connection of switching
CN108156239A (en) * 2017-12-25 2018-06-12 青岛海信电器股份有限公司 The method and device that a kind of collaborative synchronizing white is shown
CN110071925A (en) * 2019-04-25 2019-07-30 腾讯科技(深圳)有限公司 Data transmission method and corresponding server, computer readable storage medium
CN111263172A (en) * 2019-11-28 2020-06-09 北京新奥特体育科技有限公司 Method and system for playing slow motion
CN115913787A (en) * 2023-02-16 2023-04-04 国网浙江省电力有限公司 File encryption and decryption transmission method suitable for electric power data

Citations (6)

* 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
CN102413436A (en) * 2011-09-14 2012-04-11 华为技术有限公司 Method and system for transmitting information, and browser on mobile terminal

Patent Citations (6)

* 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
CN102413436A (en) * 2011-09-14 2012-04-11 华为技术有限公司 Method and system for transmitting information, and browser on mobile terminal

Cited By (11)

* 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
CN103746906A (en) * 2014-01-22 2014-04-23 北京奇虎科技有限公司 Method, device and system for pushing mobile terminal to control PC (personal computer) operation-related message
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 甘棠软件***(上海)有限公司 The method, apparatus and system of the long connection of switching
CN107395686B (en) * 2017-06-28 2018-06-05 甘棠软件***(上海)有限公司 The method, apparatus and system of the long connection of switching
CN108156239A (en) * 2017-12-25 2018-06-12 青岛海信电器股份有限公司 The method and device that a kind of collaborative synchronizing white is shown
CN110071925A (en) * 2019-04-25 2019-07-30 腾讯科技(深圳)有限公司 Data transmission method and corresponding server, computer readable storage medium
CN111263172A (en) * 2019-11-28 2020-06-09 北京新奥特体育科技有限公司 Method and system for playing slow motion
CN115913787A (en) * 2023-02-16 2023-04-04 国网浙江省电力有限公司 File encryption and decryption transmission method suitable for electric power data
CN115913787B (en) * 2023-02-16 2023-05-16 国网浙江省电力有限公司 File encryption and decryption transmission method suitable for electric power data

Similar Documents

Publication Publication Date Title
CN103491184A (en) Data transmission method, device and system
US11716390B2 (en) Systems and methods for remote management of appliances
CN103501331A (en) Data transmission method, data transmission equipment and data transmission system
CN109768965B (en) Login method, equipment and storage medium of server
CN109150874B (en) Access authentication method and device and authentication equipment
CN104901970A (en) Two dimension code registration method, server and system
CN104852919A (en) Method and apparatus for realizing portal authentication
CN108259457A (en) A kind of WEB authentication methods and device
CN104158908A (en) Method and system for transmitting files based on WiFi (Wireless Fidelity) equipment
CN105450592A (en) Safety verification method and device, server and terminal
CN103647652B (en) A kind of method for realizing data transfer, device and server
CN105282153A (en) Method for achieving data transmission and terminal equipment
CN105991640A (en) Method for processing HTTP (hypertext transfer protocol) request and apparatus for processing HTTP (hypertext transfer protocol) request
CN105812413B (en) Communication method and device
CN105592083A (en) Method and device for terminal to have access to server by using token
CN103501334A (en) Data transmission method, data transmission equipment and network system
CN110266736A (en) A kind of optimization method and device for the portal certification based on https agreement
CN108600378B (en) File downloading method, device, terminal and storage medium
CN104811507A (en) IP address acquiring method and IP address acquiring device
CN103501332A (en) Data transmission method, data transmission equipment and network system
CN108337306A (en) Equipment finding method, device, system, terminal and storage medium
CN104009999A (en) Method and device for preventing ARP cheating and network access server
CN109451094B (en) Method, system, electronic device and medium for acquiring IP address of source station
CN103501335A (en) Data transmission method, data transmission equipment and data transmission system
Sarker et al. Learning Python Network Programming

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140101

RJ01 Rejection of invention patent application after publication