CN104320328A - Message synchronization method, terminal and server - Google Patents

Message synchronization method, terminal and server Download PDF

Info

Publication number
CN104320328A
CN104320328A CN201410590051.4A CN201410590051A CN104320328A CN 104320328 A CN104320328 A CN 104320328A CN 201410590051 A CN201410590051 A CN 201410590051A CN 104320328 A CN104320328 A CN 104320328A
Authority
CN
China
Prior art keywords
message
server
terminal
time
account information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410590051.4A
Other languages
Chinese (zh)
Inventor
严炎
曹鹤婷
许志斌
何飚
傅强
吕召彪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201410590051.4A priority Critical patent/CN104320328A/en
Publication of CN104320328A publication Critical patent/CN104320328A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a message synchronization method, a terminal and a server, and relates to the field of communication. A user terminal can acquire the content of a plurality of messages at a time so as to achieve message synchronization, and the resource consumption of a message server is lowered. The method includes the steps that when a first account number message of the terminal logs in, the terminal periodically sends a synchronous request message to the server, the synchronous request message comprises the first account number message of the terminal and first time corresponding to first message content in which the terminal is communicated with the server most recently, and the first time is the receiving time when the server receives the first message content; the terminal receives a synchronous response message sent by the server, and the synchronous response message comprises second message content in which the first account number message is in interaction with other account number messages after the server stores the first time and receiving time when the server receives the second message content, and the terminal adds the second message content into a local message record. The message synchronization method is used in the terminal for conducting message synchronization.

Description

A kind of message synchronization method, terminal and server
Technical field
The present invention relates to the communications field, particularly relate to a kind of message synchronization method, terminal and server.
Background technology
Instant messaging (Instant Message, IM) be a kind of real-time communication service that user can be allowed on network to set up certain private chat room, its MSN comprises QQ, Baidu HI, Sina UC (Universal Communication), Microsoft's MSN (Microsoft Live Message, MSN) etc.Along with developing rapidly of IM technology, improve the communication experience of user greatly, meanwhile, the quantity of the mobile terminal that user has also gets more and more, type is also more and more abundanter, communication way is also tending towards multi-screen gradually, such as multiple terminal such as mobile phone, Pad and computer carries out message communication simultaneously.
At present, existing massage pattern can realize message between different user account and send, receives and roaming etc., wherein when same user account A is in multi-point login state, it is synchronous that the scheme of message synchronization can realize between multiple terminal, such as same account A can log in mobile phone, also log on computers simultaneously, when the message push that another user account B communicated with user account A sends by message server is to mobile phone, also pushed on computer simultaneously, achieved the multi-screen synchronous of same user account message.But when the user terminal at user account B place frequently sends message to the user terminal at user account A place, message server needs PUSH message several times to the user terminal at user account A place, to make the resource consumption of message server large.
Summary of the invention
Embodiments of the invention provide a kind of message synchronization method, terminal and server, the multiple message content of the disposable acquisition of user terminal can be made to realize message synchronization, reduce the resource consumption of message server.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, provides a kind of message synchronization method, comprising:
When terminal logs in the first account information, described terminal periodic ground sends synchronization request message to server, described synchronization request message comprises described first account information and described terminal the last corresponding with the first message content of the described interworking server very first time, and the described very first time is the time of reception of described server when receiving described first message content;
Described terminal receives the synchronous response message that described server sends, described synchronous response message comprise the described very first time that described server preserves after described first account information and mutual the second message content of other account information, and time of reception when described server receives described second message content;
Described second message content adds in the local message record of described terminal by the sequencing of time of reception when described terminal receives described second message content according to described second message content and described server.
In conjunction with first aspect, in the one of first aspect mode in the cards, if described terminal logs in described first account information first, then three message content of described synchronization request message for asking in described server described first account information and other account information described in nearest Preset Time mutual, time of reception when receiving described 3rd message content with described server, described synchronous response message comprises described 3rd message content, and time of reception when described server receives described 3rd message content.
Second aspect, provides a kind of message synchronization method, comprising:
The synchronization request message that server receiving terminal sends, described synchronization request message comprises the first account information of described terminal and described terminal the last corresponding with the first message content of described interworking server very first time, and the described very first time is the time of reception of described server when receiving described first message content;
Described server sends synchronous response message to described terminal, described synchronous response message comprise the described very first time that described server preserves after described first account information and mutual the second message content of other account information, and time of reception when described server receives described second message content.
In conjunction with second aspect, in the first mode in the cards of second aspect, described method also comprises:
Described server receives the 3rd message that described terminal sends, and described 3rd message comprises described first account information and the 3rd message content corresponding to described first account information;
Described server preserves the 3rd message content corresponding to described first account information, and records time of reception when receiving described 3rd message.
In conjunction with the first mode in the cards of second aspect or second aspect, in the second of second aspect mode in the cards, if described terminal logs in described first account information first, then described synchronous response message comprises the 4th mutual message content of described first account information and other account information described in the nearest preset time period of described server, and time of reception when described server receives described 4th message content.
The third aspect, provides a kind of terminal, comprising:
Transmitting element, for when described terminal logs in the first account information, periodically send synchronization request message to server, described synchronization request message comprises described first account information and described terminal the last corresponding with the first message content of the described interworking server very first time, and the described very first time is the time of reception of described server when receiving described first message content;
Receiving element, for receiving the synchronous response message that described server sends, described synchronous response message comprise the described very first time that described server preserves after described first account information and mutual the second message content of other account information, and time of reception when described server receives described second message content;
Adding device, described second message content adds in the local message record of described terminal by the sequencing of time of reception during for receiving described second message content according to described second message content and described server.
In conjunction with the third aspect, in the one of third aspect mode in the cards, if described terminal logs in described first account information first, then three message content of described synchronization request message for asking in described server described first account information and other account information described in nearest Preset Time mutual, time of reception when receiving described 3rd message content with described server, described synchronous response message comprises described 3rd message content, and time of reception when described server receives described 3rd message content.
Fourth aspect, provides a kind of server, comprising:
Receiving element, for the synchronization request message that receiving terminal sends, described synchronization request message comprises the first account information of described terminal and described terminal the last corresponding with the first message content of described interworking server very first time, and the described very first time is the time of reception of described server when receiving described first message content;
Transmitting element, for sending synchronous response message to described terminal, described synchronous response message comprise the described very first time that described server preserves after described first account information and mutual the second message content of other account information, and time of reception when described server receives described second message content.
In conjunction with fourth aspect, in the first mode in the cards of fourth aspect, described receiving element also for: receive the 3rd message that described terminal sends, described 3rd message comprises described first account information and the 3rd message content corresponding to described first account information;
Described server also comprises: storage unit, for preserving the 3rd message content corresponding to described first account information, and records time of reception when receiving described 3rd message.
In conjunction with the first mode in the cards of fourth aspect or fourth aspect, in the second of fourth aspect mode in the cards, if described terminal logs in described first account information first, then described synchronous response message comprises the 4th mutual message content of described first account information and other account information described in the nearest preset time period of described server, and time of reception when described server receives described 4th message content.
The embodiment of the present invention provides a kind of message synchronization method, terminal and server, when terminal logs in the first account information, terminal periodic ground sends synchronization request message to server, synchronization request message comprises the first account information of terminal and terminal the last corresponding with the first message content of interworking server very first time, the very first time is the time of reception of server when receiving the first message content, the synchronous response message that terminal reception server sends, synchronous response message comprise the very first time that server preserves after the first account information and mutual the second message content of other account information, time of reception when receiving the second message content with server, second message content adds in the local message record of terminal by the sequencing of time of reception when terminal receives the second message content according to the second message content and server, like this by the Message Record of terminal according to this locality, timing initiatively initiates to server the mechanism that new information obtains request, the multiple message content of the disposable acquisition of terminal can be made to realize message synchronization, reduce the resource consumption of message server.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The application scenarios schematic diagram of a kind of terminal that Fig. 1 provides for the embodiment of the present invention and server;
A kind of message synchronization method flow schematic diagram that Fig. 2 provides for the embodiment of the present invention;
A kind of message synchronization method flow schematic diagram that Fig. 3 provides for the embodiment of the present invention;
A kind of terminal structure schematic diagram that Fig. 4 provides for the embodiment of the present invention;
A kind of server architecture schematic diagram that Fig. 5 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, clearly describe the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention can be applied in multiple terminal and log in same account information, carries out in mutual scene, as shown in Figure 1 with other account information place terminal.Wherein, the plurality of terminal can be of the same type or dissimilar terminal, as plurality of mobile phones logs in same account A, communicate with the account B of another mobile phone, or plurality of mobile phones and multiple stage computer (Personal Computer, PC) log in same account A, communicate with the account B of another mobile phone.
Terminal in the embodiment of the present invention can be mobile phone, Pad, PC etc., and server can be message server, and it is as the node of network, data, the information (such as: chat message) that can be used on storage, transmission network.User utilizes mobile phone, Pad, PC etc. to send message, all needs to communicate news through message server.
The embodiment of the present invention provides a kind of message synchronization method, as shown in Figure 2, comprising:
101, when terminal logs in the first account information, terminal periodic ground sends synchronization request message to server, synchronization request message comprises the first account information of terminal and terminal the last corresponding with the first message content of interworking server very first time, and the very first time is the time of reception of server when receiving the first message content.
102, the synchronous response message of terminal reception server transmission, synchronous response message comprise the very first time that server preserves after the first account information and mutual the second message content of other account information, and time of reception when server receives the second message content.
Described second message content adds in the local message record of terminal by the sequencing of time of reception when 103, terminal receives described second message content according to the second message content and described server.
In a step 101, the first account information can be the user account information such as QQ account, microblog account and MSN, also can be other similar account information, not limit here.
For example, the logged same account of multiple of the same type or dissimilar multiple terminals, and carried out messaging interaction with another account.Assuming that all logged account M of terminal 1, terminal 2 and terminal 3, if while the online and transmission that there is message with the terminal 4 at another account N place of terminal 1 and terminal 2 and reception, terminal 3 is not online, so for terminal 1, information receiving and transmitting between terminal 2 and terminal 4, terminal 1 can by periodically sending synchronization request message to message server, to obtain the information receiving and transmitting content of account M between terminal 2 and terminal 4 and account N.In like manner, for terminal 2, the messaging between terminal 1 and terminal 4, terminal 2 can by periodically sending synchronization request message to message server, to obtain the information receiving and transmitting content of account M between terminal 1 and terminal 4 and account N.And for not online terminal 3, when terminal 3 next time login account M time, just synchronization request message can be sent to message server, to obtain account M when terminal 1 and terminal 2 log in, messaging between the account N that account M and terminal 4 log in, to realize terminal 1, message synchronization between terminal 2 and terminal 3.
Exemplary, if when terminal 1 will obtain messaging between terminal 2 terminal 4 to realize message synchronization, the synchronization request message that this terminal 1 sends can comprise the account information of account M and terminal 1 the last corresponding with the first message content of message server intercommunication very first time, this very first time is the time of reception of message server when receiving the first message content, that is, message server is when to terminal PUSH message, the message that will push can be preserved, time of reception when receiving message with recording messages server, the time of reception of corresponding message at message server end can be comprised in the message that terminal pushes, so, when terminal 1 sends synchronization request message to message server, carry the time of reception that terminal 1 is the last corresponding with the first message of message server intercommunication, server can get the related news record of the account M after this time of reception from the local record of message server according to this time of reception.
Wherein, the first message of terminal 1 the last time and message server intercommunication can be the last message sent to message server of terminal 1, also can be the message of the last receipt message server transmission of terminal 1.Here synchronization request message can also comprise Internet protocol (Internet Protocol, the IP) address information of the terminal sending synchronization request message, so that message server sends synchronization message according to this IP address information to terminal.Here cycle is for online terminal, it can be 10 seconds, 1 minute etc., also can be other value, here do not limit, for not online terminal, when login account again, first need to send synchronization request message to obtain synchronization message according to message server, then again with 10 seconds or 1 minute etc. for the cycle sends synchronization request message to message server.
Further, send after synchronous response message to message server in terminal, in a step 102, when message server is after receiving synchronization request message, because the first account information and terminal that carry terminal in this synchronization request message are the last and the very first time of the first message of message server intercommunication, this very first time is the time of reception of message server when receiving the first message from another terminal, like this, message server will according to the very first time of the first message of record, first account information and mutual the second message content of other account information after getting the very first time, then, time of reception when second message content and message server are received the second message content by message server is together sent to the synchronous terminal of request message.
Exemplary, in scene 1, suppose terminal 1 and terminal 2 login account M simultaneously, terminal 1 and another terminal 4 logging in account N carry out message intercommunication, terminal 2 reaches cycle time, and terminal 2 is the last is receive message from message server with message server intercommunication, the very first time of the first message received is 2014-10-9 18:41:22, that is, the first message that message server sends recently to terminal 2 is 2014-10-9 18:41:22 at message server from the time that terminal 4 receives, so after terminal 2 sends synchronization request message to message server, message server is just according to the very first time 2014-10-9 18:41:22 carried in synchronization request message and account M, obtain very first time 2014-10-9 18:41:22 from the Message Record that message server this locality is preserved after, account M and other account communicates news, in scene 1 here communicate news be very first time 2014-10-9 18:41:22 after terminal 1 log in account M and account N between the second message content, so, message server just can send synchronous response message to terminal 2, this synchronous response message comprises the second message content and the time of reception of the second message content in message server side, so that when terminal 2 needs to carry out message synchronization next time, according to the time of reception of last message in message server side in the second message content, again send synchronization request message to message server, so, terminal 2 just can with terminal 1 at the same time login account M time keep message synchronization, and terminal 2 disposablely can obtain multiple Message Record from message server, the resource consumption of message server can be reduced.
It should be noted that, for the terminal logging in the first account information first, because the first account information does not carry out message intercommunication with message server for this terminal, the first account information is there is not in this terminal the last corresponding with the first message of message server intercommunication very first time in terminal, at this moment, synchronization request message to may be used in request message server the 3rd mutual message content of the first account information and other account information in Preset Time, time of reception when receiving described 3rd message content with message server, so, synchronous response message comprises the 3rd message content, time of reception when receiving the 3rd message content with message server.
For example, Preset Time is 24 hours, terminal 1 is login account M first, so terminal 1 just can send synchronization request message to message server, this synchronization request message comprises account M, and do not carry temporal information, message server is when receiving this synchronization request message, find not carry temporal information in this synchronization request message, so message server just can think that this account M logs in first time, so, message server obtains communicating news of account M and other account in nearest 24 hours, communicate news at the time of reception of message server side with these, and after send synchronous response message to terminal 1, this synchronous response message comprises communicating news of account M and other account in nearest 24 hours, communicate news at the time of reception of message server side with these.So, terminal 1 just can the related news record of account M in nearest 24 hours of disposable acquisition, keeps message synchronization in nearest 24 hours of the terminal with other logged account M.
In said process, message server is when sending synchronous response message to terminal, not only can comprise message content, the time of reception of message content in message server side, the quantity of sent message content can also be comprised, understand the quantity of the message content received to facilitate user.
Further, after terminal receives the synchronous response message of message server transmission, in step 103, time of reception when terminal just receives the second message content according to the second message content in synchronous response message and message server, adds to the second message content in the local message record of terminal.
Wherein, second message content can be multiple message content, therefore, time of reception when message server receives the second message content is also for multiple, and the second message content is formed the local message record of terminal by the time order and function order of time of reception when terminal can receive the second message content according to message server.Meanwhile, terminal, according to the time of reception of the second message content received, is the time of reception that each message content adds terminal, here the time of reception of terminal also can be multiple message according to interocclusal record when one, do not limit herein.
The embodiment of the present invention provides a kind of message synchronization method, terminal and server, when terminal logs in the first account information, terminal periodic ground sends synchronization request message to server, synchronization request message comprises the first account information of terminal and terminal the last corresponding with the first message of interworking server very first time, the very first time is the time of reception of server when receiving the first message, the synchronous response message that terminal reception server sends, synchronous response message comprise the very first time that server preserves after the first account information and mutual the second message content of other account information, time of reception when receiving the second message content with server, second message content adds in local message record by terminal, like this by the Message Record of terminal according to this locality, timing initiatively initiates to server the mechanism that new information obtains request, the multiple message content of the disposable acquisition of terminal can be made to realize message synchronization, reduce the resource consumption of message server.
The embodiment of the present invention also provides a kind of message synchronization method, as shown in Figure 3, comprising:
201, the synchronization request message of server receiving terminal transmission, synchronization request message comprises the first account information of terminal and terminal the last corresponding with the first message content of interworking server very first time, and the very first time is the time of reception of server when receiving the first message content.
Concrete, the last the first message content with message server intercommunication of terminal, can be terminal for the last time to the message that message server sends, also can be the message that the last receipt message server of terminal sends.
202, server sends synchronous response message to terminal, synchronous response message comprise the very first time that server preserves after the first account information and mutual the second message content of other account information, and time of reception when server receives the second message content.
Here server can be message server, and the first account information can be the user account information such as QQ account, microblog account and MSN, also can be other similar account information, not limit here.
For message server, the 3rd message that message server receiving terminal sends, 3rd message can comprise the first account information and the 3rd message content corresponding to the first account information, message server preserves the 3rd message content corresponding to the first account information, and records time of reception when receiving the 3rd message content.That is, message server, when receiving the message that terminal sends, will be preserved message, also need recording messages server to receive the time of reception of message.
Wherein, if terminal logs in the first account information first, then synchronous response message can comprise the 4th mutual message content of the first account information and other account information in the nearest preset time period of message server, and time of reception when message server receives the 4th message content.
Specific implementation in the present embodiment can be shown in Figure 1 embodiment in implementation, repeat no more herein.
The embodiment of the present invention provides a kind of message synchronization method, the synchronization request message that server receiving terminal sends, synchronization request message comprises the first account information of terminal and terminal the last corresponding with the first message content of interworking server very first time, the very first time is the time of reception of server when receiving the first message content, server sends synchronous response message to terminal, synchronous response message comprise the very first time that server preserves after the first account information and mutual the second message content of other account information, time of reception when receiving the second message content with server, like this by the synchronization request message of message server according to terminal timed sending, to the propelling movement new message content of terminal periodic, the multiple message content of the disposable acquisition of terminal can be made to realize message synchronization, reduce the resource consumption of message server.
The embodiment of the present invention provides a kind of terminal 01, as shown in Figure 4, comprising:
Transmitting element 011, for when terminal logs in the first account information, periodically send synchronization request message to server, synchronization request message comprises the first account information of terminal and terminal the last corresponding with the first message content of interworking server very first time, and the very first time is the time of reception of server when receiving the first message content.
Receiving element 012, for the synchronous response message that reception server sends, synchronous response message comprise the very first time that server preserves after the first account information and mutual the second message content of other account information, and time of reception when server receives the second message content.
Adding device 013, the second message content adds in the local message record of terminal by the sequencing of time of reception during for receiving the second message content according to the second message content and server.
Optionally, if terminal logs in the first account information first, then synchronization request message to be used in request server the 3rd mutual message content of the first account information and other account information in Preset Time recently, time of reception when receiving the 3rd message content with server, synchronous response message comprises the 3rd message content, and time of reception when server receives the 3rd message content.
The embodiment of the present invention provides a kind of terminal, when terminal logs in the first account information, terminal periodic ground sends synchronization request message to server, synchronization request message comprises the first account information of terminal and terminal the last corresponding with the first message content of interworking server very first time, the very first time is the time of reception of server when receiving the first message content, the synchronous response message that terminal reception server sends, synchronous response message comprise the very first time that server preserves after the first account information and mutual the second message content of other account information, time of reception when receiving the second message content with server, second message content adds in local message record by terminal, like this by the Message Record of terminal according to this locality, timing initiatively initiates to server the mechanism that new information obtains request, the multiple message content of the disposable acquisition of terminal can be made to realize message synchronization, reduce the resource consumption of message server.
The embodiment of the present invention provides a kind of server 02, as shown in Figure 5, comprising:
Receiving element 021, for the synchronization request message that receiving terminal sends, synchronization request message comprises the first account information of terminal and terminal the last corresponding with the first message content of interworking server very first time, and the very first time is the time of reception of server when receiving the first message content.
Transmitting element 022, for sending synchronous response message to terminal, synchronous response message comprise the very first time that server preserves after the first account information and mutual the second message content of other account information, and time of reception when server receives the second message content.
Optionally, receiving element 021 can also be used for: the 3rd message that receiving terminal sends, and the 3rd message comprises the first account information and the 3rd message content corresponding to the first account information;
Server can also comprise: storage unit 023, for preserving the 3rd message content corresponding to the first account information, and records time of reception when receiving the 3rd message.
Optionally, if terminal logs in the first account information first, then synchronous response message comprises the 4th mutual message content of the first account information and other account information in the nearest preset time period of server, and time of reception when server receives the 4th message content.
The embodiment of the present invention provides a kind of server, the synchronization request message that server receiving terminal sends, synchronization request message comprises the first account information of terminal and terminal the last corresponding with the first message content of interworking server very first time, the very first time is the time of reception of server when receiving the first message content, server sends synchronous response message to terminal, synchronous response message comprise the very first time that server preserves after the first account information and mutual the second message content of other account information, time of reception when receiving the second message content with server, like this by the synchronization request message of message server according to terminal timed sending, to the propelling movement new message content of terminal periodic, the multiple message content of the disposable acquisition of terminal can be made to realize message synchronization, reduce the resource consumption of message server.
In several embodiments that the application provides, should be understood that disclosed terminal and method can realize by another way.Such as, apparatus embodiments described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
In addition, in the equipment in each embodiment of the present invention and system, each functional unit can be integrated in a processing unit, also can be that the independent physics of unit comprises, also can two or more unit in a unit integrated.And above-mentioned each unit both can adopt the form of hardware to realize, the form that hardware also can be adopted to add SFU software functional unit had realized.
The all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, and aforesaid program can be stored in a computer read/write memory medium, and this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (Read Only Memory, be called for short ROM), random access memory (Random Access Memory, be called for short RAM), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (10)

1. a message synchronization method, is characterized in that, comprising:
When terminal logs in the first account information, described terminal periodic ground sends synchronization request message to server, described synchronization request message comprises described first account information and described terminal the last corresponding with the first message content of the described interworking server very first time, and the described very first time is the time of reception of described server when receiving described first message content;
Described terminal receives the synchronous response message that described server sends, described synchronous response message comprise the described very first time that described server preserves after described first account information and mutual the second message content of other account information, and time of reception when described server receives described second message content;
Described second message content adds in the local message record of described terminal by the sequencing of time of reception when described terminal receives described second message content according to described second message content and described server.
2. method according to claim 1, it is characterized in that, if described terminal logs in described first account information first, then three message content of described synchronization request message for asking in described server described first account information and other account information described in nearest Preset Time mutual, time of reception when receiving described 3rd message content with described server, described synchronous response message comprises described 3rd message content, and time of reception when described server receives described 3rd message content.
3. a message synchronization method, is characterized in that, comprising:
The synchronization request message that server receiving terminal sends, described synchronization request message comprises the first account information of described terminal and described terminal the last corresponding with the first message content of described interworking server very first time, and the described very first time is the time of reception of described server when receiving described first message content;
Described server sends synchronous response message to described terminal, described synchronous response message comprise the described very first time that described server preserves after described first account information and mutual the second message content of other account information, and time of reception when described server receives described second message content.
4. method according to claim 3, is characterized in that, described method also comprises:
Described server receives the 3rd message that described terminal sends, and described 3rd message comprises described first account information and the 3rd message content corresponding to described first account information;
Described server preserves the 3rd message content corresponding to described first account information, and records time of reception when receiving described 3rd message.
5. the method according to claim 3 or 4, it is characterized in that, if described terminal logs in described first account information first, then described synchronous response message comprises the 4th mutual message content of described first account information and other account information described in the nearest preset time period of described server, and time of reception when described server receives described 4th message content.
6. a terminal, is characterized in that, comprising:
Transmitting element, for when described terminal logs in the first account information, periodically send synchronization request message to server, described synchronization request message comprises described first account information and described terminal the last corresponding with the first message content of the described interworking server very first time, and the described very first time is the time of reception of described server when receiving described first message content;
Receiving element, for receiving the synchronous response message that described server sends, described synchronous response message comprise the described very first time that described server preserves after described first account information and mutual the second message content of other account information, and time of reception when described server receives described second message content;
Adding device, described second message content adds in the local message record of described terminal by the sequencing of time of reception during for receiving described second message content according to described second message content and described server.
7. terminal according to claim 6, it is characterized in that, if described terminal logs in described first account information first, then three message content of described synchronization request message for asking in described server described first account information and other account information described in nearest Preset Time mutual, time of reception when receiving described 3rd message content with described server, described synchronous response message comprises described 3rd message content, and time of reception when described server receives described 3rd message content.
8. a server, is characterized in that, comprising:
Receiving element, for the synchronization request message that receiving terminal sends, described synchronization request message comprises the first account information of described terminal and described terminal the last corresponding with the first message content of described interworking server very first time, and the described very first time is the time of reception of described server when receiving described first message content;
Transmitting element, for sending synchronous response message to described terminal, described synchronous response message comprise the described very first time that described server preserves after described first account information and mutual the second message content of other account information, and time of reception when described server receives described second message content.
9. server according to claim 8, is characterized in that, described receiving element also for: receive the 3rd message that described terminal sends, described 3rd message comprises described first account information and the 3rd message content corresponding to described first account information;
Described server also comprises: storage unit, for preserving the 3rd message content corresponding to described first account information, and records time of reception when receiving described 3rd message.
10. server according to claim 8 or claim 9, it is characterized in that, if described terminal logs in described first account information first, then described synchronous response message comprises the 4th mutual message content of described first account information and other account information described in the nearest preset time period of described server, and time of reception when described server receives described 4th message content.
CN201410590051.4A 2014-10-28 2014-10-28 Message synchronization method, terminal and server Pending CN104320328A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410590051.4A CN104320328A (en) 2014-10-28 2014-10-28 Message synchronization method, terminal and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410590051.4A CN104320328A (en) 2014-10-28 2014-10-28 Message synchronization method, terminal and server

Publications (1)

Publication Number Publication Date
CN104320328A true CN104320328A (en) 2015-01-28

Family

ID=52375502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410590051.4A Pending CN104320328A (en) 2014-10-28 2014-10-28 Message synchronization method, terminal and server

Country Status (1)

Country Link
CN (1) CN104320328A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105245413A (en) * 2015-09-24 2016-01-13 成都广达新网科技股份有限公司 Method for acquiring control information response of terminal by central office of Ethernet over coax (EOC) equipment
CN105657690A (en) * 2015-12-29 2016-06-08 小米科技有限责任公司 Method and device for processing mobile terminal setting information
CN106411692A (en) * 2016-06-29 2017-02-15 宁波市由乐讯通讯科技有限公司 Improved method and system enabling information synchronization between mobile end and server end
CN106961377A (en) * 2016-01-12 2017-07-18 北大方正集团有限公司 Message synchronization method and message synchronization system
CN107257313A (en) * 2017-05-16 2017-10-17 深圳市金立通信设备有限公司 A kind of message synchronization method and terminal
CN108270861A (en) * 2018-01-18 2018-07-10 吉浦斯信息咨询(深圳)有限公司 Realize the method and system that the more equipment rooms of user relationship data synchronize in instant messaging
CN108923875A (en) * 2018-05-31 2018-11-30 北京五八信息技术有限公司 Method for synchronizing time and device
CN110198335A (en) * 2018-08-30 2019-09-03 腾讯科技(深圳)有限公司 Message synchronization method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101106543A (en) * 2007-08-20 2008-01-16 北京亿企通信息技术有限公司 A method for processing offline data in instant communication tool
CN102882762A (en) * 2011-07-11 2013-01-16 腾讯科技(深圳)有限公司 Method and system for synchronizing chat status information in multiple pages
CN103051520A (en) * 2013-01-05 2013-04-17 北京小米科技有限责任公司 Method and device for synchronizing offline session messages in instant messaging tool
CN103391307A (en) * 2012-05-11 2013-11-13 阿里巴巴集团控股有限公司 Off-line transparent-transmitting and display method, device and system for off-line data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101106543A (en) * 2007-08-20 2008-01-16 北京亿企通信息技术有限公司 A method for processing offline data in instant communication tool
CN102882762A (en) * 2011-07-11 2013-01-16 腾讯科技(深圳)有限公司 Method and system for synchronizing chat status information in multiple pages
CN103391307A (en) * 2012-05-11 2013-11-13 阿里巴巴集团控股有限公司 Off-line transparent-transmitting and display method, device and system for off-line data
CN103051520A (en) * 2013-01-05 2013-04-17 北京小米科技有限责任公司 Method and device for synchronizing offline session messages in instant messaging tool

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105245413A (en) * 2015-09-24 2016-01-13 成都广达新网科技股份有限公司 Method for acquiring control information response of terminal by central office of Ethernet over coax (EOC) equipment
CN105245413B (en) * 2015-09-24 2018-07-13 成都广达新网科技股份有限公司 A kind of method that EOC equipment local side obtains terminal control message response
CN105657690A (en) * 2015-12-29 2016-06-08 小米科技有限责任公司 Method and device for processing mobile terminal setting information
CN106961377A (en) * 2016-01-12 2017-07-18 北大方正集团有限公司 Message synchronization method and message synchronization system
CN106411692A (en) * 2016-06-29 2017-02-15 宁波市由乐讯通讯科技有限公司 Improved method and system enabling information synchronization between mobile end and server end
CN107257313A (en) * 2017-05-16 2017-10-17 深圳市金立通信设备有限公司 A kind of message synchronization method and terminal
CN108270861A (en) * 2018-01-18 2018-07-10 吉浦斯信息咨询(深圳)有限公司 Realize the method and system that the more equipment rooms of user relationship data synchronize in instant messaging
CN108923875A (en) * 2018-05-31 2018-11-30 北京五八信息技术有限公司 Method for synchronizing time and device
CN110198335A (en) * 2018-08-30 2019-09-03 腾讯科技(深圳)有限公司 Message synchronization method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104320328A (en) Message synchronization method, terminal and server
CN104253741B (en) A kind of method for sending information, relevant apparatus and system
US10911430B2 (en) Account login connection method and apparatus, and storage medium
CN103874019B (en) Voice interactive method and device
CN105577505A (en) Cross-platform instant messaging system and message intercommunication method thereof
JP5891559B2 (en) Instant messaging method, terminal, server and system
CN103597465A (en) Efficient state reconciliation
CN103024062A (en) Data sharing method, clients and data sharing system
CN104135460A (en) Method for keeping push channel active and push server
CN104348697A (en) Video communication information processing method, device and system
CN105049336A (en) Method and system for processing instant communication messages, server and client
CN108712320B (en) Message pushing method and device
CN105656763A (en) Message pushing method and message pushing device
CN104283926A (en) Data synchronization method, device and server
CN104584490A (en) Data transmitting method and device
CN110582998A (en) Group communication method and device, computer storage medium and computer equipment
CN103491162A (en) Method and system for sharing information based on mobile Internet
CN104349320A (en) Sharing method and electronic equipment
CN104125135A (en) Instant messaging application chatting record management method and terminal thereof
CN103716230A (en) Message sending method, device and server
CN104080009A (en) Method and system of multi-terminal break-point continuous play
US10432714B2 (en) Data processing method and system based on asymmetric P2P network
CN102201931A (en) Device management method and system and related apparatus
CN103648085A (en) Mobile terminal message transmitting method for overcoming network jitter
CN103716374A (en) Method for sharing files and server

Legal Events

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

Application publication date: 20150128