Nothing Special   »   [go: up one dir, main page]

CN103929353B - The treating method and apparatus of instant message - Google Patents

The treating method and apparatus of instant message Download PDF

Info

Publication number
CN103929353B
CN103929353B CN201410171968.0A CN201410171968A CN103929353B CN 103929353 B CN103929353 B CN 103929353B CN 201410171968 A CN201410171968 A CN 201410171968A CN 103929353 B CN103929353 B CN 103929353B
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.)
Active
Application number
CN201410171968.0A
Other languages
Chinese (zh)
Other versions
CN103929353A (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 present invention proposes a kind for the treatment of method and apparatus of instant message.This method includes:The instant message that the sender of instant messaging sends is received, instant message includes message pair, and message is to the identification information including sender, the identification information of the recipient of instant messaging and instant message type;An identification information is distributed for instant message, the identification information of instant message is in message to unique in scope and incremented by successively according to the time of reception;The instant message in scope is handled according to the identification information pair message of instant message.The processing method of the instant message of the embodiment of the present invention, ensure that accuracy, and treatment effeciency is high.

Description

The treating method and apparatus of instant message
Technical field
The present invention relates to communication technical field, more particularly to a kind for the treatment of method and apparatus of instant message.
Background technology
In instantaneous communication system, duplicate removal, sequence and the synchronization of instant message are an insoluble problems.At present, In correlation technique, duplicate removal, sequence and the synchronous precise time for depending on instant message of instant message.If instant message Precise time it is identical, then it is assumed that instant message occurs in that repetition.Similarly, when carrying out the sequence of instant message also according to essence The true time is realized.When carrying out instant message synchronous (statistics for not reading instant message is calculated), instantaneous communication system is only recorded Under do not read the time range of instant message, i.e., first precise time and the last item for not reading instant message does not read instant message Precise time, traversal instant message is to obtain the instant message in the range of two correct times as not reading instant message.
The defect that correlation technique is present is that duplicate removal, sequence and the synchronization of instant message depend on the essence of instant message True time, the client no matter precise time is instantaneous communication system is distributed or server-assignment, instant message route During (i.e. instant message is from client is sent via server to receiving client) all computer system clock without Method strict conformance, so that difference occurs in the result of the duplicate removal of instant message, sequence and synchronization.In addition, traversal instant message It is low as instant message, efficiency is not read using the instant message in the range of two correct times of acquisition, instant message positioning is not read It is not accurate.
The content of the invention
It is contemplated that at least solving one of technical problem in correlation technique to a certain extent.
Therefore, first purpose of the present invention is to propose a kind of processing method of instant message.This method ensure that 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, including:Reception is The instant message that Shi Tongxin sender sends, the instant message includes message pair, and the message including described to sending The identification information of person, the identification information of the recipient of the instant messaging and instant message type;Distributed for the instant message One identification information, the identification information of the instant message is in the message to unique in scope and passed successively according to the reception time Increase;Message is handled the instant message in scope according to the identification information pair of the instant message.
The processing method of the instant message of the embodiment of the present invention, in a message in scope, being each instant message point With unique and incremented by successively to an infinite identification information so that identification information of the message to each instant message in scope Be not in repetition, so that when handling each instant message in scope message, accuracy is ensure that, and Treatment effeciency is high.
To achieve these goals, the processing unit of the instant message of second aspect of the present invention embodiment, including:Receive mould Block, for receiving the instant message that the sender of instant messaging sends, the instant message includes message pair, the message pair Identification information including the sender, the identification information of the recipient of the instant messaging and instant message type;First point With module, for distributing an identification information for the instant message, the identification information of the instant message is in the message pair In the range of it is unique and incremented by successively according to the time of reception;Processing module, for the identification information pair institute according to the instant message Message is stated to handle the instant message in scope.
The processing unit of the instant message of the embodiment of the present invention, in a message in scope, being each instant message point With unique and incremented by successively to an infinite identification information so that identification information of the message to each instant message in scope Be not in repetition, so that when handling each instant message in scope message, accuracy is ensure that, and Treatment effeciency is high.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Substantially and be readily appreciated that, 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 the design sketch of the processing method of instant message according to embodiments 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 according to another embodiment of the invention.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar module or the module with same or like function.Below with reference to attached The embodiment of figure description is exemplary, is only used for explaining the present invention, and is not considered as limiting the invention.On the contrary, this All changes in the range of spirit and intension that the embodiment of invention includes falling into attached claims, modification and equivalent Thing.
In the description of the invention, it is to be understood that term " first ", " second " etc. be only used for describe purpose, without It is understood that to indicate or imply relative importance.In addition, in the description of the invention, unless otherwise indicated, the implication of " multiple " It is two or more.
Any process described otherwise above or method description are construed as in flow chart or herein, represent to include Module, fragment or the portion of the code of one or more executable instructions for the step of realizing specific logical function or process Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not be by shown or discussion suitable Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Below with reference to the accompanying drawings the processing method of instant message according to embodiments of the present invention is described.
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 the instant message includes:
S101, receives the instant message that the sender of instant messaging sends, and instant message includes message pair, and message is to bag Include the identification information, the identification information of the recipient of instant messaging and instant message type of sender.
Wherein, the server of instant messaging receives the instant message that the sender of instant messaging sends, each by service The instant message of device all includes message pair.
S102, is that instant message distributes an identification information, the identification information of instant message is in message to unique in scope And it is incremented by successively according to the time of reception.
Wherein, server is that instant message distributes an identification information, and identification information can be ID.In a message to model In enclosing, the identification information of instant message is started with some radix (such as 1), incremented by successively.Such as, be sequentially received one of server Message is msg0, msg1 and msg2 to the instant message in scope, if the ID that the ID that radix is 1, msg0 is 1, msg1 is 2, msg2 ID is 3, and the message is exactly 4,5,6 etc. to the ID of instant message later in scope, incremented by successively to infinite.
S103, is handled the instant message in scope according to the identification information pair message of instant message.
For example, processing may include following at least one:Message is ranked up to the instant message in scope;Acquisition is not read Instant message;Store message instant message corresponding to the maximum identification information in scope etc..Will be in subsequent embodiment in detail Describe each processing procedure.
The processing method of the instant message of the embodiment of the present invention, in a message in scope, being each instant message point With unique and incremented by successively to an infinite identification information so that identification information of the message to each instant message in scope Be not in repetition, so that when handling each instant message in scope message, accuracy is ensure that, 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.
Instant message may have repetition transmission during transmission due to the influence of network environment, in order to Ensure the uniqueness of instant message, it is necessary to handle such case.Specifically, as shown in Fig. 2 the processing of the instant message Method includes:
S201, receives the instant message that the sender of instant messaging sends, and instant message includes message pair, and message is to bag Include the identification information, the identification information of the recipient of instant messaging and instant message type of sender.
Wherein, the server of instant messaging receives the instant message that the sender of instant messaging sends, each by service The instant message of device all includes message pair.
In one embodiment of the invention, generation time is also included in instant message.
S202, according to message pair and generation time, it is determined whether existing first message, first message is and instant message Instant message with identical message pair and generation time.
Specifically, the generation time of instant message is the time after client is edited by, instant message Generation time is different from the transmission time and receives the time, with uniqueness.
S203, it is determined that during existing first message, abandoning instant message.
S204, is that instant message distributes an identification information, the mark of instant message when it is determined that first message is not present Information is in message to unique in scope and incremented by successively according to the time of reception.
S205, is handled the instant message in scope according to the identification information pair message of instant message.
The processing method of the instant message of the embodiment of the present invention, carries out duplicate removal to instant message according to generation time, can protect The uniqueness of instant message is demonstrate,proved, so as to be further ensured that accuracy in follow-up processing.
Wherein, the instant message in scope is handled according to the identification information pair message of instant message (i.e. S103 or S205 following at least one) is specifically included:Message is ranked up to the instant message in scope;Instant message is not read in acquisition; Store message instant message corresponding to the maximum identification information in scope etc..Fig. 3 (a) (b) (c) is according to embodiments of the present invention Instant message processing method design sketch, 3 describe in detail respectively below in conjunction with the accompanying drawings.
In one embodiment of the invention, according to the identification information pair message of instant message to the instant message in scope Progress processing is specifically included:The instant message in scope is ranked up according to the identification information pair message of instant message, and pressed Corresponding instant message is forwarded to corresponding recipient according to ranking results.Specifically, it is that basis disappears immediately as shown in Fig. 3 (a) After the identification information pair message of breath is ranked up to the instant message in scope, the design sketch showed in client, root According to the method for the embodiment of the present invention, the instant message showed in client ensure that uniqueness.
In another embodiment of the present invention, according to the identification information pair message of instant message to disappearing immediately in scope Breath progress processing is specifically included:First, the first identification information is obtained, the first identification information is that the last item that participant is read disappears The identification information of breath, participant is sender or recipient, and determines the corresponding message of participant to allocated in scope Maximum identification information;Then, by the difference of maximum identification information and the first identification information, the unread Messages for the side of being determined to participate in Amount;Then, by the unread message of the instant message side of being determined to participate in the range of first, the first scope, which is that participant is corresponding, to disappear Cease each identification information between the identification information of centering first and maximum identification information.For example, server record participant is read The identification information of the last item message be peer-last-msg-ID, corresponding message maximum is identified to allocated in scope Information is max-msg-ID, if server judges peer-last-msg-ID and max-msg-ID, max-msg-ID Difference with peer-last-msg-ID is the unread message quantity of participant, and between max-msg-ID and peer-last- Each identification information between msg-ID is respectively the identification information of each unread message, you can directly to know unread message Identification information, server can directly read corresponding unread message.Specifically, it is not reading for participant as shown in Fig. 3 (b) The design sketch that message is showed in client.
In yet another embodiment of the present invention, according to the identification information pair message of instant message to disappearing immediately in scope Breath progress processing is specifically included:Store the message instant message corresponding to the maximum identification information in scope;Join recently in displaying When being people, by the message instant message corresponding to the maximum identification information in scope, it is defined as message to corresponding nearest contact The last item instant message of people.Specifically, as shown in Fig. 3 (c), being message to the last item of corresponding nearest contact person i.e. When the design sketch that is showed in client of message.
In order to realize above-described embodiment, in one embodiment of the invention, the processing method of the instant message also includes (not shown):For message is to one Message Processing center of distribution and determines the identification information at Message Processing center, at message Reason center is used to distribute an identification information to the instant message in scope for message, and according to the identification information pair of instant message Message is handled the instant message in scope.Specifically, server is each message to one Message Processing center of distribution (Message Processing Center, MPC), allows the internal each instant message of message to pass through Message Processing center, leads to Message Processing center is crossed to realize the identification information distribution of instant message and handle.
Wherein, server can set multiple Message Processing centers, be that a mark letter is distributed at each Message Processing center Breath, in one embodiment of the invention, when instant message passes through server, server is that may know that each instant message pair The message answered is to corresponding Message Processing center.Specifically, in one embodiment of the invention, Message Processing center is determined Identification information, including:
The identification information at Message Processing center is calculated using equation below:
ID=(UIN1*UIN2) %N
Wherein, ID is the identification information at Message Processing center, and UIN1 represents sender's identification information and recipient's mark letter Minimum value in breath, UIN2 is the maximum in sender's identification information and recipient's identification information, and N is represented at " virtual " message The sum at reason center.
In practice, Message Processing center has point of " virtual " and " physics ", and virtual message processing center number is fixed, And physical message processing center can need to be increased and decreased according to actual dilatation, one is existed because number is not reciprocity therebetween Fixed mapping relations.
First, the identification information of virtual message processing center is calculated according to above-mentioned formula, then, is believed according to virtual identifying Breath and the mapping relations of physical label information, find the identification information of physical message processing center.For example, in virtual message processing The heart has 10000, it is respectively 0 that it, which is identified, 1,2,3 ... 9999, and physical message processing center only has 10, it identifies difference For 0,1,2,3 ... 9, then 1000 virtual message processing centers of each physical message processing center correspondence, be designated 0 physics The mark scope of the corresponding virtual message processing center in Message Processing center is 0-999, the like, the physics for being designated 9 disappears The corresponding virtual message processing center mark scope in breath center is 9000-9999.
In addition, in one embodiment of the invention, when instant type of message is many people's instant messagings, when calculating ID The mark of sender is set to 1.
The processing method of the instant message of the embodiment of the present invention, disappears immediately by the way that Message Processing center processing message is internal Breath, scalability and zmodem, the Message Processing center newly added are not only compatible with the original module of server, and complete Instant message duplicate removal, sequence, synchronization and pull the functions such as the last item message, remarkable benefit.
In one embodiment of the invention, it is that instant message distributes an identification information, including:From disappearing for prestoring The mark of at least one is obtained in breath identification database MID, and is distributed in the mark of at least one of acquisition for instant message One identification information, and after distributing, then obtain from the MID prestored the mark of at least one.For example, being deposited in MID Stored up processing message pair, and the last item instant message of the message pair identification information, such as ID be 10, when receive immediately Message and when needing to distribute an identification information for it, can get 11 from MID, 12 ..., 20, and as instant message Distribution one, after 10 ID are distributed, then from MID read 10 ID, such as 21,22 ..., 30, by that analogy.So do Benefit be 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 includes:Receiving module 110, the first distribute module 120 and processing Module 130.
Specifically, receiving module 110 is used to receive and wrapped in the instant message that the sender of instant messaging sends, instant message Message pair is included, message is to the identification information including sender, the identification information of the recipient of instant messaging and instant message type.
First distribute module 120 is used to distribute an identification information for instant message, and the identification information of instant message is disappearing Breath is to unique in scope and incremented by successively according to the time of reception.Wherein, identification information can be ID.In a message to scope Interior, the identification information of instant message is started with some radix (such as 1), incremented by successively.Such as, receiving module 110 is sequentially received One message is msg0, msg1 and msg2 to the instant message in scope, if radix is 1, the first distribute module 120 is distributed Identification information:The ID that the ID that msg0 ID is 1, msg1 is 2, msg2 is 3, and the message is to instant message later in scope ID is exactly 4,5,6 etc., incremented by successively to infinite.
Processing module 130 be used for according to the identification information pair message of instant message to the instant message in scope at Reason.For example, processing may include following at least one:Message is ranked up to the instant message in scope;Acquisition is not read immediately Message;Store message instant message corresponding to the maximum identification information in scope etc..To in detail it be described in subsequent embodiment Each processing procedure.
The processing unit of the instant message of the embodiment of the present invention, in a message in scope, being each instant message point With unique and incremented by successively to an infinite identification information so that identification information of the message to each instant message in scope Be not in repetition, so that when handling each instant message in scope message, accuracy is ensure that, 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 includes:Receiving module 110, the first distribute module 120, processing Module 130, determining module 140 and discard module 150.
Specifically, generation time is also included in instant message, determining module 140 is used to distribute a mark for instant message Know before information, according to message pair and generation time, it is determined whether existing first message, first message is that have with instant message There is the instant message of identical message pair and generation time.Discard module 150 is used for it is determined that during existing first message, discarding is When message.
More specifically, the generation time of instant message is the time after client is edited by, instant message Generation time be different from the transmission time and receive the time, with uniqueness.Therefore, determined in determining module 140 existing Instant message is abandoned during first message, an identification information is distributed for instant message when it is determined that first message is not present, can protect The uniqueness of instant message is demonstrate,proved, so as to be further ensured that accuracy in follow-up processing.
In one embodiment of the invention, processing module 130 specifically for:Offseted according to the identification information of instant message Breath is ranked up to the instant message in scope, and corresponding instant message is forwarded into corresponding reception according to ranking results Person.Specifically refer to embodiment of the method to be understood, will not be repeated here.
In another embodiment of the present invention, processing module 130 specifically for:Obtain the first identification information, the first mark Know the identification information that information is the last item message that participant is read, participant is sender or recipient, and determine ginseng With the corresponding message in side to allocated maximum identification information in scope, and by the difference of maximum identification information and the first identification information Value, the unread message quantity for the side of being determined to participate in, and by the instant message side of being determined to participate in the range of first do not read disappear Breath, the first scope is each mark letter between the corresponding identification information of message pair first of participant and maximum identification information Breath.Specifically refer to embodiment of the method to be understood, will not be repeated here.
In yet another embodiment of the present invention, processing module 130 specifically for:Message is stored to mark the maximum in scope Know the corresponding instant message of information, and when showing nearest contact person, message is corresponding to the maximum identification information in scope Instant message, is defined as the last item instant message of the message to corresponding nearest contact person.Specifically refer to embodiment of the method Understood, will not be repeated here.
Fig. 6 is the structured flowchart of the processing unit of the instant message according to another embodiment of the invention.
As shown in fig. 6, the processing unit 100 of instant message includes:Receiving module 110, the first distribute module 120, processing Module 130, determining module 140, the distribute module 160 of discard module 150 and second.
Specifically, the second distribute module 160 is used to be message to distributing a Message Processing center and determining Message Processing The identification information at center, Message Processing center is used to distribute the instant message in scope one identification information, and root for message The instant message in scope is handled according to the identification information pair message of instant message.Wherein, it is each message to distribution one Individual Message Processing center (Message Processing Center, MPC), each instant message for making message internal passes through Message Processing center, realizes that the identification information of instant message is distributed and handled by Message Processing center.
It is that an identification information is distributed at each Message Processing center, specifically wherein it is possible to set multiple Message Processing centers Ground, in one embodiment of the invention, determines the identification information at Message Processing center, including:
The identification information at Message Processing center is calculated using equation below:
ID=(UIN1*UIN2) %N
Wherein, ID is the identification information at Message Processing center, and UIN1 represents sender's identification information and recipient's mark letter Minimum value in breath, UIN2 is the maximum in sender's identification information and recipient's identification information, and N represents Message Processing center Sum.
In addition, in one embodiment of the invention, when instant type of message is many people's instant messagings, when calculating ID The mark of sender is set to 1.
The processing unit of the instant message of the embodiment of the present invention, disappears immediately by the way that Message Processing center processing message is internal Breath, scalability and zmodem, the Message Processing center newly added are not only compatible with the original module of server, and complete Instant message duplicate removal, sequence, synchronization and pull the functions such as the last item message, remarkable benefit.
In one embodiment of the invention, the first distribute module 120 specifically for:From the message identifier number prestored According to obtaining the mark of at least one in the MID of storehouse, and a mark is distributed for instant message in the mark of at least one of acquisition Information, and after distributing, then obtain from the MID prestored the mark of at least one.For example, storing processing in MID Message pair, and the last item instant message of the message pair identification information, such as ID be 10, when receive instant message and need When distributing an identification information for it, 11 can be got from MID, 12 ..., 20, and distribute one as instant message, After 10 ID are distributed, then from MID read 10 ID, such as 21,22 ..., 30, by that analogy.Advantage of this is that Reduce server stress.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, the software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal Discrete logic, the application specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means to combine specific features, structure, material or the spy that the embodiment or example are described Point is contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not Necessarily refer to identical embodiment or example.Moreover, specific features, structure, material or the feature of description can be any One or more embodiments or example in combine in an appropriate manner.
Although an embodiment of the present invention has been shown and described, it will be understood by those skilled in the art that:Not In the case of departing from the principle and objective of the present invention a variety of change, modification, replacement and modification can be carried out to these embodiments, this The scope of invention is limited by claim and its equivalent.

Claims (14)

1. a kind of processing method of instant message, it is characterised in that including:
The instant message that the sender of instant messaging sends is received, the instant message includes message pair, and the message is to bag The identification information, the identification information of the recipient of the instant messaging and instant message type of the sender is included, wherein, it is described Also include generation time in instant message;
Distribute an identification information for the instant message, the identification information of the instant message the message in scope only One and according to receive the time it is incremented by successively, wherein, it is described for the instant message distribute an identification information before, the side Method also includes:According to the message pair and generation time, it is determined whether existing first message, the first message be with it is described Instant message has the instant message of identical message pair and generation time;It is determined that during the existing first message, abandoning institute State instant message;
It is wherein described to distribute an identification information for the instant message, including:Be the message to distribution one Message Processing Center, the mark of at least one is obtained by the Message Processing center from the message identifier database MID prestored, and It is that the instant message distributes an identification information in the mark of at least one of acquisition, and after distributing, then from advance The mark of at least one is obtained in the MID of storage;Message is in scope according to the identification information pair of the instant message Instant message is handled.
2. according to the method described in claim 1, it is characterised in that described according to the identification information pair of the instant message Message is handled the instant message in scope, including:
Message is ranked up to the instant message in scope according to the identification information pair of the instant message, and according to sequence As a result corresponding instant message is forwarded to corresponding recipient.
3. according to the method described in claim 1, it is characterised in that described according to the identification information pair of the instant message Message is handled the instant message in scope, including:
The first identification information is obtained, first identification information is the identification information for the last item message that participant is read, institute It is the sender or recipient to state participant, and determines the corresponding message of the participant to allocated maximum in scope Identification information;
By the difference of the maximum identification information and the first identification information, it is defined as the unread message quantity of the participant;
Instant message in the range of first is defined as to the unread message of the participant, first scope is the participant Each identification information between first identification information described in corresponding message pair and the maximum identification information.
4. according to the method described in claim 1, it is characterised in that described according to the identification information pair of the instant message Message is handled the instant message in scope, including:
Store the message instant message corresponding to the maximum identification information in scope;
When showing nearest contact person, the message instant message corresponding to the maximum identification information in scope is defined as The last item instant message of the message to corresponding nearest contact person.
5. according to the method described in claim 1, it is characterised in that also include:
And the identification information at the Message Processing center is determined, the Message Processing center is used to be the message in scope The instant message distributes an identification information, and according to the identification information pair of the instant message message in scope Instant message is handled.
6. method according to claim 5, it is characterised in that the identification information at the determination Message Processing center, Including:
The identification information at the Message Processing center is calculated using equation below:
ID=(UIN1*UIN2) %N
Wherein, ID is the identification information at Message Processing center, and UIN1 is represented in sender's identification information and recipient's identification information Minimum value, UIN2 is the maximum in sender's identification information and recipient's identification information, and N represents the Message Processing center Sum.
7. method according to claim 6, it is characterised in that when the instant message type is many people's instant messagings, The mark of the sender is set to 1 when calculating the ID.
8. a kind of processing unit of instant message, it is characterised in that including:
Receiving module, for receiving the instant message that the sender of instant messaging sends, the instant message includes message pair, The message is to the identification information including the sender, the identification information of the recipient of the instant messaging and instant message class Type, wherein, generation time is also included in the instant message;
First distribute module, for distributing an identification information for the instant message, the identification information of the instant message exists The message to unique in scope and incremented by successively according to the time of reception, wherein, in addition to:Determining module, for be described Instant message is distributed before an identification information, according to the message pair and generation time, it is determined whether existing first message, The first message is the instant message for having identical message pair and generation time with the instant message;Discard module, is used for It is determined that during the existing first message, abandoning the instant message;Second distribute module, for be the message to distribution One Message Processing center;
First distribute module specifically for:By the Message Processing center from the message identifier database prestored The identification information of at least one is obtained in MID, and is the instant message in the identification information of at least one of the acquisition An identification information is distributed, and after distributing, then the mark of at least one is obtained from the MID prestored;
Processing module, for message described in the identification information pair according to the instant message to the instant message in scope at Reason.
9. device according to claim 8, it is characterised in that the processing module specifically for:
Message is ranked up to the instant message in scope according to the identification information pair of the instant message, and according to sequence As a result corresponding instant message is forwarded to corresponding recipient.
10. device according to claim 8, it is characterised in that the processing module specifically for:
The first identification information is obtained, first identification information is the identification information for the last item message that participant is read, institute It is the sender or recipient to state participant, and determines the corresponding message of the participant to allocated maximum in scope Identification information, and by the difference of the maximum identification information and the first identification information, it is defined as the unread message of the participant Quantity, and the instant message in the range of first is defined as to the unread message of the participant, first scope is described Each identification information described in the corresponding message pair of participant between the first identification information and the maximum identification information.
11. device according to claim 8, it is characterised in that the processing module specifically for:
The message instant message corresponding to the maximum identification information in scope is stored, and when showing nearest contact person, will be described The message instant message corresponding to the maximum identification information in scope, is defined as the message to corresponding nearest contact person most Latter bar instant message.
12. device according to claim 8, it is characterised in that also include:
Determine the identification information at the Message Processing center, it is the message to the institute in scope that the Message Processing center, which is used for, State instant message distribute an identification information, and according to the identification information pair of the instant message message in scope i.e. When message handled.
13. device according to claim 12, it is characterised in that the mark letter at the determination Message Processing center Breath, including:
The identification information at the Message Processing center is calculated using equation below:
ID=(UIN1*UIN2) %N
Wherein, ID is the identification information at Message Processing center, and UIN1 is represented in sender's identification information and recipient's identification information Minimum value, UIN2 is the maximum in sender's identification information and recipient's identification information, and N represents the Message Processing center Sum.
14. device according to claim 13, it is characterised in that when the instant message type is many people's instant messagings When, the mark of the sender is set to 1 when calculating the ID.
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 CN103929353A (en) 2014-07-16
CN103929353B true 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)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103929353B (en) * 2014-04-25 2017-07-25 百度在线网络技术(北京)有限公司 The treating method and apparatus of instant message
CN106657172A (en) * 2015-10-28 2017-05-10 北京金山安全软件有限公司 Method and device for realizing information push
CN106921554B (en) * 2015-12-24 2020-09-29 北京新媒传信科技有限公司 Message transmission 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
CN106656753B (en) * 2016-12-08 2020-02-21 北京五八信息技术有限公司 Method, device and terminal for sequencing IM (instant Messaging) historical messages
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

Citations (3)

* 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
CN102325015A (en) * 2011-07-19 2012-01-18 中兴通讯股份有限公司 Processing method of status reports, communication device and communication system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360278A (en) * 2008-09-17 2009-02-04 华为技术有限公司 Method, apparatus and system for instant message receiving and transmitting
CN102638416B (en) * 2012-03-27 2015-09-09 上海量明科技发展有限公司 The method of IM message, client and system is checked when multi-client logs in
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 (3)

* 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
CN102325015A (en) * 2011-07-19 2012-01-18 中兴通讯股份有限公司 Processing method of status reports, communication device and communication system

Also Published As

Publication number Publication date
WO2015161662A1 (en) 2015-10-29
CN103929353A (en) 2014-07-16

Similar Documents

Publication Publication Date Title
CN103929353B (en) The treating method and apparatus of instant message
US11765025B2 (en) Consistent hashing for network traffic dispatching
US11042358B2 (en) Secure computation system, secure computation method, secure computation apparatus, distribution information generation apparatus, and methods and programs therefor
CN103580939B (en) A kind of unexpected message detection method and equipment based on account attribute
CN110728376B (en) Federal learning method and device based on tree topology structure
CN105677648B (en) A kind of Combo discovering method and system based on label propagation algorithm
CN108615151B (en) Data processing method, block chain server and node equipment
EP4407923A3 (en) System and method of multi-round token distribution using a blockchain network
CN106815722A (en) Information processing method and device based on block chain
RU2017111038A (en) Cryptographic system implemented for the joint use of keys
CN108667717A (en) Block chain processing method, medium, device and computing device based on instant communication message record
CN104598551A (en) Data statistics method and device
CN106599725B (en) The randomization method for secret protection of diagram data publication
CN110235162A (en) The generation method of block catenary system data processing method and block
CN106650496A (en) Data processing method and device
CN109218058B (en) Method and system for acquiring OAM information and computer readable storage medium
CN105468699B (en) Duplicate removal data statistical approach and equipment
CN106487683A (en) A kind of processing method and processing device of message
EP4254215A3 (en) Hybrid cloud computing network management
CN107291746A (en) A kind of method and apparatus for storing and reading data
CN109657801A (en) Shunt method, device and the readable storage medium storing program for executing of recommender system
CN108833215A (en) Calculate method, the network equipment and the computer storage medium of aggregation network delay
CN108846671A (en) Safety on line method of commerce and system based on block chain
CN106953933A (en) A kind of information push method and device, electronic equipment
Kerenidis et al. Multi-party protocols, information complexity and privacy

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