CN105099885A - Information transmitting method and device - Google Patents

Information transmitting method and device Download PDF

Info

Publication number
CN105099885A
CN105099885A CN201510409554.1A CN201510409554A CN105099885A CN 105099885 A CN105099885 A CN 105099885A CN 201510409554 A CN201510409554 A CN 201510409554A CN 105099885 A CN105099885 A CN 105099885A
Authority
CN
China
Prior art keywords
terminal
information
connection
long
connection code
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.)
Granted
Application number
CN201510409554.1A
Other languages
Chinese (zh)
Other versions
CN105099885B (en
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 Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510409554.1A priority Critical patent/CN105099885B/en
Publication of CN105099885A publication Critical patent/CN105099885A/en
Application granted granted Critical
Publication of CN105099885B publication Critical patent/CN105099885B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to an information-transmitting method and an information-transmitting device and belongs to the technical field of the internet. The method comprises the steps as follows: receiving information transmitted by a first terminal via a first long connection; wherein the first long connection is the long connection between a webpage browser of the first terminal and a dispatch server, and the information is carried with a connection code for marking an information block belonged by the first terminal; transmitting the information to a background server corresponding to the connection code via a second long connection, wherein the second long connection is the long connection corresponding to the first terminal between the dispatch server and the background server; receiving the information transmitted by the background server via a third long connection, wherein the third long connection is the long connection corresponding to a second terminal between the dispatch server and the background server; the second terminal is at least one terminal in the information block which corresponds to the connection code and which is determined by the background server; forwarding the information to the second terminal via a fourth long connection, wherein the fourth long connection is the long connection between the dispatch server and the webpage browser of the second terminal.

Description

Method for sending information and device
Technical field
The disclosure relates to Internet technical field, particularly a kind of method for sending information and device.
Background technology
Along with the development of Internet technology, between user, real-time interchange can be carried out by the instant communication client installed in terminal.
When being exchanged by instant communication client between user, need in the terminal instant messaging application program to be installed in advance, and register corresponding instant messaging account number.After user uses instant communication client to add the instant messaging account number of the other side, namely exchange with the other side by instant communication client.Because user needs to install instant messaging application program and register corresponding instant messaging account number just can exchange, cause communication process comparatively complicated.
Summary of the invention
Disclosure embodiment provides a kind of method for sending information and device.Described technical scheme is as follows:
According to first aspect of the present disclosure, provide a kind of method for sending information, in dispatch server, the method comprises:
Receive first terminal by the first long information connecting transmission; First long connection was that set up between the web browser of first terminal and dispatch server long connects, and information carries the connection code for identifying information group belonging to first terminal;
Information is sent by the second long background server connected to connecting code correspondence; Second long connection was the long connection corresponding with first terminal of setting up between dispatch server and background server;
By the 3rd long information connecting reception background server and send; 3rd long connection was that the length corresponding with the second terminal set up between dispatch server and background server connects; Second terminal be background server determine with at least one terminal connected in information group corresponding to code;
By the 4th long connection, information is transmitted to the second terminal, the 4th long connection was that set up between dispatch server and the web browser of the second terminal long is connected;
Wherein, this information is the communication information, or this information is the control information of the web page display contents controlled in web browser.
According to second aspect of the present disclosure, provide a kind of method for sending information, in background server, the method comprises:
By the second long information connecting receiving scheduling server and send; This information is that first terminal connects by first between web browser and dispatch server is long the information sent, and carries the connection code for identifying information group belonging to first terminal in information; Second long connection was the long connection corresponding with first terminal of setting up between dispatch server and background server;
At least one terminal in the information group corresponding with connecting code is defined as the second terminal;
Information is sent to dispatch server by the 3rd long connection; 3rd long connection was that the length corresponding with the second terminal set up between dispatch server and background server connects; Dispatch server is used for, by the 4th long connection, information is transmitted to the second terminal, and the 4th long connection was that set up between dispatch server and the web browser of the second terminal long is connected;
Wherein, information is the communication information, or information is the control information of the web page display contents controlled in web browser.
According to the third aspect of the present disclosure, provide a kind of information transmitting apparatus, this device comprises:
First receiver module, is configured to receive first terminal by the first long information connecting transmission; First long connection was that set up between the web browser of first terminal and dispatch server long connects, and information carries the connection code for identifying information group belonging to first terminal;
First sending module, is configured to send information by the second long background server connected to connecting code correspondence; Second long connection was the long connection corresponding with first terminal of setting up between dispatch server and background server;
Second receiver module, is configured to by the 3rd long information connecting reception background server and send; 3rd long connection was that the length corresponding with the second terminal set up between dispatch server and background server connects; Second terminal be background server determine with at least one terminal connected in information group corresponding to code;
Forwarding module, is configured to, by the 4th long connection, information is transmitted to the second terminal, and the 4th long connection was that set up between dispatch server and the web browser of the second terminal long is connected;
Wherein, this information is the communication information, or this information is the control information of the web page display contents controlled in web browser.
According to fourth aspect of the present disclosure, provide a kind of information transmitting apparatus, this device comprises:
3rd receiver module, is configured to by the second long information connecting receiving scheduling server and send; This information is that first terminal connects by first between web browser and dispatch server is long the information sent, and carries the connection code for identifying information group belonging to first terminal in information; Second long connection was the long connection corresponding with first terminal of setting up between dispatch server and background server;
Determination module, is configured at least one terminal in the information group corresponding with connecting code to be defined as the second terminal;
Second sending module, is configured to send this information by the 3rd long connection to dispatch server; 3rd long connection was that the length corresponding with the second terminal set up between dispatch server and background server connects; Dispatch server is used for, by the 4th long connection, information is transmitted to the second terminal, and the 4th long connection was that set up between dispatch server and the web browser of the second terminal long is connected;
Wherein, this information is the communication information, or this information is the control information of the web page display contents controlled in web browser.
According to the 5th aspect of the present disclosure, provide a kind of information transmitting apparatus, this device comprises:
Processor;
For the memory of the executable instruction of storage of processor;
Wherein, this processor is configured to:
Receive first terminal by the first long information connecting transmission; First long connection was that set up between the web browser of first terminal and dispatch server long connects, and information carries the connection code for identifying information group belonging to first terminal;
Information is sent by the second long background server connected to connecting code correspondence; Second long connection was the long connection corresponding with first terminal of setting up between dispatch server and background server;
By the 3rd long information connecting reception background server and send; 3rd long connection was that the length corresponding with the second terminal set up between dispatch server and background server connects; Second terminal be background server determine with at least one terminal connected in information group corresponding to code;
By the 4th long connection, information is transmitted to the second terminal, the 4th long connection was that set up between dispatch server and the web browser of the second terminal long is connected;
Wherein, this information is the communication information, or this information is the control information of the web page display contents controlled in web browser.
According to the 6th aspect of the present disclosure, provide a kind of information transmitting apparatus, this device comprises:
Processor;
For the memory of the executable instruction of storage of processor;
Wherein, this processor is configured to:
By the second long information connecting receiving scheduling server and send; This information is that first terminal connects by first between web browser and dispatch server is long the information sent, and carries the connection code for identifying information group belonging to first terminal in information; Second long connection was the long connection corresponding with first terminal of setting up between dispatch server and background server;
At least one terminal in the information group corresponding with connecting code is defined as the second terminal;
Information is sent to dispatch server by the 3rd long connection; 3rd long connection was that the length corresponding with the second terminal set up between dispatch server and background server connects; Dispatch server is used for, by the 4th long connection, information is transmitted to the second terminal, and the 4th long connection was that set up between dispatch server and the web browser of the second terminal long is connected;
Wherein, information is the communication information, or information is the control information of the web page display contents controlled in web browser.
The technical scheme that disclosure embodiment provides can comprise following beneficial effect:
By the different terminals with identical connection code is defined as same information group, and at terminal and dispatch server and set up long connection between dispatch server with background server, realize the forwarding of information in information group by the connection of this length; Solve terminal to need instant messaging application program to be installed and to register corresponding instant messaging account number just can exchange, cause the problem that communication process is comparatively complicated; Reach user not need, in terminal, instant messaging application program is installed, also can be linked up with other users in the same information group with identical connection code on webpage by web browser, thus simplify communication process, improve the effect exchanging efficiency.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows and meets embodiment of the present disclosure, and is used from specification one and explains principle of the present disclosure.
Fig. 1 is the structural representation of the implementation environment involved by method for sending information that each embodiment of the disclosure provides;
Fig. 2 is the flow chart of a kind of method for sending information according to an exemplary embodiment;
Fig. 3 is the flow chart of a kind of method for sending information according to another exemplary embodiment;
Fig. 4 A is the flow chart of a kind of method for sending information Gen Ju an exemplary embodiment again;
Fig. 4 B to Fig. 4 D is the enforcement schematic diagram of the method for sending information shown in Fig. 4 A;
Fig. 4 E is the method flow diagram of the transmission of the dispatch server involved by a kind of method for sending information information process Gen Ju an exemplary embodiment again;
Fig. 4 F is the enforcement schematic diagram of the method for sending information shown in Fig. 4 A;
Fig. 5 A is the flow chart of a kind of method for sending information according to another exemplary embodiment;
Fig. 5 B is the enforcement schematic diagram of the method for sending information shown in Fig. 5 A;
Fig. 6 is the block diagram of a kind of information transmitting apparatus according to an exemplary embodiment;
Fig. 7 is the block diagram of a kind of information transmitting apparatus according to another exemplary embodiment;
Fig. 8 is the block diagram of a kind of information transmitting apparatus Gen Ju an exemplary embodiment again;
Fig. 9 is the block diagram of a kind of information transmitting apparatus according to another exemplary embodiment;
Figure 10 is the block diagram of a kind of information transmitting apparatus according to an exemplary embodiment.
By above-mentioned accompanying drawing, illustrate the embodiment that the disclosure is clear and definite more detailed description will be had hereinafter.These accompanying drawings and text description be not in order to limited by any mode the disclosure design scope, but by reference to specific embodiment for those skilled in the art illustrate concept of the present disclosure.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Please refer to Fig. 1, it illustrates the structural representation of the implementation environment involved by method for sending information that each embodiment of the disclosure provides.This implementation environment comprises first terminal 120, second terminal 140, multiple stage dispatch server 160 and multiple stage background server 180.
First terminal 120 and the second terminal 140 are the electronic equipments being provided with web browser and having the Internet access function.This electronic equipment can be smart mobile phone, panel computer or pocket computer on knee etc.Wherein, when first terminal 120 and the second terminal 140 have identical connection code, this connection code is used for information group belonging to marking terminal.
Can be connected by cable network or wireless network between first terminal 120 with dispatch server 160; Second terminal 140 can be connected by cable network or wireless network with between dispatch server 160.
Dispatch server 160 can be a station server, or the server cluster be made up of some station servers, or a cloud computing service center.The length that dispatch server 160 is set up for communicating by wireless network and first terminal 120 and the second terminal 140 is connected.
When comprising at least two dispatch servers 160 and at least two background servers 180 in this implementation environment, each dispatch server 160 can be connected by cable network or wireless network with between each background server 180.
Background server 180 can be a station server, or the server cluster be made up of some station servers, or a cloud computing service center.
For convenience of description, only to be performed by dispatch server 160 and background server 180 for method for sending information in following embodiment and be illustrated, the disclosure is not formed and limit.
Fig. 2 is the flow chart of a kind of method for sending information according to an exemplary embodiment.The present embodiment is applied to the dispatch server 160 shown in Fig. 1 with this method for sending information and illustrates.This method for sending information comprises:
In step 201, first terminal is received by the first long information connecting transmission; This first long connection is that set up between the web browser of first terminal and dispatch server long connects, and this information carries the connection code for identifying information group belonging to first terminal.
Wherein, this information is the communication information, or this information is the control information of the web page display contents controlled in web browser.
This first long connection can be that the websocket length be based upon between the web browser of first terminal and dispatch server connects or Comet length connects etc.
In step 202., information is sent by the second long background server connected to connecting code correspondence; Second long connection was the long connection corresponding with first terminal of setting up between dispatch server and background server.
Wherein, the corresponding same background server of same connection code, and same background server can be simultaneously corresponding with multiple connection code.
This second long connection can be the long connection of TCP (TransmissionControlProtocol, transmission control protocol) be based upon between dispatch server and background server.
In step 203, by the 3rd long this information connecting reception background server and send; 3rd long connection was that the length corresponding with the second terminal set up between dispatch server and background server connects; Second terminal be background server determine with at least one terminal connected in information group corresponding to code.
This second terminal be background server find with first terminal, there is the terminal of identical connection code, namely first terminal and the second terminal belong to same information group.
3rd long connection can be the long connection of TCP be based upon between dispatch server and background server.
In step 204, by the 4th long connection, this information is transmitted to the second terminal, the 4th long connection was that set up between dispatch server and the web browser of the second terminal long is connected.
4th long connection can be that the websocket length be based upon between the web browser of the second terminal and dispatch server connects or Comet length connects etc.
In sum, the method for sending information that the present embodiment provides, by the different terminals with identical connection code is defined as same information group, and at terminal and dispatch server and set up long connection between dispatch server with background server, realize the forwarding of information in information group by the connection of this length; Solve terminal to need instant messaging application program to be installed and to register corresponding instant messaging account number just can exchange, cause the problem that communication process is comparatively complicated; Reach user not need, in terminal, instant messaging application program is installed, also can be linked up with other users in the same information group with identical connection code on webpage by web browser, thus simplify communication process, improve the effect exchanging efficiency.
Obtain according to different terminals and connect the sequencing of code, the information group of this connection code correspondence comprises master terminal and from terminal, namely first terminal may be master terminal also may be from terminal, the second terminal may be from terminal also may be master terminal.As a kind of possible execution mode, the master slave relation between first terminal and the second terminal can be as follows.
The first, first terminal is master terminal, and master terminal is first and obtains the terminal connecting code; Second terminal is all from terminal in information group, is obtain from master terminal the terminal connecting code from terminal.
Under this master slave relation, the information pass-through mode in this information group can be described to: all from terminal in affiliated information group of the information broadcasting that master terminal sends.Corresponding, each is only sent to the master terminal in affiliated information group from the information that terminal sends.
Under this master slave relation, when only comprising a master terminal and one in information group from terminal, the information that can realize principal and subordinate's terminal room is sent out mutually; When comprise in information group a master terminal and multiple from terminal time, the information broadcasting of master terminal can be realized.
The second, the second terminal is master terminal, and master terminal is first and obtains the terminal connecting code; First terminal is all from terminal in information group, is obtain from master terminal the terminal connecting code from terminal.
Under this master slave relation, the information pass-through mode in this information group can be described to: each is only sent to the master terminal in affiliated information group from the information that terminal sends.Corresponding, all from terminal in affiliated information group of the information broadcasting that master terminal sends.
Under this master slave relation, when only comprising a master terminal and one in information group from terminal, the information that can realize principal and subordinate's terminal room is sent out mutually; When comprise in information group a master terminal and multiple from terminal time, can ensure only to send information to master terminal from terminal, ensure to send the fail safe of information from terminal.
The third, first terminal be in information group one from terminal, the second terminal is master terminal in information group and other is from terminal, and master terminal is first and obtains the terminal connecting code, is obtain from master terminal the terminal connecting code from terminal.
Under this master slave relation, the information pass-through mode in this information group can be described to: in information group, arbitrary information sent from terminal is broadcast to all terminals in information group.
Under this master slave relation, when only comprising a master terminal and one in information group from terminal, the information that can realize principal and subordinate's terminal room is sent out mutually; When comprise in information group a master terminal and multiple from terminal time, can realize each terminal send information broadcast in information group, thus reach similar group in chat effect.
Fig. 3 is the flow chart of a kind of method for sending information according to another exemplary embodiment.The present embodiment is applied to the background server 180 shown in Fig. 1 with this method for sending information and illustrates.This method for sending information comprises:
In step 301, by the second long information connecting receiving scheduling server and send; This information is that first terminal connects by first between web browser and dispatch server is long the information sent, and carries the connection code for identifying information group belonging to first terminal in this information; Second long connection was the long connection corresponding with first terminal of setting up between dispatch server and background server.
Wherein, this information is the communication information, or this information is the control information of the web page display contents controlled in web browser.
Comprise Control Cooling and corresponding controling parameters in control information, Control Cooling comprise rendered object or control existing object change at least one;
Receive the second terminal of control information for being resolved control information by web browser, and according to resolving the Control Cooling that obtains and controling parameters performs corresponding operating on the webpage of the current display of web browser.
In step 302, at least one in the information group corresponding with connecting code is defined as the second terminal.
In step 303, this information is sent by the 3rd long connection to dispatch server; 3rd long connection was that the length corresponding with the second terminal set up between dispatch server and background server connects; Dispatch server is used for, by the 4th long connection, information is transmitted to the second terminal, and the 4th long connection was that set up between dispatch server and the web browser of the second terminal long is connected.
In sum, the method for sending information that the present embodiment provides, by the different terminals with identical connection code is defined as same information group, and at terminal and dispatch server and set up long connection between dispatch server with background server, realize the forwarding of information in information group by the connection of this length; Solve terminal to need instant messaging application program to be installed and to register corresponding instant messaging account number just can exchange, cause the problem that communication process is comparatively complicated; Reach user not need, in terminal, instant messaging application program is installed, also can be linked up with other users in the same information group with identical connection code on webpage by web browser, thus simplify communication process, improve the effect exchanging efficiency.
Obtain according to different terminals and connect the sequencing of code, the information group of this connection code correspondence comprises master terminal and from terminal, namely first terminal may be master terminal also may be from terminal, the second terminal may be from terminal also may be master terminal.As a kind of possible execution mode, the master slave relation between first terminal and the second terminal can be as follows.
The first, first terminal is master terminal, and master terminal is first and obtains the terminal connecting code; Second terminal is all from terminal in information group, is obtain from master terminal the terminal connecting code from terminal.
The second, the second terminal is master terminal, and master terminal is first and obtains the terminal connecting code; First terminal is all from terminal in information group, is obtain from master terminal the terminal connecting code from terminal.
The third, first terminal be in information group one from terminal, the second terminal is master terminal in information group and other is from terminal, and master terminal is first and obtains the terminal connecting code, is obtain from master terminal the terminal connecting code from terminal.
Fig. 4 A is the flow chart of a kind of method for sending information Gen Ju an exemplary embodiment again.The present embodiment is applied to the implementation environment shown in Fig. 1 to illustrate with this method for sending information.Wherein, first terminal is master terminal, the second terminal be in information group from terminal.The method comprises:
In step 401, first terminal is set up first by web browser and dispatch server and long to be connected.
When user uses the web browser in first terminal to access predetermined webpage, namely set up the first length by long connection protocol and dispatch server to be connected, this first long connection can be the long connection of websocket or the long connection of Comet etc., and the disclosure does not limit the first long type connected.
It should be noted that, consider that may there is a large amount of users accesses this webpage simultaneously, only carrying out scheduling meeting by a dispatch server causes the processing pressure of this dispatch server excessive, in order to avoid this situation, can according to the treating capacity of reality, increase the quantity of dispatch server, realize horizontal extension and distributed treatment, thus alleviate the processing pressure of separate unit dispatch server.
Corresponding, dispatch server and the web browser of first terminal are set up the first length and are connected.
In step 402, first terminal obtains request by the first long connection to dispatch server transmission connection code.
When user wants establishment one information group, thus the user realized in information group is when carrying out information interaction, namely by being based upon, first between web browser and dispatch server is long to be connected, send to dispatch server and connect code acquisition request, this connection code obtains request and is used for connecting code to acquisition, this connection code is used for the information group belonging to marking terminal, and the terminal belonged in same information group can carry out the forwarding of information.
Corresponding, the connection code that dispatch server is sent by the first long connection reception first terminal obtains request.
In step 403, dispatch server obtains request for first terminal distribution connection code according to this connection code.
Namely dispatch server knows that first terminal is wanted to set up an information group after receiving this connection code acquisition request.Dispatch server and stochastic generation or generate one according to predetermined connection code create-rule and connect code, and by this first long connection, this connection code is sent to first terminal, first terminal receives the connection code of distribution and shows on webpage.Wherein, this connection code can be Quick Response Code, bar code or digital code etc., and the disclosure does not limit the form of expression connecting code.
Such as, as shown in Figure 4 B, first terminal 41 after receiving the connection code that dispatch server sends, the webpage 42 shown at web browser with the form of Quick Response Code shows.
In step 404, dispatch server carries out computing by preset schedule algorithm to connection code, and determines the background server of this connection code correspondence according to operation result.
Dispatch server is after first terminal distributes connection code, according to the dispatching algorithm preset, computing is carried out to connection code, and the background server of this connection code correspondence is determined according to the result of computing, information parts by this connection code correspondence is fitted on the background server connecting code correspondence, thus ensure that the information group of foundation is evenly distributed to each background server, realize the load balancing of background server, avoid indivedual background server processing pressure to strengthen, affect processing speed.Wherein, this dispatching algorithm can be hash algorithm, and basis is underground not to be limited the kind of this dispatching algorithm.
It should be noted that, similar with dispatch server, the quantity of background server also can carry out horizontal extension according to actual conditions, thus realizes distributed treatment.
In step 405, dispatch server and this background server are set up the second length and are connected, and send the mark of this connection code and first terminal to background server by the second long connection.
After dispatch server determines the background server of this connection code correspondence, set up corresponding with this first terminal second with this background server and to be longly connected, and by this second long connection by the mark of first terminal be connected code and be sent to this background server.Wherein, this second long connection can be the long connection of being set up by Transmission Control Protocol.
Correspondence, background server and dispatch server are set up the second length and are connected, and by the connection code of the second long connection receiving scheduling server transmission and the mark of first terminal.
In a step 406, dispatch server stores the first long corresponding relation be connected with the second length that connects.
Conveniently first terminal is follow-up sends information to background server, dispatch server with connect background server corresponding to code set up second long connects after, the corresponding relation that the first long connection is connected with the second length is stored.When the information that the subsequently received first terminal of dispatch server is sent by the first long connection, this information, namely according to this corresponding relation, is sent to background server by the second long connection by dispatch server, thus the efficiency that the information of raising sends.
In step 407, background server preserves the mark of first terminal and the corresponding relation being connected code.
Background server receive dispatch server send first terminal mark be connected code after, namely first terminal is stored with the corresponding relation being connected code.Wherein, this corresponding relation can schematically as shown in Table 1.
Table one
Terminal iidentification Connect code
Terminal A 1234
Terminal B 1235
Terminal C 1236
Terminal D 1237
It should be noted that there is not strict precedence relationship between above-mentioned steps 406 and step 407.
Through above-mentioned steps, namely first terminal establishes an information group, other-end by obtain dispatch server be first terminal distribute connection code after, this information group can be added.
In a step 408, the second terminal is set up the 4th by web browser and dispatch server and long to be connected.
After second terminal obtains this connection code from first terminal, namely set up the 4th length by the web browser of the second terminal with dispatch server and be connected.Be connected similar with the web browser of first terminal with the first length between dispatch server, the 4th long connection can be the long connection of websocket or the long connection of Comet etc.
Such as, as shown in Figure 4 B, after the Quick Response Code that the second terminal scanning first terminal 41 shows on webpage 42, namely set up the 4th length with the web browser by the second terminal with dispatch server and be connected.
Corresponding, dispatch server and the web browser of the second terminal are set up the 4th length and are connected.
In step 409, the second terminal sends connection request by the 4th long connection to dispatch server, the mark carrying the second terminal in this connection request and the connection code obtained from master terminal.
Second terminal and dispatch server set up the 4th long is connected after, namely send the connection request of the connection code carried from first terminal acquisition to dispatch server.This connection request adds information group corresponding to first terminal for asking.
Corresponding, dispatch server is by the 4th long connection request connecting reception second terminal and send.
In step 410, dispatch server determines the background server of this connection code correspondence according to preset schedule algorithm.
After dispatch server receives this connection request, namely know that the second terminal is wanted to add certain information group, and this link information is forwarded to background server corresponding to this information group, processed by this background server.Dispatch server obtains the connection code carried in this connection request, and determines the background server of this connection code correspondence by preset schedule algorithm.Obtain from first terminal because this connection code is the second terminal, and the dispatching algorithm that dispatch server adopts is identical, so background server corresponding to the second terminal of determining of the dispatch server background server corresponding with first terminal is consistent.
In step 411, dispatch server and this background server are set up the 3rd length and are connected.
After dispatch server determines the dispatch server that the second terminal is corresponding, set up the 3rd length with this background server and be connected.Wherein, the 3rd long connection was the long connection of being set up by Transmission Control Protocol.
Corresponding, background server and dispatch server are set up the 3rd length and are connected.
It should be noted that, similar to above-mentioned steps 406, dispatch server also needs to store the 3rd long corresponding relation be connected with the 4th length that connects.
In step 412, connection request is sent to corresponding background server by the 3rd long connection by dispatch server.
Dispatch server determines the background server processing this connection request, and with this background server set up the 3rd long is connected after, namely by the 3rd long connection, connection request is sent to this background server.
Corresponding, this background server is by the 3rd long connection request connecting receiving scheduling server and forward.
In step 413, the second terminal is added in the information group of this connection code correspondence by background server.
The each self-corresponding information group of multiple connection code is had, so after background server receives this connection request, obtain the connection code carried in this connection request, thus determine the information group that the second terminal is wanted to add owing to setting up in same background server simultaneously.
Background server obtains the mark of second terminal of carrying in this connection request further, and the mark of this second terminal is added in this information group after determining corresponding information group according to the connection code carried in connection request.
Such as, background server gets the connection code that carries in connection request for " 1234 ", second terminal of carrying in connection request be designated " terminal E ", background server is about to " terminal E " to be added to and connects in information group corresponding to code " 1234 ".
When other-end obtains this connection code from first terminal and sends connection request, background server carries out enforcement to the terminal in this connection code corresponding informance group and upgrades; When the terminal in information group disconnects the connection between dispatch server, namely dispatch server sends to background server and corresponding disconnects information, and namely background server disconnects information this terminal removed from information group according to this.
Through above-mentioned steps 401 to step 413, first terminal and the second terminal add same information group, and namely user exchanges with the second terminal by first terminal in information group.Wherein, first terminal sends the process of information as described in following step 414 to step 419 to the second terminal.
In step 414, first terminal sends information by the first long connection to dispatch server.
When user sends information by first terminal to other terminal in information group, namely the information that user inputs by being connected with first between dispatch server is long, is sent to dispatch server by first terminal.
Corresponding, dispatch server receives the information that first terminal is sent by the first long connection.
In step 415, dispatch server sends this information by the second long background server connected to connecting code correspondence.
After above-mentioned steps 406, in dispatch server, store the corresponding relation of first terminal and the second terminal, so after dispatch server receives information by the first long connection, namely by the corresponding second long connection, this information is sent to background server.
Corresponding, background server is by the second long information connecting receiving scheduling server and send.
In step 416, at least one terminal in the information group corresponding with connecting code is defined as the second terminal by background server.
Background server can pre-set information pass-through mode corresponding to information group, after background server receives the information of the first terminal transmission that dispatch server forwards, namely belonging to first terminal, the information pass-through mode of information group determines the terminal receiving this information.
Such as, as shown in Figure 4 C, when information pass-through mode corresponding to the information group of first terminal 41 is for forward one to one, when namely only comprising two terminals (first terminal 41 is connected the second terminal 43 of code with from first terminal 41 acquisition) in this information group, background server is defined as by the second terminal 43 in information group the terminal receiving this information.
Again such as, as shown in Figure 4 D, when the information pass-through mode that the information group of first terminal 41 is corresponding is that one-to-many forwards, namely in this information group, it is all from terminal that the information that master terminal sends can be broadcast in information group, when only can be sent to the master terminal information group from the information of terminal transmission, background server is defined as by all second terminals 43 (from terminal) in information group the terminal receiving this information.
It should be noted is that, conveniently user identifies the terminal of transmission information, and terminal also needs the user name sending user's setting to dispatch server, is transmitted to background server by dispatch server.The mark of background server to the user name received and terminal carries out association store, and when follow-up forwarding information, the user name that information is corresponding with the terminal of the information of transmission is together sent to the terminal of reception information, thus facilitates user to identify.
Need to illustrate on the other hand, information pass-through mode corresponding to information group also can be carried in the connection code request that first terminal sends to dispatch server, background server is transmitted to by dispatch server, arranged according to this information pass-through mode by backstage, the disclosure does not limit this again.
In step 417, background server sends this information by the 3rd long connection to dispatch server; 3rd long connection was that the length corresponding with the second terminal set up between dispatch server and background server connects.
After background server determines to receive the second terminal of this information, by corresponding the 3rd longly the connecting of this second terminal, send this information to dispatch server.It should be noted that, when background server determines that this informational needs sends to multiple second terminal, background server sends this information by multiple second terminal each self-corresponding 3rd long connection to dispatch server.
In step 418, dispatch server is by the 3rd long information connecting reception background server and send.
Corresponding, dispatch server is by the 3rd long information connecting reception background server and send.
In step 419, information is transmitted to the second terminal by the 4th long connection by dispatch server.
After above-mentioned steps 411, dispatch server preserves the 3rd long connection and the 4th long corresponding relation be connected, and as shown in Figure 4 E, dispatch server can comprise the steps to the second terminal forwarding information.
In step 419A, the 4th long connection that dispatch server is corresponding according to the 3rd long Connection inquiring.
Dispatch server is according to the 3rd long connection, and the long connection between terminal and dispatch server is with the long corresponding relation be connected between dispatch server and background server, and the 4th length finding the 3rd long connection corresponding connects.
In step 419B, dispatch server, by the 4th long connection inquired, forwards this information to the second terminal.
Apparent, by the method for sending information that the present embodiment provides, user does not need to install instant messaging application program, registration instant messaging account number is not needed yet, only need scanning Quick Response Code can add information group, and received by web browser or transmission information, greatly simplifie the process that user exchanges.
In sum, the method for sending information that the present embodiment provides, by the different terminals with identical connection code is defined as same information group, and at terminal and dispatch server and set up long connection between dispatch server with background server, realize the forwarding of information in information group by the connection of this length; Solve terminal to need instant messaging application program to be installed and to register corresponding instant messaging account number just can exchange, cause the problem that communication process is comparatively complicated; Reach user not need, in terminal, instant messaging application program is installed, also can be linked up with other users in the same information group with identical connection code on webpage by web browser, thus simplify communication process, improve the effect exchanging efficiency.
In the present embodiment, user only needs to use terminal to obtain connection code can add corresponding information group, and received in information group by web browser or send information, compared to traditional installation instant communication client, and use instant messaging account number to exchange, greatly simplifie the process that user exchanges.
In the present embodiment, dispatch server by dispatching algorithm by each information group equilibrium assignment in multiple stage background server, avoid the problem that indivedual background server processing pressure is larger, thus realize the load balancing of background server.
Above-mentioned information can be not only the communication information, can also be the control information of the web page display contents controlled in web browser.Comprise Control Cooling and corresponding controling parameters in this control information, Control Cooling comprise rendered object or control existing object change at least one.
The second terminal receiving control information is resolved control information by web browser, and according to resolving the Control Cooling that obtains and controling parameters performs corresponding operating on the webpage of the current display of web browser.As a kind of possible execution mode, this method can also comprise the steps.
At step 420 which, the second terminal detects whether the information received is control information.
Control information has fixing message format, and such as, the form of control information can schematically as shown in Table 2.
Table two
Second terminal, when the information conforms fixed news form received being detected, namely determines that this information is control information.
Wherein, this Control Cooling comprise rendered object or control existing object change at least one, the practical significance of Control Cooling and controling parameters can schematically as shown in Table 3.
Table three
In step 421, when detecting that the information received is control information, the second terminal is resolved control information by web browser.
When detecting that the information received is control information, the second terminal and the JavaScript script by web browser are resolved this control information, obtain the Control Cooling and controling parameters that carry in this control information.
In step 422, the second terminal is according to resolving the Control Cooling that obtains and controling parameters performs corresponding operating on the webpage of the current display of web browser.
Such as, as illustrated in figure 4f, the information that first terminal 41 is sent by web browser is:
1234__circle__[“100”,“100”,“65”];
1234__circle__[“100",“100”,“60”];
1234__line__[“155”,“100”,“165”,“100”];
1234__line__[“35”,“100”,“45”,“100”];
1234__line__[“100”,“155”,“100",“165”];
1234__line__[“100”,“35”,“100”,“45”];
1234__line__[“100”,“100”,“134”,“66”];
1234__line__[“100”,“100”,“75”,“75”]。
Second terminal 43 detects the information received, and determines that this information is control information, and after being resolved control information by the JavaScript script of web browser, the webpage 44 of the current display of web browser shows corresponding pattern.
By above-mentioned steps, can realize being controlled in real time at webpage another terminal by a terminal, connect two terminals compared to traditional by data wire, and control another terminal by the control program installed in a terminal, easier.
It should be noted that, not only can realize master terminal by said method to control in real time the webpage from terminal, also can realize controlling in real time from the webpage of terminal to master terminal, the present embodiment only carries out controlling in real time to be described to the webpage from terminal for master terminal, does not form this and limits.
Fig. 5 A is the flow chart of a kind of method for sending information according to another exemplary embodiment.The present embodiment is applied to the implementation environment shown in Fig. 1 to illustrate with this method for sending information.Wherein, first terminal be in information group from terminal, the second terminal is the master terminal in information group.The method comprises:
In step 501, the second terminal is set up the 4th by web browser and dispatch server and long to be connected.
When user uses the web browser in the second terminal to access predetermined webpage, namely set up the 4th length by long connection protocol and dispatch server to be connected, 4th long connection can be the long connection of websocket or the long connection of Comet etc., and the disclosure does not limit the 4th long type connected.
Corresponding, dispatch server and the web browser of the second terminal are set up the 4th length and are connected.
In step 502, the second terminal obtains request by the 4th long connection to dispatch server transmission connection code.
When user wants to create with information group, thus the user realized in information group is when carrying out information interaction, namely by being based upon, the 4th between web browser and dispatch server is long to be connected, send to dispatch server and connect code acquisition request, this connection code obtains request and is used for connecting code to acquisition, this connection code is used for the information group belonging to marking terminal, and the terminal belonged in same information group can carry out the forwarding of information.
Corresponding, dispatch server obtains request by the 4th long connection code connecting the transmission of reception second terminal.
In step 503, dispatch server obtains request according to this connection code is that the second terminal distribution connects code.
In step 504, dispatch server carries out computing by preset schedule algorithm to connection code, and determines the background server of this connection code correspondence according to operation result.
Step 503 is similar to above-mentioned steps 403 to step 404 to the execution mode of step 504, does not repeat them here.
In step 505, dispatch server and this background server are set up the 3rd length and are connected, and send the mark of this connection code and the second terminal to background server by the 3rd long connection.
After dispatch server determines the background server of this connection code correspondence, set up the corresponding with this second terminal the 3rd with this background server and to be longly connected, and by the 3rd long connection by the mark of the second terminal be connected code and be sent to this background server.Wherein, the 3rd long connection can be the long connection of being set up by Transmission Control Protocol.
Correspondence, background server and dispatch server are set up the 3rd length and are connected, and by the connection code of the 3rd long connection receiving scheduling server transmission and the mark of the second terminal.
In step 506, dispatch server stores the 3rd long corresponding relation be connected with the 4th length that connects.
Dispatch server and background server set up the 3rd long is connected after, longly to connect and the 4th long corresponding relation be connected stores the 3rd, facilitate the forwarding of follow-up.
In step 507, background server is preserved the mark of the second terminal and is connected the corresponding relation of code.
It should be noted that there is not strict precedence relationship between above-mentioned steps 506 and step 507.
In step 508, first terminal is set up first by web browser and dispatch server and long to be connected.
After first terminal obtains this connection code from the second end, namely set up the first length by the web browser of first terminal with dispatch server and be connected.Be connected similar with the web browser of the second terminal with the 4th length between dispatch server, the first long connection can be the long connection of websocket or the long connection of Comet etc.
Corresponding, dispatch server and the web browser of first terminal are set up the first length and are connected.
In step 509, first terminal sends connection request by the 4th long connection to dispatch server, the mark carrying first terminal in this connection request and the connection code obtained from master terminal.
First terminal and dispatch server set up first long is connected after, namely send the connection request of the connection code carried from the second end acquisition to dispatch server.This connection request adds information group corresponding to the second terminal for asking.
Corresponding, dispatch server is by the first long connection request connecting reception first terminal and send.
In step 510, dispatch server determines the background server of this connection code correspondence according to preset schedule algorithm.
Because this connection code is that first terminal obtains from the second end, and the dispatching algorithm that dispatch server adopts is identical, so background server corresponding to the first terminal determined of the dispatch server background server corresponding with the second terminal is consistent.
In step 511, dispatch server and this background server are set up the second length and are connected.
After the dispatch server that dispatch server determination first terminal is corresponding, set up the second length with this background server and be connected.Wherein, this second long connection is the long connection of being set up by Transmission Control Protocol.
Corresponding, background server and dispatch server are set up the second length and are connected.
In step 512, connection request is sent to corresponding background server by the second long connection by dispatch server.
Corresponding, background server is by the second long connection request connecting receiving scheduling server and forward.
In step 513, first terminal adds in the information group of this connection code correspondence by background server.
The each self-corresponding information group of multiple connection code is had, so after background server receives this connection request, obtain the connection code carried in this connection request, thus determine the information group that first terminal is wanted to add owing to setting up in same background server simultaneously.
Background server obtains the mark of the first terminal carried in this connection request further, and the mark of this first terminal is added in this information group after determining corresponding information group according to the connection code carried in connection request.
Through above-mentioned steps 501 to step 513, first terminal and the second terminal add same information group, and namely user exchanges with the second terminal by first terminal in information group.Wherein, the second terminal sends the process of information as described in following step 514 to step 519 to first terminal.
In the step 514, first terminal sends information by the first long connection to dispatch server.
When user sends information by first terminal to other terminal in information group, namely the information that user inputs by being connected with first between dispatch server is long, is sent to dispatch server by first terminal.
Corresponding, dispatch server receives the information that first terminal is sent by the first long connection.
In step 515, dispatch server sends information by the second long background server connected to connecting code correspondence.
Long connect the corresponding relation that be connected long with second owing to storing first in dispatch server, thus dispatch server receive by first long connect the information sent after, by the second long connection of correspondence background server transmission information to correspondence.
Corresponding, background server is by the second long information connecting receiving scheduling server and send.
In step 516, at least one terminal in the information group corresponding with connecting code is defined as the second terminal by background server.
Background server can pre-set information pass-through mode corresponding to information group, after background server receives the information of the first terminal transmission that dispatch server forwards, namely belonging to first terminal, the information pass-through mode of information group determines the terminal receiving this information.
Such as, when information pass-through mode corresponding to the information group of the second terminal is for forward one to one, when namely only comprising the second terminal (master terminal) and first terminal (from terminal) in this information group, background server is defined as by the master terminal in information group the terminal receiving this information.
Again such as, when the information pass-through mode that the information group of the second terminal is corresponding is that one-to-many forwards, namely in this information group, it is all from terminal that the information that master terminal sends can be broadcast in information group, when only can be sent to the master terminal information group from the information of terminal transmission, background server is defined as by the second terminal in information group the terminal receiving this information.
Again such as, when the information pass-through mode that the information group of the second terminal is corresponding is that multi-to-multi forwards, namely in this information group, no matter when master terminal or the information from terminal transmission all can be broadcast to all terminals information group, background server is defined as from terminal the terminal receiving this information by the master terminal in information group and other.
It should be noted is that, conveniently user identifies the terminal of transmission information, and terminal also needs the user name sending user's setting to dispatch server, is transmitted to background server by dispatch server.The mark of background server to the user name received and terminal carries out association store, and when follow-up forwarding information, the user name that information is corresponding with the terminal of the information of transmission is together sent to the terminal of reception information, thus facilitates user to identify.
Need to illustrate on the other hand, information pass-through mode corresponding to information group also can be carried in the connection code request that the second terminal sends to dispatch server, background server is transmitted to by dispatch server, arranged according to this information pass-through mode by backstage, the disclosure does not limit this again.
In step 517, background server sends this information by the 3rd long connection to dispatch server; 3rd long connection was that the length corresponding with the second terminal set up between dispatch server and background server connects.
In step 518, dispatch server is by the 3rd long information connecting reception background server and send.
In step 519, information is transmitted to the second terminal by the 4th long connection by dispatch server.
The execution mode of above-mentioned steps 517 to step 519 is similar to above-mentioned steps 417 to step 419, does not repeat them here.
In sum, the method for sending information that the present embodiment provides, by the different terminals with identical connection code is defined as same information group, and at terminal and dispatch server and set up long connection between dispatch server with background server, realize the forwarding of information in information group by the connection of this length; Solve terminal to need instant messaging application program to be installed and to register corresponding instant messaging account number just can exchange, cause the problem that communication process is comparatively complicated; Reach user not need, in terminal, instant messaging application program is installed, also can be linked up with other users in the same information group with identical connection code on webpage by web browser, thus simplify communication process, improve the effect exchanging efficiency.
In the present embodiment, user only needs to use terminal to obtain connection code can add corresponding information group, and received in information group by web browser or send information, compared to traditional installation instant communication client, and use instant messaging account number to exchange, greatly simplifie the process that user exchanges.
In the present embodiment, dispatch server by dispatching algorithm by each information group equilibrium assignment in multiple stage background server, avoid the problem that indivedual background server processing pressure is larger, thus realize the load balancing of background server.
In a kind of possible enforcement scene, as shown in Figure 5 B, PC51 is master terminal, the Quick Response Code of smart mobile phone 52, smart mobile phone 53 and smart mobile phone 54 by showing in scanning PC51 web browser, add the information group that PC51 is corresponding, and show corresponding control assembly in respective web browser.Wherein, smart mobile phone 52 for according to user to the personage A shown in the clicking operation control PC51 of control assembly, smart mobile phone 53 for according to user to the personage B shown in the clicking operation control PC51 of control assembly, smart mobile phone 53 for according to user to the personage C shown in the clicking operation control PC51 of control assembly.When user clicks the control assembly in smart mobile phone 53, namely smart mobile phone 53 sends corresponding control command by web browser to dispatch server 55, after dispatch server 55 receives this control command, this control command is sent to background server 56, by the terminal receiving this control command in background server 56 comformed information group.Background server 56 determines that PC51 is the terminal receiving this control command, and by dispatch server 55, control command is forwarded to PC51.After PC51 receives this control command, this control command is resolved, thus the personage B controlling smart mobile phone 53 correspondence moves.
Following is disclosure device embodiment, may be used for performing disclosure embodiment of the method.For the details do not disclosed in disclosure device embodiment, please refer to disclosure embodiment of the method.
Fig. 6 is the block diagram of a kind of information transmitting apparatus according to an exemplary embodiment.This information transmitting apparatus can realize becoming the some or all of of dispatch server 160 in Fig. 1 by software, hardware or both combinations.This information transmitting apparatus can comprise:
First receiver module 601, is configured to receive first terminal by the first long information connecting transmission; Described first long connection was that set up between the web browser of described first terminal and described dispatch server long connects, and described information carries the connection code for identifying information group belonging to described first terminal;
First sending module 602, is configured to send described information by the second long background server connected to described connection code correspondence; Described second long connection was that the length corresponding with described first terminal set up between described dispatch server and described background server connects;
Second receiver module 603, is configured to by the 3rd long described information connecting the described background server of reception and send; Described 3rd long connection was that the length corresponding with described second terminal set up between described dispatch server and described background server connects; Described second terminal is at least one terminal in the information group corresponding with described connection code determined of described background server;
Forwarding module 604, is configured to, by the 4th long connection, described information is transmitted to described second terminal, and the described 4th long connection was that set up between described dispatch server and the web browser of described second terminal long is connected;
Wherein, described information is the communication information, or described information is the control information of the web page display contents controlled in described web browser.
In sum, the information transmitting apparatus that the present embodiment provides, by the different terminals with identical connection code is defined as same information group, and at terminal and dispatch server and set up long connection between dispatch server with background server, realize the forwarding of information in information group by the connection of this length; Solve terminal to need instant messaging application program to be installed and to register corresponding instant messaging account number just can exchange, cause the problem that communication process is comparatively complicated; Reach user not need, in terminal, instant messaging application program is installed, also can be linked up with other users in the same information group with identical connection code on webpage by web browser, thus simplify communication process, improve the effect exchanging efficiency.
Fig. 7 is the block diagram of a kind of information transmitting apparatus according to another exemplary embodiment.This information transmitting apparatus can realize becoming the some or all of of dispatch server 160 in Fig. 1 by software, hardware or both combinations.This information transmitting apparatus can comprise:
First receiver module 701, is configured to receive first terminal by the first long information connecting transmission; Described first long connection was that set up between the web browser of described first terminal and described dispatch server long connects, and described information carries the connection code for identifying information group belonging to described first terminal;
First sending module 702, is configured to send described information by the second long background server connected to described connection code correspondence; Described second long connection was that the length corresponding with described first terminal set up between described dispatch server and described background server connects;
Second receiver module 703, is configured to by the 3rd long described information connecting the described background server of reception and send; Described 3rd long connection was that the length corresponding with described second terminal set up between described dispatch server and described background server connects; Described second terminal is at least one terminal in the information group corresponding with described connection code determined of described background server;
Forwarding module 704, is configured to, by the 4th long connection, described information is transmitted to described second terminal, and the described 4th long connection was that set up between described dispatch server and the web browser of described second terminal long is connected;
Wherein, described information is the communication information, or described information is the control information of the web page display contents controlled in described web browser.
Alternatively, described first terminal is master terminal, and described master terminal is first terminal obtaining described connection code; Described second terminal is all from terminal in described information group, and described is the terminal obtaining described connection code from described master terminal from terminal;
Or,
Described second terminal is master terminal, and described master terminal is first terminal obtaining described connection code; Described first terminal is all from terminal in described information group, and described is the terminal obtaining described connection code from described master terminal from terminal;
Or,
Described first terminal is that in described information group one is from terminal, described second terminal is master terminal in described information group and other is from terminal, described master terminal is first terminal obtaining described connection code, and described is the terminal obtaining described connection code from described master terminal from terminal.
Alternatively, this device, also comprises:
First distribution module 705, is configured to when described first terminal is described master terminal, sets up described first length be connected with the web browser of described first terminal; Request is obtained by the described first long connection code receiving the transmission of described first terminal that connects; Obtain request according to described connection code and distribute described connection code for described first terminal;
Second distribution module 706, is configured to when described second terminal is described master terminal, sets up described 4th length be connected with the web browser of described second terminal; Request is obtained by the 4th long connection code receiving described second terminal transmission that connects; Obtain request according to described connection code and connect code described in described second terminal distribution.
Alternatively, this device, also comprises:
First memory module 707, is configured to, when described first terminal is described master terminal, carry out computing by preset schedule algorithm to described connection code, and determines the described background server of described connection code correspondence according to operation result; Set up described second length with described background server to be connected, and long connecting the mark sending described connection code and described first terminal to described background server by described second, described background server is for the corresponding relation of the mark and described connection code of preserving described first terminal; The described first long corresponding relation be connected with described second length that connects is stored;
Second memory module 708, is configured to, when described second terminal is described master terminal, carry out computing by described preset schedule algorithm to described connection code, and determines the described background server of described connection code correspondence according to described operation result; Set up described 3rd length with described background server to be connected, and long connecting the mark sending described connection code and described second terminal to described background server by the described 3rd, described background server is for the corresponding relation of the mark and described connection code of preserving described second terminal; The described 3rd long corresponding relation be connected with described 4th length that connects is stored.
Alternatively, forwarding module 704, comprising:
Inquiry submodule 704a, is configured to the described four long connection corresponding according to described 3rd long Connection inquiring;
Forward submodule 704b, be configured to, by the described 4th long connection inquired, forward described information to described second terminal.
Alternatively, this device, also comprises:
First request sending module 709, be configured to when described first terminal be described from terminal time, set up described first with the web browser of described first terminal and long to be connected; By the described first long connection request connecting the described first terminal of reception and send, the mark carrying described first terminal in described connection request and the described connection code obtained from described master terminal; The described background server of described connection code correspondence is determined according to preset schedule algorithm; Connect with described second length that described background server sets up described first terminal corresponding; By the described second long connection, described connection request is sent to corresponding described background server, described background server is used for described first terminal to add in the described information group of described connection code correspondence;
Second request sending module 710, be configured to when described second terminal be described from terminal time, set up the described 4th with the web browser of described second terminal and long to be connected; By the described 4th long connection request connecting described second terminal of reception and send, the mark carrying described second terminal in described connection request and the described connection code obtained from described master terminal; The described background server of described connection code correspondence is determined according to preset schedule algorithm; Connect with described 3rd length that described background server sets up described second terminal corresponding; By the described 3rd long connection, described connection request is sent to corresponding described background server, described background server is used for described second terminal to add in the described information group of described connection code correspondence.
Alternatively, in control information, comprise Control Cooling and corresponding controling parameters, described Control Cooling comprise rendered object or control existing object change at least one;
Receive described second terminal of described control information for being resolved described control information by web browser, and according to resolving the described Control Cooling that obtains and described controling parameters performs corresponding operating on the webpage of the current display of described web browser.
In sum, the information transmitting apparatus that the present embodiment provides, by the different terminals with identical connection code is defined as same information group, and at terminal and dispatch server and set up long connection between dispatch server with background server, realize the forwarding of information in information group by the connection of this length; Solve terminal to need instant messaging application program to be installed and to register corresponding instant messaging account number just can exchange, cause the problem that communication process is comparatively complicated; Reach user not need, in terminal, instant messaging application program is installed, also can be linked up with other users in the same information group with identical connection code on webpage by web browser, thus simplify communication process, improve the effect exchanging efficiency.
In the present embodiment, user only needs to use terminal to obtain connection code can add corresponding information group, and received in information group by web browser or send information, compared to traditional installation instant communication client, and use instant messaging account number to exchange, greatly simplifie the process that user exchanges.
In the present embodiment, dispatch server by dispatching algorithm by each information group equilibrium assignment in multiple stage background server, avoid the problem that indivedual background server processing pressure is larger, thus realize the load balancing of background server.
Fig. 8 is the block diagram of a kind of information transmitting apparatus Gen Ju an exemplary embodiment again.This information transmitting apparatus can realize becoming the some or all of of background server 180 in Fig. 1 by software, hardware or both combinations.This information transmitting apparatus can comprise:
3rd receiver module 801, is configured to by the second long information connecting receiving scheduling server and send; Described information is that first terminal connects by first between web browser and described dispatch server is long the information sent, and carries the connection code for identifying information group belonging to described first terminal in described information; Described second long connection was that the length corresponding with described first terminal set up between described dispatch server and described background server connects;
Determination module 802, is configured at least one terminal in the described information group corresponding with described connection code to be defined as the second terminal;
Second sending module 803, is configured to send described information by the 3rd long connection to described dispatch server; Described 3rd long connection was that the length corresponding with described second terminal set up between described dispatch server and described background server connects; Described dispatch server is used for, by the 4th long connection, described information is transmitted to described second terminal, and the described 4th long connection was that set up between described dispatch server and the web browser of described second terminal long is connected;
Wherein, described information is the communication information, or described information is the control information of the web page display contents controlled in described web browser.
In sum, the information transmitting apparatus that the present embodiment provides, by the different terminals with identical connection code is defined as same information group, and at terminal and dispatch server and set up long connection between dispatch server with background server, realize the forwarding of information in information group by the connection of this length; Solve terminal to need instant messaging application program to be installed and to register corresponding instant messaging account number just can exchange, cause the problem that communication process is comparatively complicated; Reach user not need, in terminal, instant messaging application program is installed, also can be linked up with other users in the same information group with identical connection code on webpage by web browser, thus simplify communication process, improve the effect exchanging efficiency.
Fig. 9 is the block diagram of a kind of information transmitting apparatus according to another exemplary embodiment.This information transmitting apparatus can realize becoming the some or all of of background server 180 in Fig. 1 by software, hardware or both combinations.This information transmitting apparatus can comprise:
3rd receiver module 901, is configured to by the second long information connecting receiving scheduling server and send; Described information is that first terminal connects by first between web browser and described dispatch server is long the information sent, and carries the connection code for identifying information group belonging to described first terminal in described information; Described second long connection was that the length corresponding with described first terminal set up between described dispatch server and described background server connects;
Determination module 902, is configured at least one terminal in the described information group corresponding with described connection code to be defined as the second terminal;
Second sending module 903, is configured to send described information by the 3rd long connection to described dispatch server; Described 3rd long connection was that the length corresponding with described second terminal set up between described dispatch server and described background server connects; Described dispatch server is used for, by the 4th long connection, described information is transmitted to described second terminal, and the described 4th long connection was that set up between described dispatch server and the web browser of described second terminal long is connected;
Wherein, described information is the communication information, or described information is the control information of the web page display contents controlled in described web browser.
Alternatively, described first terminal is master terminal, and described master terminal is first terminal obtaining described connection code; Described second terminal is all from terminal in described information group, and described is the terminal obtaining described connection code from described master terminal from terminal;
Or,
Described second terminal is master terminal, and described master terminal is first terminal obtaining described connection code; Described first terminal is all from terminal in described information group, and described is the terminal obtaining described connection code from described master terminal from terminal;
Or,
Described first terminal is that in described information group one is from terminal, described second terminal is master terminal in described information group and other is from terminal, described master terminal is first terminal obtaining described connection code, and described is the terminal obtaining described connection code from described master terminal from terminal.
Alternatively, this device, also comprises:
First relation preserves module 904, is configured to when described first terminal is described master terminal, sets up described second length be connected with described dispatch server; Receive by the described second long connection the mark that described dispatch server sends described connection code and described first terminal, the mark of described connection code and described first terminal is described dispatch server is send after described first terminal distributes described connection code; Preserve the mark of described first terminal and the corresponding relation of described connection code;
Second relation preserves module 905, is configured to when described second terminal is described master terminal, sets up described 3rd length be connected with described dispatch server; Receive by the described 3rd long connection the mark that described dispatch server sends described connection code and described second terminal, the mark of described connection code and described first terminal is described dispatch server is send after described first terminal distributes described connection code; Preserve the mark of described second terminal and the corresponding relation of described connection code.
Alternatively, this device, also comprises:
First add module 906, be configured to when described first terminal be described from terminal time, with described dispatch server set up described second grow be connected; By the described second long connection request connecting the described dispatch server of reception and forward, described connection request is that described first terminal sends to described dispatch server, the mark carrying described first terminal in described connection request and the described connection code obtained from described master terminal by the described first long connection; Described first terminal is added in the described information group of described connection code correspondence;
Second add module 907, be configured to when described second terminal be described from terminal time, with described dispatch server set up described 3rd grow be connected; By the described 3rd long connection request connecting the described dispatch server of reception and forward, described connection request is that described second terminal sends to described dispatch server, the mark carrying described second terminal in described connection request and the described connection code obtained from described master terminal by the described 4th long connection; Described second terminal is added in the described information group of described connection code correspondence
Alternatively, in control information, comprise Control Cooling and corresponding controling parameters, described Control Cooling comprise rendered object or control existing object change at least one;
Receive described second terminal of described control information for being resolved described control information by web browser, and according to resolving the described Control Cooling that obtains and described controling parameters performs corresponding operating on the webpage of the current display of described web browser.
In sum, the information transmitting apparatus that the present embodiment provides, by the different terminals with identical connection code is defined as same information group, and at terminal and dispatch server and set up long connection between dispatch server with background server, realize the forwarding of information in information group by the connection of this length; Solve terminal to need instant messaging application program to be installed and to register corresponding instant messaging account number just can exchange, cause the problem that communication process is comparatively complicated; Reach user not need, in terminal, instant messaging application program is installed, also can be linked up with other users in the same information group with identical connection code on webpage by web browser, thus simplify communication process, improve the effect exchanging efficiency.
In the present embodiment, user only needs to use terminal to obtain connection code can add corresponding information group, and received in information group by web browser or send information, compared to traditional installation instant communication client, and use instant messaging account number to exchange, greatly simplifie the process that user exchanges.
In the present embodiment, dispatch server by dispatching algorithm by each information group equilibrium assignment in multiple stage background server, avoid the problem that indivedual background server processing pressure is larger, thus realize the load balancing of background server.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Figure 10 is the block diagram of a kind of information transmitting apparatus 1000 according to an exemplary embodiment.Device 1000 may be provided in a server.With reference to Figure 10, device 1000 comprises processing components 1022, and it comprises one or more processor further, and the memory resource representated by memory 1032, such as, for storing the instruction that can be performed by processing unit 1022, application program.The application program stored in memory 1032 can comprise each module corresponding to one group of instruction one or more.In addition, processing components 1022 is configured to perform instruction, to perform the method for sending information of above-mentioned dispatch server or background server survey.
Device 1000 can also comprise the power management that a power supply module 1026 is configured to final controlling element 1000, and a wired or wireless network interface 1050 is configured to device 1000 to be connected to network, and input and output (I/O) interface 1058.Device 1000 can operate the operating system based on being stored in memory 1032, such as WindowsServerTM, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art, at consideration specification and after putting into practice invention disclosed herein, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (26)

1. a method for sending information, is characterized in that, in dispatch server, described method comprises:
Receive first terminal by the first long information connecting transmission; Described first long connection was that set up between the web browser of described first terminal and described dispatch server long connects, and described information carries the connection code for identifying information group belonging to described first terminal;
Described information is sent by the second long background server connected to described connection code correspondence; Described second long connection was that the length corresponding with described first terminal set up between described dispatch server and described background server connects;
By the 3rd long described information connecting the described background server of reception and send; Described 3rd long connection was that the length corresponding with described second terminal set up between described dispatch server and described background server connects; Described second terminal is at least one terminal in the information group corresponding with described connection code determined of described background server;
By the 4th long connection, described information is transmitted to described second terminal, the described 4th long connection was that set up between described dispatch server and the web browser of described second terminal long is connected;
Wherein, described information is the communication information, or described information is the control information of the web page display contents controlled in described web browser.
2. method according to claim 1, is characterized in that,
Described first terminal is master terminal, and described master terminal is first terminal obtaining described connection code; Described second terminal is all from terminal in described information group, and described is the terminal obtaining described connection code from described master terminal from terminal;
Or,
Described second terminal is master terminal, and described master terminal is first terminal obtaining described connection code; Described first terminal is all from terminal in described information group, and described is the terminal obtaining described connection code from described master terminal from terminal;
Or,
Described first terminal is that in described information group one is from terminal, described second terminal is master terminal in described information group and other is from terminal, described master terminal is first terminal obtaining described connection code, and described is the terminal obtaining described connection code from described master terminal from terminal.
3. method according to claim 2, is characterized in that, described method, also comprises:
When described first terminal is described master terminal, sets up described first length with the web browser of described first terminal and be connected; Request is obtained by the described first long connection code receiving the transmission of described first terminal that connects; Obtain request according to described connection code and distribute described connection code for described first terminal;
When described second terminal is described master terminal, sets up described 4th length with the web browser of described second terminal and be connected; Request is obtained by the 4th long connection code receiving described second terminal transmission that connects; Obtain request according to described connection code and connect code described in described second terminal distribution.
4. method according to claim 3, is characterized in that, described method, also comprises:
When described first terminal is described master terminal, by preset schedule algorithm, computing is carried out to described connection code, and determine the described background server of described connection code correspondence according to operation result; Set up described second length with described background server to be connected, and long connecting the mark sending described connection code and described first terminal to described background server by described second, described background server is for the corresponding relation of the mark and described connection code of preserving described first terminal; The described first long corresponding relation be connected with described second length that connects is stored;
When described second terminal is described master terminal, by described preset schedule algorithm, computing is carried out to described connection code, and determine the described background server of described connection code correspondence according to described operation result; Set up described 3rd length with described background server to be connected, and long connecting the mark sending described connection code and described second terminal to described background server by the described 3rd, described background server is for the corresponding relation of the mark and described connection code of preserving described second terminal; The described 3rd long corresponding relation be connected with described 4th length that connects is stored.
5. method according to claim 4, is characterized in that, described information is transmitted to described second terminal by described connection by the 4th length, comprising:
The described four long connection corresponding according to described 3rd long Connection inquiring;
By the described 4th long connection inquired, forward described information to described second terminal.
6. method according to claim 2, is characterized in that, described method, also comprises:
When described first terminal be described from terminal time, set up described first with the web browser of described first terminal and long to be connected; By the described first long connection request connecting the described first terminal of reception and send, the mark carrying described first terminal in described connection request and the described connection code obtained from described master terminal; The described background server of described connection code correspondence is determined according to preset schedule algorithm; Connect with described second length that described background server sets up described first terminal corresponding; By the described second long connection, described connection request is sent to corresponding described background server, described background server is used for described first terminal to add in the described information group of described connection code correspondence;
When described second terminal be described from terminal time, set up the described 4th with the web browser of described second terminal and long to be connected; By the described 4th long connection request connecting described second terminal of reception and send, the mark carrying described second terminal in described connection request and the described connection code obtained from described master terminal; The described background server of described connection code correspondence is determined according to preset schedule algorithm; Connect with described 3rd length that described background server sets up described second terminal corresponding; By the described 3rd long connection, described connection request is sent to corresponding described background server, described background server is used for described second terminal to add in the described information group of described connection code correspondence.
7. according to the arbitrary described method of claim 1 to 6, it is characterized in that, in described control information, comprise Control Cooling and corresponding controling parameters, described Control Cooling comprise rendered object or control existing object change at least one;
Receive described second terminal of described control information for being resolved described control information by described web browser, and according to resolving the described Control Cooling that obtains and described controling parameters performs corresponding operating on the webpage of the current display of described web browser.
8. a method for sending information, is characterized in that, in background server, described method comprises:
By the second long information connecting receiving scheduling server and send; Described information is that first terminal connects by first between web browser and described dispatch server is long the information sent, and carries the connection code for identifying information group belonging to described first terminal in described information; Described second long connection was that the length corresponding with described first terminal set up between described dispatch server and described background server connects;
At least one terminal in the described information group corresponding with described connection code is defined as the second terminal;
Described information is sent to described dispatch server by the 3rd long connection; Described 3rd long connection was that the length corresponding with described second terminal set up between described dispatch server and described background server connects; Described dispatch server is used for, by the 4th long connection, described information is transmitted to described second terminal, and the described 4th long connection was that set up between described dispatch server and the web browser of described second terminal long is connected;
Wherein, described information is the communication information, or described information is the control information of the web page display contents controlled in described web browser.
9. method according to claim 8, is characterized in that,
Described first terminal is master terminal, and described master terminal is first terminal obtaining described connection code; Described second terminal is all from terminal in described information group, and described is the terminal obtaining described connection code from described master terminal from terminal;
Or,
Described second terminal is master terminal, and described master terminal is first terminal obtaining described connection code; Described first terminal is all from terminal in described information group, and described is the terminal obtaining described connection code from described master terminal from terminal;
Or,
Described first terminal is that in described information group one is from terminal, described second terminal is master terminal in described information group and other is from terminal, described master terminal is first terminal obtaining described connection code, and described is the terminal obtaining described connection code from described master terminal from terminal.
10. method according to claim 9, is characterized in that, described method, also comprises:
When described first terminal is described master terminal, sets up described second length with described dispatch server and be connected; Receive by the described second long connection the mark that described dispatch server sends described connection code and described first terminal, the mark of described connection code and described first terminal is described dispatch server is send after described first terminal distributes described connection code; Preserve the mark of described first terminal and the corresponding relation of described connection code;
When described second terminal is described master terminal, sets up described 3rd length with described dispatch server and be connected; Receive by the described 3rd long connection the mark that described dispatch server sends described connection code and described second terminal, the mark of described connection code and described first terminal is described dispatch server is send after described first terminal distributes described connection code; Preserve the mark of described second terminal and the corresponding relation of described connection code.
11. methods according to claim 9, is characterized in that, described method, also comprises:
When described first terminal be described from terminal time, set up described second with described dispatch server and long to be connected; By the described second long connection request connecting the described dispatch server of reception and forward, described connection request is that described first terminal sends to described dispatch server, the mark carrying described first terminal in described connection request and the described connection code obtained from described master terminal by the described first long connection; Described first terminal is added in the described information group of described connection code correspondence;
When described second terminal be described from terminal time, set up the described 3rd with described dispatch server and long to be connected; By the described 3rd long connection request connecting the described dispatch server of reception and forward, described connection request is that described second terminal sends to described dispatch server, the mark carrying described second terminal in described connection request and the described connection code obtained from described master terminal by the described 4th long connection; Described second terminal is added in the described information group of described connection code correspondence.
12. according to Claim 8 to 11 arbitrary described method, it is characterized in that, in described control information, comprise Control Cooling and corresponding controling parameters, described Control Cooling comprise rendered object or control existing object change at least one;
Receive described second terminal of described control information for being resolved described control information by described web browser, and according to resolving the described Control Cooling that obtains and described controling parameters performs corresponding operating on the webpage of the current display of described web browser.
13. 1 kinds of information transmitting apparatus, is characterized in that, described device comprises:
First receiver module, is configured to receive first terminal by the first long information connecting transmission; Described first long connection was that set up between the web browser of described first terminal and described dispatch server long connects, and described information carries the connection code for identifying information group belonging to described first terminal;
First sending module, is configured to send described information by the second long background server connected to described connection code correspondence; Described second long connection was that the length corresponding with described first terminal set up between described dispatch server and described background server connects;
Second receiver module, is configured to by the 3rd long described information connecting the described background server of reception and send; Described 3rd long connection was that the length corresponding with described second terminal set up between described dispatch server and described background server connects; Described second terminal is at least one terminal in the information group corresponding with described connection code determined of described background server;
Forwarding module, is configured to, by the 4th long connection, described information is transmitted to described second terminal, and the described 4th long connection was that set up between described dispatch server and the web browser of described second terminal long is connected;
Wherein, described information is the communication information, or described information is the control information of the web page display contents controlled in described web browser.
14. devices according to claim 13, is characterized in that,
Described first terminal is master terminal, and described master terminal is first terminal obtaining described connection code; Described second terminal is all from terminal in described information group, and described is the terminal obtaining described connection code from described master terminal from terminal;
Or,
Described second terminal is master terminal, and described master terminal is first terminal obtaining described connection code; Described first terminal is all from terminal in described information group, and described is the terminal obtaining described connection code from described master terminal from terminal;
Or,
Described first terminal is that in described information group one is from terminal, described second terminal is master terminal in described information group and other is from terminal, described master terminal is first terminal obtaining described connection code, and described is the terminal obtaining described connection code from described master terminal from terminal.
15. devices according to claim 14, is characterized in that, described device, also comprises:
First distribution module, is configured to when described first terminal is described master terminal, sets up described first length be connected with the web browser of described first terminal; Request is obtained by the described first long connection code receiving the transmission of described first terminal that connects; Obtain request according to described connection code and distribute described connection code for described first terminal;
Second distribution module, is configured to when described second terminal is described master terminal, sets up described 4th length be connected with the web browser of described second terminal; Request is obtained by the 4th long connection code receiving described second terminal transmission that connects; Obtain request according to described connection code and connect code described in described second terminal distribution.
16. devices according to claim 15, is characterized in that, described device, also comprises:
First memory module, is configured to, when described first terminal is described master terminal, carry out computing by preset schedule algorithm to described connection code, and determines the described background server of described connection code correspondence according to operation result; Set up described second length with described background server to be connected, and long connecting the mark sending described connection code and described first terminal to described background server by described second, described background server is for the corresponding relation of the mark and described connection code of preserving described first terminal; The described first long corresponding relation be connected with described second length that connects is stored;
Second memory module, is configured to, when described second terminal is described master terminal, carry out computing by described preset schedule algorithm to described connection code, and determines the described background server of described connection code correspondence according to described operation result; Set up described 3rd length with described background server to be connected, and long connecting the mark sending described connection code and described second terminal to described background server by the described 3rd, described background server is for the corresponding relation of the mark and described connection code of preserving described second terminal; The described 3rd long corresponding relation be connected with described 4th length that connects is stored.
17. devices according to claim 16, is characterized in that, described forwarding module, comprising:
Inquiry submodule, is configured to the described four long connection corresponding according to described 3rd long Connection inquiring;
Forward submodule, be configured to, by the described 4th long connection inquired, forward described information to described second terminal.
18. devices according to claim 14, is characterized in that, described device, also comprises:
First request sending module, be configured to when described first terminal be described from terminal time, set up described first with the web browser of described first terminal and long to be connected; By the described first long connection request connecting the described first terminal of reception and send, the mark carrying described first terminal in described connection request and the described connection code obtained from described master terminal; The described background server of described connection code correspondence is determined according to preset schedule algorithm; Connect with described second length that described background server sets up described first terminal corresponding; By the described second long connection, described connection request is sent to corresponding described background server, described background server is used for described first terminal to add in the described information group of described connection code correspondence;
Second request sending module, be configured to when described second terminal be described from terminal time, set up the described 4th with the web browser of described second terminal and long to be connected; By the described 4th long connection request connecting described second terminal of reception and send, the mark carrying described second terminal in described connection request and the described connection code obtained from described master terminal; The described background server of described connection code correspondence is determined according to preset schedule algorithm; Connect with described 3rd length that described background server sets up described second terminal corresponding; By the described 3rd long connection, described connection request is sent to corresponding described background server, described background server is used for described second terminal to add in the described information group of described connection code correspondence.
19., according to claim 13 to 18 arbitrary described devices, is characterized in that, comprise Control Cooling and corresponding controling parameters in described control information, described Control Cooling comprise rendered object or control existing object change at least one;
Receive described second terminal of described control information for being resolved described control information by described web browser, and according to resolving the described Control Cooling that obtains and described controling parameters performs corresponding operating on the webpage of the current display of described web browser.
20. 1 kinds of information transmitting apparatus, is characterized in that, described device comprises:
3rd receiver module, is configured to by the second long information connecting receiving scheduling server and send; Described information is that first terminal connects by first between web browser and described dispatch server is long the information sent, and carries the connection code for identifying information group belonging to described first terminal in described information; Described second long connection was that the length corresponding with described first terminal set up between described dispatch server and described background server connects;
Determination module, is configured at least one terminal in the described information group corresponding with described connection code to be defined as the second terminal;
Second sending module, is configured to send described information by the 3rd long connection to described dispatch server; Described 3rd long connection was that the length corresponding with described second terminal set up between described dispatch server and described background server connects; Described dispatch server is used for, by the 4th long connection, described information is transmitted to described second terminal, and the described 4th long connection was that set up between described dispatch server and the web browser of described second terminal long is connected;
Wherein, described information is the communication information, or described information is the control information of the web page display contents controlled in described web browser.
21. devices according to claim 20, is characterized in that,
Described first terminal is master terminal, and described master terminal is first terminal obtaining described connection code; Described second terminal is all from terminal in described information group, and described is the terminal obtaining described connection code from described master terminal from terminal;
Or,
Described second terminal is master terminal, and described master terminal is first terminal obtaining described connection code; Described first terminal is all from terminal in described information group, and described is the terminal obtaining described connection code from described master terminal from terminal;
Or,
Described first terminal is that in described information group one is from terminal, described second terminal is master terminal in described information group and other is from terminal, described master terminal is first terminal obtaining described connection code, and described is the terminal obtaining described connection code from described master terminal from terminal.
22. devices according to claim 21, is characterized in that, described device, also comprises:
First relation preserves module, is configured to when described first terminal is described master terminal, sets up described second length be connected with described dispatch server; Receive by the described second long connection the mark that described dispatch server sends described connection code and described first terminal, the mark of described connection code and described first terminal is described dispatch server is send after described first terminal distributes described connection code; Preserve the mark of described first terminal and the corresponding relation of described connection code;
Second relation preserves module, is configured to when described second terminal is described master terminal, sets up described 3rd length be connected with described dispatch server; Receive by the described 3rd long connection the mark that described dispatch server sends described connection code and described second terminal, the mark of described connection code and described first terminal is described dispatch server is send after described first terminal distributes described connection code; Preserve the mark of described second terminal and the corresponding relation of described connection code.
23. devices according to claim 21, is characterized in that, described device, also comprises:
First add module, be configured to when described first terminal be described from terminal time, with described dispatch server set up described second grow be connected; By the described second long connection request connecting the described dispatch server of reception and forward, described connection request is that described first terminal sends to described dispatch server, the mark carrying described first terminal in described connection request and the described connection code obtained from described master terminal by the described first long connection; Described first terminal is added in the described information group of described connection code correspondence;
Second add module, be configured to when described second terminal be described from terminal time, with described dispatch server set up described 3rd grow be connected; By the described 3rd long connection request connecting the described dispatch server of reception and forward, described connection request is that described second terminal sends to described dispatch server, the mark carrying described second terminal in described connection request and the described connection code obtained from described master terminal by the described 4th long connection; Described second terminal is added in the described information group of described connection code correspondence.
24., according to the arbitrary described device of claim 20 to 23, is characterized in that, comprise Control Cooling and corresponding controling parameters in described control information, described Control Cooling comprise rendered object or control existing object change at least one;
Receive described second terminal of described control information for being resolved described control information by described web browser, and according to resolving the described Control Cooling that obtains and described controling parameters performs corresponding operating on the webpage of the current display of described web browser.
25. 1 kinds of information transmitting apparatus, is characterized in that, described device comprises:
Processor;
For storing the memory of the executable instruction of described processor;
Wherein, described processor is configured to:
Receive first terminal by the first long information connecting transmission; Described first long connection was that set up between the web browser of described first terminal and described dispatch server long connects, and described information carries the connection code for identifying information group belonging to described first terminal;
Described information is sent by the second long background server connected to described connection code correspondence; Described second long connection was that the length corresponding with described first terminal set up between described dispatch server and described background server connects;
By the 3rd long described information connecting the described background server of reception and send; Described 3rd long connection was that the length corresponding with described second terminal set up between described dispatch server and described background server connects; Described second terminal is at least one terminal in the information group corresponding with described connection code determined of described background server;
By the 4th long connection, described information is transmitted to described second terminal, the described 4th long connection was that set up between described dispatch server and the web browser of described second terminal long is connected;
Wherein, described information is the communication information, or described information is the control information of the web page display contents controlled in described web browser.
26. 1 kinds of information transmitting apparatus, is characterized in that, described device comprises:
Processor;
For storing the memory of the executable instruction of described processor;
Wherein, described processor is configured to:
By the second long information connecting receiving scheduling server and send; Described information is that first terminal connects by first between web browser and described dispatch server is long the information sent, and carries the connection code for identifying information group belonging to described first terminal in described information; Described second long connection was that the length corresponding with described first terminal set up between described dispatch server and described background server connects;
At least one terminal in the described information group corresponding with described connection code is defined as the second terminal;
Described information is sent to described dispatch server by the 3rd long connection; Described 3rd long connection was that the length corresponding with described second terminal set up between described dispatch server and described background server connects; Described dispatch server is used for, by the 4th long connection, described information is transmitted to described second terminal, and the described 4th long connection was that set up between described dispatch server and the web browser of described second terminal long is connected;
Wherein, described information is the communication information, or described information is the control information of the web page display contents controlled in described web browser.
CN201510409554.1A 2015-07-13 2015-07-13 Method for sending information and device Active CN105099885B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510409554.1A CN105099885B (en) 2015-07-13 2015-07-13 Method for sending information and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510409554.1A CN105099885B (en) 2015-07-13 2015-07-13 Method for sending information and device

Publications (2)

Publication Number Publication Date
CN105099885A true CN105099885A (en) 2015-11-25
CN105099885B CN105099885B (en) 2018-06-12

Family

ID=54579484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510409554.1A Active CN105099885B (en) 2015-07-13 2015-07-13 Method for sending information and device

Country Status (1)

Country Link
CN (1) CN105099885B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209966A (en) * 2016-06-15 2016-12-07 中国科学院信息工程研究所 Management and control end updates the method for equipment state, the treating method and apparatus of service end
CN108170285A (en) * 2018-03-01 2018-06-15 贵州小爱机器人科技有限公司 The interaction control method and device of a kind of electronic equipment
CN110781435A (en) * 2019-10-25 2020-02-11 北京华云智联科技有限公司 Method for one-to-one connection of browser and hardware equipment
CN111131369A (en) * 2018-11-01 2020-05-08 百度在线网络技术(北京)有限公司 APP use condition transmission method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045270A (en) * 2010-11-30 2011-05-04 北京迅捷英翔网络科技有限公司 Chat server system, method for constructing chat server system and chat system
CN103001860A (en) * 2012-12-20 2013-03-27 北京思特奇信息技术股份有限公司 Achieving system for converged communication Web instant messages
CN103634382A (en) * 2013-11-20 2014-03-12 安徽科大讯飞信息科技股份有限公司 System and method for realizing real-time interaction in webpage
CN104486397A (en) * 2014-12-10 2015-04-01 北京奇虎科技有限公司 Method for carrying out data transmission in browser, client and mobile terminal
CN104486327A (en) * 2014-12-10 2015-04-01 北京奇虎科技有限公司 Method and client side of communication between pages and long connection servers
CN104660655A (en) * 2013-11-25 2015-05-27 腾讯科技(上海)有限公司 Method, device and system for controlling terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045270A (en) * 2010-11-30 2011-05-04 北京迅捷英翔网络科技有限公司 Chat server system, method for constructing chat server system and chat system
CN103001860A (en) * 2012-12-20 2013-03-27 北京思特奇信息技术股份有限公司 Achieving system for converged communication Web instant messages
CN103634382A (en) * 2013-11-20 2014-03-12 安徽科大讯飞信息科技股份有限公司 System and method for realizing real-time interaction in webpage
CN104660655A (en) * 2013-11-25 2015-05-27 腾讯科技(上海)有限公司 Method, device and system for controlling terminal
CN104486397A (en) * 2014-12-10 2015-04-01 北京奇虎科技有限公司 Method for carrying out data transmission in browser, client and mobile terminal
CN104486327A (en) * 2014-12-10 2015-04-01 北京奇虎科技有限公司 Method and client side of communication between pages and long connection servers

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209966A (en) * 2016-06-15 2016-12-07 中国科学院信息工程研究所 Management and control end updates the method for equipment state, the treating method and apparatus of service end
CN108170285A (en) * 2018-03-01 2018-06-15 贵州小爱机器人科技有限公司 The interaction control method and device of a kind of electronic equipment
CN111131369A (en) * 2018-11-01 2020-05-08 百度在线网络技术(北京)有限公司 APP use condition transmission method and device, electronic equipment and storage medium
CN111131369B (en) * 2018-11-01 2022-09-27 百度在线网络技术(北京)有限公司 APP use condition transmission method and device, electronic equipment and storage medium
CN110781435A (en) * 2019-10-25 2020-02-11 北京华云智联科技有限公司 Method for one-to-one connection of browser and hardware equipment

Also Published As

Publication number Publication date
CN105099885B (en) 2018-06-12

Similar Documents

Publication Publication Date Title
CN103581299B (en) Service scheduling method, apparatus and system
CN103973461A (en) Notification message pushing method and message server
CN103812882A (en) Method and system for transferring files
CN105099885A (en) Information transmitting method and device
CN109729115B (en) Method, device, proxy server and terminal equipment for realizing distributed computation
CN102625287A (en) Method for downloading mobile phone application software
CN102196591A (en) Mobile terminal and data parallel transmission method thereof
CN105185085A (en) Data communication system, method and device
RU2008138577A (en) NETWORK SYSTEM
CN104243266A (en) Method and device for network access
CN105187480A (en) Configuration file acquisition method, configuration file acquisition device and configuration file acquisition system
CN106131788A (en) A kind of obtain the method for positional information, relevant device and trunked communication system
CN102130853A (en) Group message interaction realization method and system
CN104243610A (en) Distributed file transmission service method
CN105357329B (en) The transmission method, apparatus and system of business datum under across IDC network environment
CN105812079A (en) Emergency broadcast state reporting method, device, emergency broadcast state receiving method and device
CN102572012A (en) Message processing method, switchboard and system
CN101938383B (en) On-line monitoring method and system of user account with multiple services as well as monitoring service system
CN105450775A (en) Load balancing method and load balancing device for DNS
CN105681266A (en) Communication cluster method and device for MMTel (MultiMedia Telephony)
CN104158877A (en) Remote control method, and device and system
CN103023668B (en) A kind of find and control method, the Apparatus and system of embedded log equipment
CN105657077A (en) Network address translation traversal method and network address translation equipment
CN103974224A (en) Credit control method and equipment
EP3015990B1 (en) Information processing device, and destination information updating method and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant