CN102594732B - Method and system for multiwindow chatting - Google Patents
Method and system for multiwindow chatting Download PDFInfo
- Publication number
- CN102594732B CN102594732B CN201210036149.6A CN201210036149A CN102594732B CN 102594732 B CN102594732 B CN 102594732B CN 201210036149 A CN201210036149 A CN 201210036149A CN 102594732 B CN102594732 B CN 102594732B
- Authority
- CN
- China
- Prior art keywords
- connection
- server
- sleep
- liveness
- client
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 230000004913 activation Effects 0.000 claims abstract description 25
- 230000003213 activating effect Effects 0.000 claims description 7
- 230000005540 biological transmission Effects 0.000 claims description 2
- 230000004622 sleep time Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 239000002699 waste material Substances 0.000 description 2
- 238000000205 computational method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 208000019116 sleep disease Diseases 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
- H04L51/046—Interoperability with other network applications or services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
- H04L12/1813—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
- H04L12/1822—Conducting the conference, e.g. admission, detection, selection or grouping of participants, correlating users to one or more conference sessions, prioritising transmission
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a method and system for multiwindow chatting. The method comprises the following steps: a server establishes at least one connection corresponding to user windows with a client side; the server establishes a new connection with the client side, or after the client side is switched from the former connection to target connection, a controller calculates the activity of the former connection, determines the state of the former connection according to the activity and notices the state of the former connection to the server, and the server sets the state of the former connection according to the notice of the controller; and if the server receives an activation request of a sleep connection sent from the client side in the sleep time of any sleep connection, the server activates the sleep connection, the controller calculates the activity of the new connection or the target connection, determines the state of the former connection according to the activity and notices the state of the new connection or the target connection to the server, and the server sets the state of the new connection or the target connection according to the notice of the controller.
Description
Technical field
The invention belongs to instant messaging field, particularly relate to a kind of method and system of multi-window chat.
Background technology
Along with the continuous progress of Network Society, increasing network communication tool is applied in work and life, such as Fetion, MSN, QQ etc.In various communications applications instrument, because the instant messaging of webpage version does not need mounting software, easy to use, receive the favor of people.In the daily use of webpage version instant messaging, when realizing the chat of multiple browser window, there is certain limitation.In the prior art, the communication of part webpage version does not support that many browser windows are chatted, and such as after window 1 has logged in account, then logs in same account at window 2, and the account of window 1 can be forced to roll off the production line.Or the instant messaging of webpage version supports that many browser windows are chatted, but each window and server establish one is connected, and cause the waste of server resource.Under the prerequisite of making rational use of resources, chat under how realizing many browser windows, improve the convenient degree that user uses, become the problem needing to solve.
Summary of the invention
The invention provides a kind of method and system of multi-window chat to solve the problem.
The invention provides a kind of method of multi-window chat, comprise the following steps.Server sets up the connection corresponding with at least one between client and user window.Described server is set up and is newly connected with one of described client, or described client by last connection be switched to target connect after, controller calculates the liveness of last connection and determines the state of last connection according to described liveness, and by the status notification server of described last connection, described server is according to the state of the described last connection of notice setting of described controller.If described server receives the activation request of the described sleep connection that described client sends within the length of one's sleep that arbitrary sleep connects, described server activates described sleep and connects, described controller calculates the liveness of described new connection or target connection and determines according to described liveness the state that described new connection or target connect, and by the status notification server that described new connection or target connect, the state that described server connects according to the notice described new connection of setting or the target of described controller.
The present invention also provides a kind of method of multi-window chat, comprises the following steps.Server sets up the connection corresponding with at least one between client and user window.Described server is set up and is newly connected with one of described client, or described client by last connection be switched to target connect after, controller calculates the liveness of last connection and sends to server, and described server is according to the state of the described last connection of described liveness setting.If described server receives the activation request of the described sleep connection that described client sends within the length of one's sleep that arbitrary sleep connects, described server activates described sleep and connects, described controller calculates the liveness of described new connection or target connection and sends to server, the state that described server connects according to the described liveness described new connection of setting or target.
The invention provides a kind of system of multi-window chat, comprise client, controller and server, described client is connected with described server by described controller, and described client is directly connected with described server.Described server comprises receiver and processor, and described receiver connects described processor.Described receiver, for setting up the corresponding connection of at least one and user window between client.Described processor, if the activation request for receiving the described connection of sleeping that described client sends within the length of one's sleep of arbitrary sleep connection, activating described sleep and connecting, also for setting the state of new connection or target connection according to the notice of described controller.Described controller, after setting up be connected with described client new for described server, or described client by last connection be switched to target connect after, calculate the liveness of last connection and determine the state of described last connection according to described liveness, and by described status notification server, after also activating described sleep connection for described server, calculate the liveness of new connection or target connection and determine according to described liveness the state that described new connection or target connect, and server described in the state notifying that described new connection or target are connected.
The present invention also provides a kind of system of multi-window chat, comprises client, controller and server, and described client is connected with described server by described controller, and described client is directly connected with described server.Described server comprises receiver and processor, and described receiver connects described processor.Described receiver, for setting up the corresponding connection of at least one and user window between client.Described processor, if the activation request that the described sleep sent for receiving described client within the length of one's sleep of arbitrary sleep connection connects, activate described sleep to connect, the liveness also for sending according to described controller sets the state of described new connection or target connection.Described controller, after setting up be connected with described client new for described server, or described client by last connection be switched to target connect after, calculate the liveness of last connection and send to server, after also activating described sleep connection for described server, the liveness that the new connection of calculating or target connect also sends to described server.
Compared to prior art, according to the method and system of multi-window chat provided by the invention, set up one again after at least one is connected newly connect when client and server are set up, or client from last connection be switched to target connect time, controller calculates the liveness of last connection and determines the state of last connection, and by the status notification server of described last connection, or controller calculates the liveness of last connection and sends to server, server sets the state of last connection according to liveness.And, activate described sleep in the length of one's sleep that can connect in sleep and connect, calculate liveness that described new connection or target connect and set the state of described new connection or target connection.To achieve under multiwindow while chat feature, reduce the resource utilization of server.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Figure 1 shows that the flow chart of the method for the multi-window chat that the first preferred embodiment according to the present invention provides;
Figure 2 shows that the flow chart of the method for the multi-window chat that the second preferred embodiment according to the present invention provides;
Figure 3 shows that the schematic diagram of the system of the multi-window chat that the 3rd preferred embodiment according to the present invention provides;
Figure 4 shows that the schematic diagram of the system of the multi-window chat that the 4th preferred embodiment according to the present invention provides.
Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
Figure 1 shows that the flow chart of the method for the multi-window chat that the first preferred embodiment according to the present invention provides, as shown in Figure 1.The method of the multi-window chat that the first preferred embodiment of the present invention provides comprises step 101 ~ 103.
Step 101: server sets up the connection corresponding with at least one between client and user window.
Specifically, user is after client opens first browser window login, user end to server initiates connection request, the state that described server revises described user be online after obtain the online friend information of described user, and set up corresponding with first browser window of described client first and connect.Such as, user opens the page www.ppmeet.com of video conferencing system and logs in first, after the success of server authentication user name password, amendment User Status is online and obtains the online friend information of described user, and server is successfully set up and is connected with first of client.In this, server returns the online friend information of user to first browser window of described client, and sends user to the online good friend of described user and to reach the standard grade notice.Similarly, server can receive second connection request of described client and set up second connection, or foundation is connected with the multiple of client.
Step 102: described server is set up and is newly connected with one of described client, or described client by last connection be switched to target connect after, controller calculates the liveness of last connection and determines the state of last connection according to described liveness, and by the status notification server of described last connection, described server is according to the state of the described last connection of notice setting of described controller.
Specifically, according to step 101, when server and client keep first be connected and again set up newly connect time, now there are two or more and be connected in server and client, then after server sets up described new connection, controller calculates the liveness of nearest last connection and determines the state of described last connection according to described liveness, and by described status notification server, server is according to the state of the described last connection of notice setting of controller.Wherein, after server is set up and is connected with client described new, client obtains the online friend information of described user from browser rs cache.
In addition, if client server set up multiple be connected between switch, namely, when client is switched to target connection from last connection, controller calculates the liveness of last connection and determines its state according to the liveness of last connection, and by the status notification server of last connection, server sets the state of last connection according to the notice of controller.Wherein, after Server switching to target connects, client obtains the online friend information of described user from browser rs cache.Described liveness is determined by the message number of described connection in the connection duration connected, described connection duration and data traffic.In addition, the table of comparisons prestored in controller liveness and the length of one's sleep, described controller determines to connect whether reach sleep request, if described connection does not reach sleep request, controller announcement server disconnects described connection according to the described table of comparisons.The table of comparisons of described liveness and the length of one's sleep is such as shown in following table.
Liveness | The length of one's sleep |
Liveness > 0.5 | 1800 seconds |
0.3 < liveness <=0.5 | 1200 seconds |
0.15 < liveness <=0.3 | 600 seconds |
0.01 < liveness <=0.15 | 300 seconds |
Liveness <=0.01 | Do not sleep, directly disconnect |
Wherein, described liveness has different account forms according to connection duration.That is, when connection duration is less than 1800 seconds, liveness=(connecting the data traffic * 10 in the message count+connection duration in duration)/connect duration; Connect duration when being more than or equal to 1800 seconds, liveness=(in 1800 seconds message count+1800 seconds in data traffic * 10)/1800.In the present embodiment, message count and data traffic in 1800 seconds in described 1800 seconds are the message count in before moment of starting to calculate liveness 1800 seconds and data traffic.In other embodiments, message count and data traffic in 1800 seconds in described 1800 seconds, also can for message count mean value and the data traffic mean value connecting in duration every 1800 seconds.The obtaining value method of described message count and data traffic, can be arranged according to practical application, is not construed as limiting this present invention.
Such as, user opens first browser window at 10 and logs in chat system, opens second browser window at 11.The data traffic that the message that wherein between 10 o'clock 30 minutes to 11 o'clock, user sends and receives adds up to 500, the uninterrupted of described message is 0.5M, Video chat produces is 50M.First connection duration connected is 3600 seconds, then first liveness connected calculates according to the method connected when duration is more than or equal to 1800 seconds, 1800 seconds in computational methods, namely within 10: 30, to 11 points, described liveness is: (500+ (50+0.5) * 10)/1800=0.56.Shown in upper table, first connect liveness be greater than 0.5, then controller determine first connect the length of one's sleep be after 1800 seconds, by first connect status notification server, the length of one's sleep that server connects according to described notice setting first.
Step 103: if described server receives the activation request of the described sleep connection that described client sends within the length of one's sleep that arbitrary sleep connects, described server activates described sleep and connects, described controller calculates the liveness of described new connection or target connection and determines according to described liveness the state that described new connection or target connect, and by the status notification server that described new connection or target connect, the state that described server connects according to the notice described new connection of setting or the target of described controller.
Specifically, if server does not receive the activation request of the described sleep connection that client sends within the length of one's sleep of sleep connection, then server disconnects described sleep connection.If send the activation request of this sleep connection after client exceedes the length of one's sleep of described sleep connection to described server, described server re-establishes after receiving described activation request and is connected with the new of described client.
According to the example of step 102, server first connection is set to sleep and the length of one's sleep is 1800 seconds, if server received first activation request connected that client sends in 1800 seconds, server activates first connection, controller calculates second liveness connected and determines its state and announcement server according to second liveness connected, and server is according to described second state connected of described notice setting.If start the 1809th second after sleeping first connection, user end to server sends first activation request connected, now, server has disconnected first connection, server needs to set up and is connected with the new of client, i.e. the 3rd connection, and controller calculates second liveness connected and determines its state according to second liveness connected, similarly, server sets second state connected according to the notice of controller.As mentioned above, when there is multiple connection between client with server, server only makes the window of the current activation of client there is normal connection simultaneously, and all the other connections corresponding to nonactivated window are sleep or off-state.
Figure 2 shows that the flow chart of the method for the multi-window chat that the second preferred embodiment according to the present invention provides, as shown in Figure 2.The method of the multi-window chat that the second preferred embodiment of the present invention provides comprises step 201 ~ 203.
Step 201: server sets up the connection corresponding with at least one between client and user window.
Step 202: described server is set up and is newly connected with one of described client, or described client by last connection be switched to target connect after, controller calculates the liveness of last connection and sends to server, and described server is according to the state of the described last connection of described liveness setting.
Wherein, the table of comparisons that server prestores liveness and the length of one's sleep, the liveness that described server sends according to controller and the state that the setting of the described table of comparisons connects.Account form and the table of comparisons content of liveness described in the present embodiment are identical with described in step 102, therefore repeat no more in this.
Step 203: if described server receives the activation request of the described sleep connection that described client sends within the length of one's sleep that arbitrary sleep connects, described server activates described sleep and connects, described controller calculates the liveness of described new connection or target connection and sends to server, the state that described server connects according to the described liveness described new connection of setting or target.
According to step 202, the state that described server connects according to the liveness connected and table of comparisons setting, wherein, be sent to server after the liveness of described connection is calculated by controller, server is according to the table of comparisons determination connection status prestored.The switching of described connection and activation identical with described in step 103, therefore to repeat no more in this.
Figure 3 shows that the schematic diagram of the system of the multi-window chat that the 3rd preferred embodiment according to the present invention provides, as shown in Figure 3.The system of the multi-window chat that the 3rd preferred embodiment of the present invention provides comprises client 1, controller 2 and server 3, and described client 1 is connected with described server 3 by described controller 2, and described client 1 is directly connected with described server 3.Described server 3 comprises receiver 31 and processor 32, and described receiver 31 connects described processor 32.Described receiver 31, for setting up the corresponding connection of at least one and user window between client 1.Described processor 32, if the activation request that the described sleep sent for receiving described client 1 within the length of one's sleep of arbitrary sleep connection connects, activate described sleep to connect, the state also for connecting according to the new connection of notice setting or the target of described controller 2.Described controller 2, after setting up be connected with described client 1 new for described server 3, or described client 1 by last connection be switched to target connect after, calculate the liveness of last connection and determine the state of described last connection according to described liveness, and by described status notification server 3, after also activating described sleep connection for described server 3, calculate the liveness of new connection or target connection and determine according to described liveness the state that described new connection or target connect, and server 3 described in the state notifying that described new connection or target are connected.Wherein, the table of comparisons 21 that controller 2 prestores liveness and the length of one's sleep, described controller 2 determines connection status according to the described table of comparisons 21 and by described status notification server 3, server 3 is according to described notice setting connection status.The present embodiment provide the liveness account form of system and the setting means of connection status identical with the mode of the first embodiment supplying method, therefore to repeat no more in this.
Figure 4 shows that the schematic diagram of the system of the multi-window chat that the 4th preferred embodiment according to the present invention provides, as shown in Figure 4.The system of the multi-window chat that the 4th preferred embodiment of the present invention provides comprises client 4, controller 5 and server 6, and described client 4 is connected with described server 6 by described controller 5, and described client 4 is directly connected with described server 6.Described server 6 comprises receiver 61 and processor 62, and described receiver 61 connects described processor 62.Described receiver 61, for setting up the corresponding connection of at least one and user window between client 4.Described processor 62, if the activation request that the described sleep sent for receiving described client 4 within the length of one's sleep of arbitrary sleep connection connects, activate described sleep to connect, the liveness also for sending according to described controller 5 sets the state of described new connection or target connection.Described controller 5, after setting up be connected with described client 4 new for described server 6, or described client 4 by last connection be switched to target connect after, calculate the liveness of last connection and send to server 6, after also activating described sleep connection for described server 6, the liveness calculating new connection or target connection also sends to described server 6.Wherein, the table of comparisons 63 that server 6 prestores liveness and the length of one's sleep, after described receiver 61 receives the liveness of described controller 5 transmission, described processor 62 determines the state of described connection according to the described table of comparisons 63, if described connection does not reach described sleep request, described processor 62 disconnects described connection.The present embodiment provide the liveness account form of system and the setting means of connection status identical with the mode of the second embodiment supplying method, therefore to repeat no more in this.
In sum, according to the method and system of the multi-window chat that present pre-ferred embodiments provides, when server set up to be connected with client new or client from last connection be switched to target connect time, controller calculates the liveness of last connection and determines its state and announcement server, and server is according to the state of the described last connection of notice setting; Or controller calculates the liveness of last connection and sends to server, server sets the state of last connection according to liveness.In addition, if server receives the activation request of this sleep connection that client sends within the length of one's sleep that any one sleep connects, activate this sleep and connect.If server does not receive the activation request of client within the described length of one's sleep, disconnect this sleep and connect; When after the length of one's sleep exceeding described sleep connection, client initiates the request of connection establishment again to server, server sets up new connection.Controller calculates the liveness of last connection and determines its state, and by described status notification server, server is according to the state of the last connection of described notice setting; Or controller calculates the liveness of last connection and sends to server, server sets the state of last connection according to liveness.So maintain only theactivewindow and there is normal connection, achieve multi-window chat function, effectively prevent the waste of server resource.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (9)
1. a method for multi-window chat, is characterized in that, comprises the following steps:
Server sets up the connection corresponding with at least one between client and user window;
Described server is set up and is newly connected with one of described client, or described client by last connection be switched to target connect after, controller calculates the liveness of last connection and determines the state of last connection according to described liveness, and by the status notification server of described last connection, described server is according to the state of the described last connection of notice setting of described controller; Wherein, the state of described last connection is for sleep or disconnect, and arranges the length of one's sleep of described last connection;
If described server receives the activation request of the described sleep connection that described client sends within the length of one's sleep that arbitrary sleep connects, described server activates described sleep and connects, described controller calculates the liveness of described new connection or target connection and determines according to described liveness the state that described new connection or target connect, and by the status notification server that described new connection or target connect, the state that described server connects according to the notice described new connection of setting or the target of described controller;
Described liveness is determined by the message number of described connection in the connection duration connected, described connection duration and data traffic;
If when connection duration is less than 1800 seconds, liveness=(connecting the data traffic * 10 in the message count+connection duration in duration)/connect duration; When connection duration is more than or equal to 1800 seconds, liveness=(in 1800 seconds message count+1800 seconds in data traffic * 10)/1800, message count and data traffic in 1800 seconds in described 1800 seconds are the message count in before moment of starting to calculate liveness 1800 seconds and data traffic.
2. method according to claim 1, it is characterized in that, the table of comparisons that described controller prestores liveness and the length of one's sleep, described controller determines according to the described table of comparisons state that described sleep connects, if described sleep connects do not reach described sleep request, described controller notifies that described server disconnects described sleep and connects.
3. method according to claim 1, it is characterized in that, first connection request setting up that described server receives described client is connected with first of described client, receive described client second connection request and set up second connect after, described controller calculates described first liveness connected and determines described first state connected according to described liveness, and by server described in described first state notifying connected, described server is according to described first state connected of the notice setting of described controller.
4. method according to claim 3, it is characterized in that, if first connection is set to sleep state by described server, and described server does not receive described first activation request connected that client sends within described first length of one's sleep connected, described server disconnects described first connection.
5. method according to claim 3, it is characterized in that, if first connection is set to sleep state by described server, send described first activation request connected to described server after described client exceedes described first length of one's sleep connected, described server re-establishes after receiving described activation request and is connected with the new of described client.
6. a method for multi-window chat, is characterized in that, comprises the following steps:
Server sets up the connection corresponding with at least one between client and user window;
Described server is set up and is newly connected with one of described client, or described client by last connection be switched to target connect after, controller calculates the liveness of last connection and sends to server, and described server is according to the state of the described last connection of described liveness setting; Wherein, the state of described last connection is for sleep or disconnect, and arranges the length of one's sleep of described last connection;
If described server receives the activation request of the described sleep connection that described client sends within the length of one's sleep that arbitrary sleep connects, described server activates described sleep and connects, described controller calculates the liveness of described new connection or target connection and sends to server, the state that described server connects according to the described liveness described new connection of setting or target;
Described liveness is determined by the message number of described connection in the connection duration connected, described connection duration and data traffic;
If when connection duration is less than 1800 seconds, liveness=(connecting the data traffic * 10 in the message count+connection duration in duration)/connect duration; When connection duration is more than or equal to 1800 seconds, liveness=(in 1800 seconds message count+1800 seconds in data traffic * 10)/1800, message count and data traffic in 1800 seconds in described 1800 seconds are the message count in before moment of starting to calculate liveness 1800 seconds and data traffic.
7. method according to claim 6, it is characterized in that, the table of comparisons that described server prestores liveness and the length of one's sleep, after described server receives the liveness of described controller transmission, the state that described sleep connects is determined according to the described table of comparisons, if described sleep connects do not reach described sleep request, described server disconnects described sleep and connects.
8. a system for multi-window chat, is characterized in that, comprises client, controller and server, and described client is connected with described server by described controller, and described client is directly connected with described server,
Described server comprises receiver and processor, and described receiver connects described processor,
Described receiver, for setting up the corresponding connection of at least one and user window between client;
Described processor, if the activation request for receiving the described connection of sleeping that described client sends within the length of one's sleep of arbitrary sleep connection, activating described sleep and connecting, also for setting the state of new connection or target connection according to the notice of described controller;
Described controller, after setting up be connected with described client new for described server, or described client by last connection be switched to target connect after, calculate the liveness of last connection and determine the state of described last connection according to described liveness, and by described status notification server, after also activating described sleep connection for described server, calculate the liveness of new connection or target connection and determine according to described liveness the state that described new connection or target connect, and server described in the state notifying that described new connection or target are connected;
Wherein, the state of described last connection is for sleep or disconnect, and arranges the length of one's sleep of described last connection;
Described liveness is determined by the message number of described connection in the connection duration connected, described connection duration and data traffic;
If when connection duration is less than 1800 seconds, liveness=(connecting the data traffic * 10 in the message count+connection duration in duration)/connect duration; When connection duration is more than or equal to 1800 seconds, liveness=(in 1800 seconds message count+1800 seconds in data traffic * 10)/1800, message count and data traffic in 1800 seconds in described 1800 seconds are the message count in before moment of starting to calculate liveness 1800 seconds and data traffic.
9. a system for multi-window chat, is characterized in that, comprises client, controller and server, and described client is connected with described server by described controller, and described client is directly connected with described server,
Described server comprises receiver and processor, and described receiver connects described processor,
Described receiver, for setting up the corresponding connection of at least one and user window between client;
Described controller, after setting up be connected with described client new for described server, or described client by last connection be switched to target connect after, calculate the liveness of last connection and send to server, after also connecting for described server activated sleep, calculate the liveness of new connection or target connection and send to described server;
Described processor, if the activation request that the described sleep sent for receiving described client within the length of one's sleep of arbitrary sleep connection connects, activate described sleep to connect, the liveness also for sending according to described controller sets the state of described new connection or target connection;
Wherein, the state of described last connection is for sleep or disconnect, and arranges the length of one's sleep of described last connection;
Described liveness is determined by the message number of described connection in the connection duration connected, described connection duration and data traffic;
If when connection duration is less than 1800 seconds, liveness=(connecting the data traffic * 10 in the message count+connection duration in duration)/connect duration; When connection duration is more than or equal to 1800 seconds, liveness=(in 1800 seconds message count+1800 seconds in data traffic * 10)/1800, message count and data traffic in 1800 seconds in described 1800 seconds are the message count in before moment of starting to calculate liveness 1800 seconds and data traffic.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210036149.6A CN102594732B (en) | 2012-02-17 | 2012-02-17 | Method and system for multiwindow chatting |
PCT/CN2012/084333 WO2013120365A1 (en) | 2012-02-17 | 2012-11-08 | Method and system for multi-window chatting |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210036149.6A CN102594732B (en) | 2012-02-17 | 2012-02-17 | Method and system for multiwindow chatting |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102594732A CN102594732A (en) | 2012-07-18 |
CN102594732B true CN102594732B (en) | 2015-01-21 |
Family
ID=46482947
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210036149.6A Expired - Fee Related CN102594732B (en) | 2012-02-17 | 2012-02-17 | Method and system for multiwindow chatting |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102594732B (en) |
WO (1) | WO2013120365A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102594732B (en) * | 2012-02-17 | 2015-01-21 | 苏州阔地网络科技有限公司 | Method and system for multiwindow chatting |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101009670A (en) * | 2007-01-22 | 2007-08-01 | 阿里巴巴公司 | A method and system for implementing the group communication based on the instant communication |
CN101188577A (en) * | 2007-12-29 | 2008-05-28 | 腾讯科技(深圳)有限公司 | Multi-page instant communication method and system |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7305475B2 (en) * | 1999-10-12 | 2007-12-04 | Webmd Health | System and method for enabling a client application to operate offline from a server |
US20080040436A1 (en) * | 2006-08-11 | 2008-02-14 | Geodesic Information Systems Ltd | Instant messaging integrated in a browser |
CN102118322A (en) * | 2009-12-30 | 2011-07-06 | 蒋斌 | Method for automatically controlling number of chat windows in chat tool |
CN102594732B (en) * | 2012-02-17 | 2015-01-21 | 苏州阔地网络科技有限公司 | Method and system for multiwindow chatting |
CN102594731B (en) * | 2012-02-17 | 2014-12-03 | 苏州阔地网络科技有限公司 | Method and system for realizing multi-window chatting |
CN102571376B (en) * | 2012-02-24 | 2014-12-03 | 苏州阔地网络科技有限公司 | Method and system for implementing multi-window chat |
CN102594894B (en) * | 2012-02-24 | 2014-10-15 | 苏州阔地网络科技有限公司 | Multi-window chatting method and system |
-
2012
- 2012-02-17 CN CN201210036149.6A patent/CN102594732B/en not_active Expired - Fee Related
- 2012-11-08 WO PCT/CN2012/084333 patent/WO2013120365A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101009670A (en) * | 2007-01-22 | 2007-08-01 | 阿里巴巴公司 | A method and system for implementing the group communication based on the instant communication |
CN101188577A (en) * | 2007-12-29 | 2008-05-28 | 腾讯科技(深圳)有限公司 | Multi-page instant communication method and system |
Also Published As
Publication number | Publication date |
---|---|
WO2013120365A1 (en) | 2013-08-22 |
CN102594732A (en) | 2012-07-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9712632B2 (en) | Method for receiving data, method for sending data, mobile terminal, and server | |
CN103037319B (en) | Communication transfer method, mobile terminal and server | |
CN102684949B (en) | Method and device for processing heartbeat data packet under persistent connection, and client | |
CN104812094B (en) | The connection method for building up and device of equipment room | |
CN102571376B (en) | Method and system for implementing multi-window chat | |
CN103001860A (en) | Achieving system for converged communication Web instant messages | |
CN103368763B (en) | The control method monitored and equipment | |
CN103309428A (en) | Information processing method and electronic equipment | |
WO2015143871A1 (en) | Standby method, intelligent household devices and standby system | |
CN101854598A (en) | Method and system for switching instant messaging service between clients | |
CN103874035A (en) | Mobile terminal message pushing method and equipment | |
CN103634195A (en) | Communication method and device | |
CN103312528A (en) | Heartbeat message sending method and user terminal | |
CN109117971A (en) | A kind of station reservation system and its implementation based on wechat enterprise application | |
CN104580537A (en) | Rapid reconnecting method based on XMPP (extensible messaging and presence protocol) client side, terminal and server | |
CN105554000A (en) | Network telephone wake-up method | |
CN103516766B (en) | Method and system of communication between client-side and application server | |
CN103491512A (en) | Implementation method and device for information pushing | |
CN103312586B (en) | A kind of method of instant messaging, system and server | |
CN102594731B (en) | Method and system for realizing multi-window chatting | |
CN101459881B (en) | Message bearing method and client, message server | |
CN102594732B (en) | Method and system for multiwindow chatting | |
CN101247365A (en) | User mode indication method, instant communication system and server in instant communication | |
CN110022577B (en) | Cellular IOT downlink service sending method, device and computer readable storage medium | |
CN105515936A (en) | Method, server and system for message communication |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C56 | Change in the name or address of the patentee | ||
CP01 | Change in the name or title of a patent holder |
Address after: Suzhou City, Jiangsu province 215121 Fengting Avenue Suzhou Industrial Park No. 666 Weiting Intelligent Industrial Park Building 8 Patentee after: CODYY EDUCATION TECHNOLOGY Co.,Ltd. Address before: Suzhou City, Jiangsu province 215121 Fengting Avenue Suzhou Industrial Park No. 666 Weiting Intelligent Industrial Park Building 8 Patentee before: SUZHOU CODYY NETWORK SCIENCE & TECHNOLOGY Co.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150121 Termination date: 20220217 |