CN103929353A - Instant message processing method and device - Google Patents

Instant message processing method and device Download PDF

Info

Publication number
CN103929353A
CN103929353A CN201410171968.0A CN201410171968A CN103929353A CN 103929353 A CN103929353 A CN 103929353A CN 201410171968 A CN201410171968 A CN 201410171968A CN 103929353 A CN103929353 A CN 103929353A
Authority
CN
China
Prior art keywords
message
identification information
instant message
instant
scope
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410171968.0A
Other languages
Chinese (zh)
Other versions
CN103929353B (en
Inventor
赵新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201410171968.0A priority Critical patent/CN103929353B/en
Publication of CN103929353A publication Critical patent/CN103929353A/en
Priority to PCT/CN2014/094273 priority patent/WO2015161662A1/en
Application granted granted Critical
Publication of CN103929353B publication Critical patent/CN103929353B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/48Message addressing, e.g. address format or anonymous messages, aliases

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides an instant message processing method and device. The instant message processing method comprises the steps that an instant message sent by an instant communication sender is received, wherein the instant message contains a message pair, and the message pair contains the identification information of the sender, the identification information of an instant communication receiver and the type of the instant message; a piece of identification information is distributed to the instant message, wherein the identification information of the instant message is unique within the range of the message pair and the number of pieces of identification information is increased gradually according to the receiving time; the instant message within the range of the message pair is processed according to the identification information of the instant message. By the adoption of the instant message processing method, the accuracy can be guaranteed, and the processing efficiency is high.

Description

The processing method of instant message and device
Technical field
The present invention relates to communication technical field, relate in particular to a kind of processing method and device of instant message.
Background technology
In instantaneous communication system, the duplicate removal of instant message, sequence and be synchronously an insoluble problem.At present, in correlation technique, the duplicate removal of instant message, sequence and the synchronous precise time that mainly depends on instant message.If the precise time of instant message is identical, think that repetition has appearred in instant message.Similarly, in the time carrying out the sequence of instant message, also realize according to precise time.In the time carrying out instant message synchronous (not reading the statistical computation of instant message), instantaneous communication system is only recorded the time range of not reading instant message, be the precise time that Article 1 is not read the precise time of instant message and the last item and do not read instant message, traversal instant message is to obtain two instant messages within the scope of correct time as not reading instant message.
The defect that correlation technique exists is, duplicate removal, sequence and the synchronous precise time that mainly depends on instant message of instant message, no matter precise time is that the client of instantaneous communication system is distributed or server-assignment, in instant message routing procedure (be instant message from send client via server to receiving client) clock of all computer system cannot strict conformance, thereby make duplicate removal, sequence and the synchronous result of instant message occur difference.In addition, traversal instant message is to obtain two instant messages within the scope of correct time as not reading instant message, and efficiency is low, does not read instant message and locates also not accurate.
Summary of the invention
The present invention is intended to solve at least to a certain extent one of technical problem in correlation technique.
For this reason, first object of the present invention is to propose a kind of processing method of instant message.The method can ensure accuracy, and treatment effeciency is high.
Second object of the present invention is to propose a kind of processing unit of instant message.
To achieve these goals, the processing method of the instant message of first aspect present invention embodiment, comprise: the instant message that receives sender's transmission of instant messaging, described instant message comprises message pair, and described message is to comprising recipient's identification information and the instant message type of described sender's identification information, described instant messaging; For described instant message distributes an identification information, the identification information of described instant message is unique and increase progressively successively according to time of reception in to scope in described message; According to the identification information of described instant message, described message is processed the instant message in scope.
The processing method of the instant message of the embodiment of the present invention, a message to scope in, for each instant message distribute one unique and be incremented to successively infinite identification information, make message there will not be repetition to the identification information of the each instant message in scope, thereby in the time that message is processed the each instant message in scope, can ensure accuracy, and treatment effeciency is high.
To achieve these goals, the processing unit of the instant message of second aspect present invention embodiment, comprise: receiver module, the instant message sending for receiving the sender of instant messaging, described instant message comprises message pair, and described message is to comprising recipient's identification information and the instant message type of described sender's identification information, described instant messaging; The first distribution module, is used to described instant message to distribute an identification information, and the identification information of described instant message is unique and increase progressively successively according to time of reception in to scope in described message; Processing module, for processing the instant message in scope described message according to the identification information of described instant message.
The processing unit of the instant message of the embodiment of the present invention, a message to scope in, for each instant message distribute one unique and be incremented to successively infinite identification information, make message there will not be repetition to the identification information of the each instant message in scope, thereby in the time that message is processed the each instant message in scope, can ensure accuracy, and treatment effeciency is high.
The aspect that the present invention is additional and advantage in the following description part provide, and part will become obviously from the following description, or recognize by practice of the present invention.
Brief description of the drawings
The present invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments obviously and easily and understand, wherein,
Fig. 1 is the flow chart of the processing method of instant message according to an embodiment of the invention;
Fig. 2 is the flow chart of the processing method of instant message in accordance with another embodiment of the present invention;
Fig. 3 (a) (b) (c) is according to the design sketch of the processing method of the instant message of the embodiment of the present invention;
Fig. 4 is the structured flowchart of the processing unit of instant message according to an embodiment of the invention;
Fig. 5 is the structured flowchart of the processing unit of instant message in accordance with another embodiment of the present invention
Fig. 6 is the structured flowchart of the processing unit of the instant message of another embodiment according to the present invention.
Embodiment
Describe embodiments of the invention below in detail, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar module or has the module of identical or similar functions from start to finish.Be exemplary below by the embodiment being described with reference to the drawings, only for explaining the present invention, and can not be interpreted as limitation of the present invention.On the contrary, embodiments of the invention comprise all changes, amendment and the equivalent within the scope of spirit and the intension that falls into additional claims.
In description of the invention, it will be appreciated that, term " first ", " second " etc. are only for describing object, and can not be interpreted as instruction or hint relative importance.In addition,, in description of the invention, except as otherwise noted, the implication of " multiple " is two or more.
Any process of otherwise describing in flow chart or at this or method are described and can be understood to, represent to comprise that one or more is for realizing module, fragment or the part of code of executable instruction of step of specific logical function or process, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can be not according to order shown or that discuss, comprise according to related function by the mode of basic while or by contrary order, carry out function, this should be understood by embodiments of the invention person of ordinary skill in the field.
Describe according to the processing method of the instant message of the embodiment of the present invention below with reference to accompanying drawing.
Fig. 1 is the flow chart of the processing method of instant message according to an embodiment of the invention.
As shown in Figure 1, the processing method of this instant message comprises:
S101, receives the instant message that the sender of instant messaging sends, and instant message comprises message pair, and message is to comprising sender's recipient's identification information and the instant message type of identification information, instant messaging.
Wherein, the server of instant messaging receives the instant message of sender's transmission of instant messaging, and each instant message through server comprises message pair.
S102, is that instant message distributes an identification information, and the identification information of instant message is unique and increase progressively successively according to time of reception in to scope in message.
Wherein, server is that instant message distributes an identification information, and identification information can be ID.A message to scope in, the identification information of instant message with certain radix (as 1) start, increase progressively successively.As, the message that server receives is successively msg0, msg1 and msg2 to the instant message in scope, if radix is 1, the ID that the ID that ID of msg0 is 1, msg1 is 2, msg2 is 3, this message is exactly 4,5,6 etc. to the ID of instant message afterwards in scope, is incremented to successively infinite.
S103, processes the instant message in scope message according to the identification information of instant message.
For example, processing can comprise following at least one: message is sorted to the instant message in scope; Obtain and do not read instant message; Storing message is to instant message corresponding to the maximum identification information in scope etc.To in subsequent embodiment, describe each processing procedure in detail.
The processing method of the instant message of the embodiment of the present invention, a message to scope in, for each instant message distribute one unique and be incremented to successively infinite identification information, make message there will not be repetition to the identification information of the each instant message in scope, thereby in the time that message is processed the each instant message in scope, can ensure accuracy, and treatment effeciency is high.
Fig. 2 is the flow chart of the processing method of instant message in accordance with another embodiment of the present invention.
In the process sending, may, due to the impact of network environment, there is the situation that repeats transmission in instant message, in order to ensure the uniqueness of instant message, need to process this situation.Particularly, as shown in Figure 2, the processing method of this instant message comprises:
S201, receives the instant message that the sender of instant messaging sends, and instant message comprises message pair, and message is to comprising sender's recipient's identification information and the instant message type of identification information, instant messaging.
Wherein, the server of instant messaging receives the instant message of sender's transmission of instant messaging, and each instant message through server comprises message pair.
In one embodiment of the invention, in instant message, also comprise generation time.
S202, according to message to and generation time, determine whether to exist the first message, the first message be with instant message have identical message to the instant message of generation time.
Particularly, the generation time of instant message is the time after client is edited by user, and the generation time of instant message is different from transmitting time and time of reception, has uniqueness.
S203, determining while having there is the first message, abandons instant message.
S204, determining while there is not the first message, is that instant message distributes an identification information, and the identification information of instant message is unique and increase progressively successively according to time of reception in to scope in message.
S205, processes the instant message in scope message according to the identification information of instant message.
The processing method of the instant message of the embodiment of the present invention, carries out duplicate removal according to generation time to instant message, can ensure the uniqueness of instant message, thereby further ensures accuracy in follow-up processing.
Wherein, according to the identification information of instant message to message to the instant message in scope process (being S103 or S205) specifically comprise following at least one: message is sorted to the instant message in scope; Obtain and do not read instant message; Storing message is to instant message corresponding to the maximum identification information in scope etc.Fig. 3 (a) (b) (c) is according to the design sketch of the processing method of the instant message of the embodiment of the present invention, describes in detail respectively below in conjunction with accompanying drawing 3.
In one embodiment of the invention, according to the identification information of instant message, message is processed specifically and comprised the instant message in scope: according to the identification information of instant message, message is sorted to the instant message in scope, and according to ranking results, corresponding instant message is forwarded to corresponding recipient.Particularly, as shown in Fig. 3 (a), after message being sorted to the instant message in scope according to the identification information of instant message, the design sketch representing in client, according to the method for the embodiment of the present invention, the instant message representing in client can ensure uniqueness.
In another embodiment of the present invention, according to the identification information of instant message, message is processed specifically and comprised the instant message in scope: first, obtain the first identification information, the first identification information is the identification information of the last item message of reading of participant, participant is sender or recipient, and message corresponding to definite participant is to the maximum identification information having distributed in scope; Then,, by the difference of maximum identification information and the first identification information, be defined as the unread message quantity of participant; Then, the instant message in the first scope is defined as to the unread message of participant, the first scope is the each identification information between message pair the first identification information and the maximum identification information that participant is corresponding.For example, the identification information of the last item message that server record participant is read is peer-last-msg-ID, corresponding message is max-msg-ID to the maximum identification information having distributed in scope, if server judges that peer-last-msg-ID and max-msg-ID are not etc., the unread message quantity that difference of max-msg-ID and peer-last-msg-ID is participant, and each identification information between max-msg-ID and peer-last-msg-ID is respectively the identification information of each unread message, can directly know the identification information of unread message, server can directly read corresponding unread message.Particularly, as shown in Fig. 3 (b), the design sketch representing in client for the unread message of participant.
In yet another embodiment of the present invention, according to the identification information of instant message, message is processed specifically and comprised the instant message in scope: storing message is to instant message corresponding to maximum identification information in scope; In the time showing nearest contact person, message, to instant message corresponding to maximum identification information in scope, is defined as to the last item instant message of the nearest contact person of message to correspondence.Particularly, as shown in Fig. 3 (c), the design sketch representing in client for the last item instant message of the nearest contact person of message to correspondence.
In order to realize above-described embodiment, in one embodiment of the invention, the processing method of this instant message also comprises (not shown): for message is to distributing the identification information at a Message Processing center definite Message Processing center, Message Processing center is used to message to distribute an identification information to the instant message in scope, and according to the identification information of instant message, message is processed the instant message in scope.Particularly, server is that each message is to distributing a Message Processing center (Message Processing Center, MPC), allow the internal each instant message of message pass through Message Processing center, the identification information of realizing instant message by Message Processing center distributes and processes.
Wherein, server can arrange multiple Message Processing center, is identification information of each Message Processing central dispense, in one embodiment of the invention, when instant message is when the server, server can know that message that each instant message is corresponding is to corresponding Message Processing center.Particularly, in one embodiment of the invention, determine the identification information at Message Processing center, comprising:
Adopt following formula to calculate the identification information at Message Processing center:
ID=(UIN1*UIN2)%N
Wherein, ID is the identification information at Message Processing center, UIN1 represents the minimum value in sender's identification information and recipient's identification information, and UIN2 is the maximum in sender's identification information and recipient's identification information, and N represents the sum at " virtual " Message Processing center.
In practice, Message Processing center has dividing of " virtual " and " physics ", virtual message processing center number is fixed, and physical message processing center can need to increase and decrease according to actual dilatation, between the two, exists certain mapping relations because number is not reciprocity.
First, calculate the identification information of virtual message processing center according to above-mentioned formula, then, according to the mapping relations of virtual identifying information and physical label information, find the identification information of physical message processing center.For example, virtual message processing center has 10000, its mark is respectively 0,1,2,3 ... 9999, and physical message processing center only has 10, its mark is respectively 0,1,2,3 ... 9, corresponding 1000 the virtual message processing centers of each physical message processing center, the mark scope that is designated virtual message processing center corresponding to 0 physical message processing center is 0-999, the like, 9 virtual message processing center mark scope corresponding to physical message center of being designated is 9000-9999.
In addition, in one embodiment of the invention, in the time that instant type of message is many people instant messaging, in the time calculating ID, sender's mark is set to 1.
The processing method of the instant message of the embodiment of the present invention, by the internal instant message of Message Processing center processing message, scalability and zmodem, new Message Processing center of adding not only with the original module compatibility of server, and instant message duplicate removal, sequence, synchronous and pull the functions such as the last item message, remarkable benefit are completed.
In one embodiment of the invention, for instant message distributes an identification information, comprise: the mark of obtaining at least one from pre-stored message identifier database MID, and at least one the mark of obtaining, be that instant message distributes an identification information, and after distributing, then from pre-stored MID, obtain at least one mark.For example, in MID, store the message pair of processing, with the identification information of the right the last item instant message of this message, if ID is 10, when receiving instant message and need to be for an identification information of its distribution time, can get 11,12 from MID ..., 20, and distribute one as instant message, after 10 ID distribute, then from MID, read 10 ID, as 21,22 ..., 30, by that analogy.The benefit of doing is like this to reduce server stress.
In order to realize above-described embodiment, embodiments of the invention also propose a kind of processing unit of instant message.
Fig. 4 is the structured flowchart of the processing unit of instant message according to an embodiment of the invention.
As shown in Figure 4, the processing unit 100 of instant message comprises: receiver module 110, the first distribution module 120 and processing module 130.
Particularly, the instant message that receiver module 110 sends for receiving the sender of instant messaging, instant message comprises message pair, message is to comprising sender's recipient's identification information and the instant message type of identification information, instant messaging.
The first distribution module 120 is used to instant message to distribute an identification information, and the identification information of instant message is unique and increase progressively successively according to time of reception in to scope in message.Wherein, identification information can be ID.A message to scope in, the identification information of instant message with certain radix (as 1) start, increase progressively successively.As, the message that receiver module 110 receives is successively msg0, msg1 and msg2 to the instant message in scope, if radix is 1, the identification information that the first distribution module 120 is distributed: the ID of msg0 is 1, the ID of msg1 is 2, the ID of msg2 is 3, and this message is exactly 4,5,6 etc. to the ID of instant message afterwards in scope, is incremented to successively infinite.
Processing module 130 is for processing the instant message in scope message according to the identification information of instant message.For example, processing can comprise following at least one: message is sorted to the instant message in scope; Obtain and do not read instant message; Storing message is to instant message corresponding to the maximum identification information in scope etc.To in subsequent embodiment, describe each processing procedure in detail.
The processing unit of the instant message of the embodiment of the present invention, a message to scope in, for each instant message distribute one unique and be incremented to successively infinite identification information, make message there will not be repetition to the identification information of the each instant message in scope, thereby in the time that message is processed the each instant message in scope, can ensure accuracy, and treatment effeciency is high.
Fig. 5 is the structured flowchart of the processing unit of instant message in accordance with another embodiment of the present invention.
As shown in Figure 5, the processing unit 100 of instant message comprises: receiver module 110, the first distribution module 120, processing module 130, determination module 140 and discard module 150.
Particularly, in instant message, also comprise generation time, determination module 140 is for before distributing an identification information for instant message, according to message to and generation time, determine whether to exist the first message, the first message be with instant message have identical message to the instant message of generation time.Discard module 150, for determining while having there is the first message, abandons instant message.
More specifically, the generation time of instant message is the time after client is edited by user, and the generation time of instant message is different from transmitting time and time of reception, has uniqueness.Therefore, determining and abandon instant message while having there is the first message at determination module 140, is that instant message distributes an identification information determining while there is not the first message, can ensure the uniqueness of instant message, thereby further ensure accuracy in follow-up processing.
In one embodiment of the invention, processing module 130 specifically for: according to the identification information of instant message, message is sorted to the instant message in scope, and according to ranking results, corresponding instant message is forwarded to corresponding recipient.Specifically can understand by reference method embodiment, do not repeat them here.
In another embodiment of the present invention, processing module 130 specifically for: obtain the first identification information, the first identification information is the identification information of the last item message of reading of participant, participant is sender or recipient, and message corresponding to definite participant is to the maximum identification information having distributed in scope, and by the difference of maximum identification information and the first identification information, be defined as the unread message quantity of participant, and the instant message in the first scope is defined as to the unread message of participant, the first scope is the each identification information between message pair the first identification information and the maximum identification information that participant is corresponding.Specifically can understand by reference method embodiment, do not repeat them here.
In yet another embodiment of the present invention, processing module 130 specifically for: storing message is to instant message corresponding to maximum identification information in scope, and in the time showing nearest contact person, message, to instant message corresponding to maximum identification information in scope, is defined as to the last item instant message of the nearest contact person of message to correspondence.Specifically can understand by reference method embodiment, do not repeat them here.
Fig. 6 is the structured flowchart of the processing unit of the instant message of another embodiment according to the present invention.
As shown in Figure 6, the processing unit 100 of instant message comprises: receiver module 110, the first distribution module 120, processing module 130, determination module 140, discard module 150 and the second distribution module 160.
Particularly, the second distribution module 160 is used to message to distributing the identification information at a Message Processing center definite Message Processing center, Message Processing center is used to message to distribute an identification information to the instant message in scope, and according to the identification information of instant message, message is processed the instant message in scope.Wherein, for each message is to distributing a Message Processing center (Message Processing Center, MPC), allow the internal each instant message of message pass through Message Processing center, the identification information of realizing instant message by Message Processing center distributes and processes.
Wherein, multiple Message Processing center can be set, be identification information of each Message Processing central dispense, particularly, in one embodiment of the invention, determines the identification information at Message Processing center, comprising:
Adopt following formula to calculate the identification information at Message Processing center:
ID=(UIN1*UIN2)%N
Wherein, ID is the identification information at Message Processing center, and UIN1 represents the minimum value in sender's identification information and recipient's identification information, and UIN2 is the maximum in sender's identification information and recipient's identification information, and N represents the sum at Message Processing center.
In addition, in one embodiment of the invention, in the time that instant type of message is many people instant messaging, in the time calculating ID, sender's mark is set to 1.
The processing unit of the instant message of the embodiment of the present invention, by the internal instant message of Message Processing center processing message, scalability and zmodem, new Message Processing center of adding not only with the original module compatibility of server, and instant message duplicate removal, sequence, synchronous and pull the functions such as the last item message, remarkable benefit are completed.
In one embodiment of the invention, the first distribution module 120 is specifically for the mark of obtaining at least one from pre-stored message identifier database MID, and at least one the mark of obtaining, be that instant message distributes an identification information, and after distributing, then from pre-stored MID, obtain at least one mark.For example, in MID, store the message pair of processing, with the identification information of the right the last item instant message of this message, if ID is 10, when receiving instant message and need to be for an identification information of its distribution time, can get 11,12 from MID ..., 20, and distribute one as instant message, after 10 ID distribute, then from MID, read 10 ID, as 21,22 ..., 30, by that analogy.The benefit of doing is like this to reduce server stress.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple steps or method can realize with being stored in software or the firmware carried out in memory and by suitable instruction execution system.For example, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: there is the discrete logic for data-signal being realized to the logic gates of logic function, there is the application-specific integrated circuit (ASIC) of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
In the description of this specification, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means to be contained at least one embodiment of the present invention or example in conjunction with specific features, structure, material or the feature of this embodiment or example description.In this manual, the schematic statement of above-mentioned term is not necessarily referred to identical embodiment or example.And specific features, structure, material or the feature of description can be with suitable mode combination in any one or more embodiment or example.
Although illustrated and described embodiments of the invention, those having ordinary skill in the art will appreciate that: in the situation that not departing from principle of the present invention and aim, can carry out multiple variation, amendment, replacement and modification to these embodiment, scope of the present invention is limited by claim and equivalent thereof.

Claims (18)

1. a processing method for instant message, is characterized in that, comprising:
Receive the instant message that the sender of instant messaging sends, described instant message comprises message pair, and described message is to comprising recipient's identification information and the instant message type of described sender's identification information, described instant messaging;
For described instant message distributes an identification information, the identification information of described instant message is unique and increase progressively successively according to time of reception in to scope in described message;
According to the identification information of described instant message, described message is processed the instant message in scope.
2. method according to claim 1, is characterized in that, also comprises generation time in described instant message, described be that before described instant message distributes an identification information, described method also comprises:
According to described message to and generation time, determine whether to exist the first message, described the first message be with described instant message have identical message to the instant message of generation time;
Determining while having there is described the first message, abandon described instant message.
3. method according to claim 1 and 2, is characterized in that, describedly according to the identification information of described instant message, described message is processed the instant message in scope, comprising:
According to the identification information of described instant message, described message is sorted to the instant message in scope, and according to ranking results, corresponding instant message is forwarded to corresponding recipient.
4. method according to claim 1 and 2, is characterized in that, describedly according to the identification information of described instant message, described message is processed the instant message in scope, comprising:
Obtain the first identification information, described the first identification information is the identification information of the last item message of reading of participant, and described participant is described sender or recipient, and determines that message that described participant is corresponding is to the maximum identification information having distributed in scope;
By the difference of described maximum identification information and the first identification information, be defined as the unread message quantity of described participant;
Instant message in the first scope is defined as to the unread message of described participant, described the first scope is the each identification information between the first identification information and described maximum identification information described in the message pair that described participant is corresponding.
5. method according to claim 1 and 2, is characterized in that, describedly according to the identification information of described instant message, described message is processed the instant message in scope, comprising:
Storing message is to instant message corresponding to maximum identification information in scope;
In the time showing nearest contact person, described message, to instant message corresponding to maximum identification information in scope, is defined as to the last item instant message of the nearest contact person of described message to correspondence.
6. method according to claim 1, is characterized in that, also comprises:
For described message is to distributing the identification information at a Message Processing center definite described Message Processing center, described Message Processing center is used to described message to distribute an identification information to the described instant message in scope, and according to the identification information of described instant message, described message is processed the instant message in scope.
7. method according to claim 6, is characterized in that, the described identification information of determining described Message Processing center, comprising:
Adopt following formula to calculate the identification information at described Message Processing center:
ID=(UIN1*UIN2)%N
Wherein, ID is the identification information at Message Processing center, and UIN1 represents the minimum value in sender's identification information and recipient's identification information, and UIN2 is the maximum in sender's identification information and recipient's identification information, and N represents the sum at described Message Processing center.
8. method according to claim 7, is characterized in that, in the time that described instant message type is many people instant messaging, in the time calculating described ID, described sender's mark is set to 1.
9. method according to claim 6, is characterized in that, described is that described instant message distributes an identification information, comprising:
From pre-stored message identifier database MID, obtain the identification information of at least one, and at least one the identification information obtaining for described instant message distributes an identification information, and after distributing, then from pre-stored MID, obtain at least one mark.
10. a processing unit for instant message, is characterized in that, comprising:
Receiver module, the instant message sending for receiving the sender of instant messaging, described instant message comprises message pair, described message is to comprising recipient's identification information and the instant message type of described sender's identification information, described instant messaging;
The first distribution module, is used to described instant message to distribute an identification information, and the identification information of described instant message is unique and increase progressively successively according to time of reception in to scope in described message;
Processing module, for processing the instant message in scope described message according to the identification information of described instant message.
11. devices according to claim 10, is characterized in that, also comprise and also comprise generation time in described instant message:
Determination module, for before being an identification information of described instant message distribution, according to described message to and generation time, determine whether to exist the first message, described the first message be with described instant message have identical message to the instant message of generation time;
Discard module, for determining while having there is described the first message, abandons described instant message.
12. according to the device described in claim 10 or 11, it is characterized in that, described processing module specifically for:
According to the identification information of described instant message, described message is sorted to the instant message in scope, and according to ranking results, corresponding instant message is forwarded to corresponding recipient.
13. according to the device described in claim 10 or 11, it is characterized in that, described processing module specifically for:
Obtain the first identification information, described the first identification information is the identification information of the last item message of reading of participant, described participant is described sender or recipient, and determine that message corresponding to described participant is to the maximum identification information having distributed in scope, and by the difference of described maximum identification information and the first identification information, be defined as the unread message quantity of described participant, and the instant message in the first scope is defined as to the unread message of described participant, described the first scope is the each identification information between the first identification information and described maximum identification information described in the message pair that described participant is corresponding.
14. according to the device described in claim 10 or 11, it is characterized in that, described processing module specifically for:
Storing message is to instant message corresponding to maximum identification information in scope, and in the time showing nearest contact person, described message, to instant message corresponding to maximum identification information in scope, is defined as to the last item instant message of the nearest contact person of described message to correspondence.
15. devices according to claim 10, is characterized in that, also comprise:
The second distribution module, be used to described message to distributing the identification information at a Message Processing center definite described Message Processing center, described Message Processing center is used to described message to distribute an identification information to the described instant message in scope, and according to the identification information of described instant message, described message is processed the instant message in scope.
16. devices according to claim 15, is characterized in that, the described identification information of determining described Message Processing center, comprising:
Adopt following formula to calculate the identification information at described Message Processing center:
ID=(UIN1*UIN2)%N
Wherein, ID is the identification information at Message Processing center, and UIN1 represents the minimum value in sender's identification information and recipient's identification information, and UIN2 is the maximum in sender's identification information and recipient's identification information, and N represents the sum at described Message Processing center.
17. devices according to claim 16, is characterized in that, in the time that described instant message type is many people instant messaging, in the time calculating described ID, described sender's mark are set to 1.
18. devices according to claim 15, is characterized in that, described the first distribution module specifically for:
From pre-stored message identifier database MID, obtain the identification information of at least one, and at least one the identification information obtaining for described instant message distributes an identification information, and after distributing, then from pre-stored MID, obtain at least one mark.
CN201410171968.0A 2014-04-25 2014-04-25 The treating method and apparatus of instant message Active CN103929353B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410171968.0A CN103929353B (en) 2014-04-25 2014-04-25 The treating method and apparatus of instant message
PCT/CN2014/094273 WO2015161662A1 (en) 2014-04-25 2014-12-18 Instant message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410171968.0A CN103929353B (en) 2014-04-25 2014-04-25 The treating method and apparatus of instant message

Publications (2)

Publication Number Publication Date
CN103929353A true CN103929353A (en) 2014-07-16
CN103929353B CN103929353B (en) 2017-07-25

Family

ID=51147436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410171968.0A Active CN103929353B (en) 2014-04-25 2014-04-25 The treating method and apparatus of instant message

Country Status (2)

Country Link
CN (1) CN103929353B (en)
WO (1) WO2015161662A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015161662A1 (en) * 2014-04-25 2015-10-29 百度在线网络技术(北京)有限公司 Instant message processing method and device
CN105848291A (en) * 2016-05-25 2016-08-10 努比亚技术有限公司 System message processing method and server
CN106027379A (en) * 2016-07-28 2016-10-12 贵州中科汉天下信息技术有限公司 Push message receiving processing method
CN106657172A (en) * 2015-10-28 2017-05-10 北京金山安全软件有限公司 Method and device for realizing information push
CN106656753A (en) * 2016-12-08 2017-05-10 北京五八信息技术有限公司 Method, device and terminal for ranking IM (instant message) historical messages
CN106921554A (en) * 2015-12-24 2017-07-04 北京新媒传信科技有限公司 Method for message transmission and device
CN106933975A (en) * 2017-02-14 2017-07-07 北京奇虎科技有限公司 A kind of display methods of media file, device and mobile terminal
CN107656825A (en) * 2017-09-01 2018-02-02 上海艾融软件股份有限公司 Message treatment method, apparatus and system
CN107888481A (en) * 2017-11-06 2018-04-06 佛山市章扬科技有限公司 A kind of recognition methods of instant message
CN112422408A (en) * 2020-10-30 2021-02-26 百果园技术(新加坡)有限公司 Message processing method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716919A (en) * 2004-07-01 2006-01-04 国际商业机器公司 Method and device for instant message transrecieving
CN101047520A (en) * 2006-03-28 2007-10-03 腾讯科技(深圳)有限公司 Message recording merging method and user terminal
CN101360278A (en) * 2008-09-17 2009-02-04 华为技术有限公司 Method, apparatus and system for instant message receiving and transmitting
CN102325015A (en) * 2011-07-19 2012-01-18 中兴通讯股份有限公司 Processing method of status reports, communication device and communication system
CN102638416A (en) * 2012-03-27 2012-08-15 上海量明科技发展有限公司 Method for checking IM (instant messaging) information when multiple clients are logged in, client and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102843312B (en) * 2012-08-15 2016-03-30 大唐移动通信设备有限公司 The sending and receiving method of instant message and device
CN103929353B (en) * 2014-04-25 2017-07-25 百度在线网络技术(北京)有限公司 The treating method and apparatus of instant message

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716919A (en) * 2004-07-01 2006-01-04 国际商业机器公司 Method and device for instant message transrecieving
CN101047520A (en) * 2006-03-28 2007-10-03 腾讯科技(深圳)有限公司 Message recording merging method and user terminal
CN101360278A (en) * 2008-09-17 2009-02-04 华为技术有限公司 Method, apparatus and system for instant message receiving and transmitting
CN102325015A (en) * 2011-07-19 2012-01-18 中兴通讯股份有限公司 Processing method of status reports, communication device and communication system
CN102638416A (en) * 2012-03-27 2012-08-15 上海量明科技发展有限公司 Method for checking IM (instant messaging) information when multiple clients are logged in, client and system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015161662A1 (en) * 2014-04-25 2015-10-29 百度在线网络技术(北京)有限公司 Instant message processing method and device
CN106657172A (en) * 2015-10-28 2017-05-10 北京金山安全软件有限公司 Method and device for realizing information push
CN106921554A (en) * 2015-12-24 2017-07-04 北京新媒传信科技有限公司 Method for message transmission and device
CN105848291A (en) * 2016-05-25 2016-08-10 努比亚技术有限公司 System message processing method and server
CN106027379A (en) * 2016-07-28 2016-10-12 贵州中科汉天下信息技术有限公司 Push message receiving processing method
CN106656753A (en) * 2016-12-08 2017-05-10 北京五八信息技术有限公司 Method, device and terminal for ranking IM (instant message) historical messages
CN106933975A (en) * 2017-02-14 2017-07-07 北京奇虎科技有限公司 A kind of display methods of media file, device and mobile terminal
CN106933975B (en) * 2017-02-14 2019-09-17 北京安云世纪科技有限公司 A kind of display methods of media file, device and mobile terminal
CN107656825A (en) * 2017-09-01 2018-02-02 上海艾融软件股份有限公司 Message treatment method, apparatus and system
CN107888481A (en) * 2017-11-06 2018-04-06 佛山市章扬科技有限公司 A kind of recognition methods of instant message
CN112422408A (en) * 2020-10-30 2021-02-26 百果园技术(新加坡)有限公司 Message processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
WO2015161662A1 (en) 2015-10-29
CN103929353B (en) 2017-07-25

Similar Documents

Publication Publication Date Title
CN103929353A (en) Instant message processing method and device
US10853354B2 (en) Method of generating globally verifiable unique identifiers using a scalable interlinked blockchain structure
JP6878670B2 (en) Methods and equipment for distributed databases in the network
US11170371B2 (en) Method for managing data in a network of nodes
CN111201754B (en) Device for providing cryptographically protected and filtered and ordered collection of transaction data sets for links of a blockchain
CN105719221B (en) Path collaborative planning method and device for multiple tasks
CN109600186B (en) Clock synchronization method and device
US9037694B2 (en) Method and system for determining the geographic location of a network block
CN103580939A (en) Method and device for detecting abnormal messages based on account number attributes
WO2019081816A1 (en) Anonymity system for goods delivery
CN109635573A (en) System, method, apparatus, electronic equipment and the medium of data distribution formula encryption and decryption
TWI706362B (en) Data processing method, device and server based on blockchain
CN113489583B (en) Data processing method and device in multi-party privacy intersection and electronic equipment
CN106776785B (en) Data writing method and device and data processing system
EP3920464A1 (en) Method for storing transaction that represents asset transfer to distributed network and program for the same
US20200202356A1 (en) Blockchain-based information processing method and apparatus, and device
CN111934854B (en) Data determining method and device, storage medium and electronic device
CN106789147B (en) Flow analysis method and device
US11188523B1 (en) Distributed ledger object router for transactions, contracts and data
US20230004578A1 (en) Distributed Ledger Object Router Using Nested Time Signals
CN106412018B (en) Message pushing method and device
CN107291712B (en) Data generation method and device
CN113283830A (en) Waybill information sequence generation method, waybill information sequence generation device, waybill information sequence generation equipment and computer readable medium
EP3933638A1 (en) Consensus method for a distributed database
JP2012212227A (en) Event processing system, and event processing method and event processing program used for the same

Legal Events

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