CN105657000A - Message transmission method and device - Google Patents

Message transmission method and device Download PDF

Info

Publication number
CN105657000A
CN105657000A CN201510997618.4A CN201510997618A CN105657000A CN 105657000 A CN105657000 A CN 105657000A CN 201510997618 A CN201510997618 A CN 201510997618A CN 105657000 A CN105657000 A CN 105657000A
Authority
CN
China
Prior art keywords
message
client terminal
network
message packets
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510997618.4A
Other languages
Chinese (zh)
Inventor
郭军
袁研根
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510997618.4A priority Critical patent/CN105657000A/en
Publication of CN105657000A publication Critical patent/CN105657000A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • 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/21Monitoring or handling of messages
    • H04L51/226Delivery according to priorities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a message transmission method and device. The method comprises following steps: when a message data packet in a message queue is failed to be pushed to a client, placing the message data packet in the message queue again; when a connection request sent by a client is obtained, taking out the message data packet from the message queue; and pushing the message data packet to the client. Through the technical solution provided by the invention, the problem of occupying resources and bandwidths resulted from pushing messages repeatedly by a server when the terminal of the client is in off-line state for relatively long time is avoided; and the wastes of the processing resources and the bandwidth of the server are effectively reduced.

Description

Message transfer method and device
Technical field
The present invention relates to communication technical field, in particular to a kind of message transfer method and device.
Background technology
Client terminal (Client) refers to corresponding with server, for client provides the application program of local service. Except some only application program at local runtime, generally it is arranged in common terminal, it is necessary to work in coordination operation with server.
When server sends new message to client terminal, normally adopt the mode of propelling movement (push), also it is exactly that server is initiatively to client push message, but the network state of client terminal place terminal due to the change of environment also can dynamic change, such as, server is when to client push message, the network state change of client terminal place terminal, it is in suspension state, cannot normally receive, now, server is normally at set intervals just again by message push once, but client terminal place terminal may be in suspension state in a long time always, waste process resource and the bandwidth of server.
Summary of the invention
In view of the above problems, propose the present invention to provide a kind of message transfer method and the device that overcome the problems referred to above or solve or slow down the problems referred to above at least in part, in the propelling movement process realizing message data, effectively reduce the process resource of server and taking of bandwidth.
According to an aspect of the present invention, it provides a kind of message transfer method, described method comprises:
When by the message packets of message queue to client push failure, described message packets is reentered into message queue;
When getting the connection request that described client terminal sends, from described message queue, take out message packets, the message packets of taking-up is pushed to described client terminal.
Can selection of land, described connection request comprise described client terminal access communications network network type mark;
Correspondingly, described the message packets of taking-up is pushed to described client terminal, specifically comprises:
Judging whether the network of communication that described client terminal accesses changes compared with pushing before unsuccessfully according to described network type mark, if not changing, then the message packets of taking-up being pushed to described client terminal.
Can selection of land, described according to described network type mark judge whether the network of communication that described client terminal accesses changes compared with pushing before unsuccessfully, specifically comprise:
Judge that whether described network type mark is identical with the type identification that prestores;
If identical, then assert that the network of communication that described client terminal accesses does not change;
If not identical, then assert the network of communication change that described client terminal accesses, and described network type is identified as the type identification that prestores.
Can selection of land, described according to described network type mark judge whether the network of communication that described client terminal accesses changes compared with pushing before unsuccessfully after, described method also comprises:
If change, then search mapping relation according to described network type mark, obtain the network of communication corresponding with described network type mark, the message packets of taking-up is pushed to described client terminal by searching the network of communication of acquisition.
Can selection of land, described by the message packets of message queue to client push failure time, before described message packets is reentered into message queue, described method also comprises:
The message packets of message queue is pushed to client terminal, when not receiving the determination character that described client terminal returns within the default time, assert to described client push message failure.
Can selection of land, described message packets comprises: type of message and/or the time stamp;
Correspondingly, described from described message queue, take out message packets, specifically comprise:
From described message queue, message packets is taken out according to the type of message in described message packets and/or time stamp.
According to another aspect of the present invention, it provides a kind of information transfer device, described device comprises:
Processing unit, is suitable for, when by the message packets of message queue to client push failure, described message packets is reentered into message queue;
Push unit, be suitable for from described message queue, taking out message packets when getting the connection request that described client terminal sends, the message packets of taking-up being pushed to described client terminal.
Can selection of land, described connection request comprise described client terminal access communications network network type mark;
Correspondingly, described propelling movement unit, specifically comprises:
Judge module, be suitable for judging whether the network of communication that described client terminal accesses changes compared with pushing before unsuccessfully according to described network type mark;
Pushing module, is suitable for, when the network of communication that the judged result of described judgement module is the access of described client terminal does not change compared with pushing before unsuccessfully, the message packets of taking-up is pushed to described client terminal.
Can selection of land, described judgement module, specifically be suitable for judging that whether described network type mark is identical with the type identification that prestores, if it is identical, then assert that the network of communication that described client terminal accesses does not change, if not identical, then assert the network of communication change that described client terminal accesses, and described network type is identified as the type identification that prestores.
Can selection of land, described pushing module, also be suitable for when the network of communication that the judged result of described judgement module is the access of described client terminal changes compared with pushing before unsuccessfully, mapping relation is searched according to described network type mark, obtain the network of communication corresponding with described network type mark, the message packets of taking-up is pushed to described client terminal by searching the network of communication of acquisition.
Can selection of land, described propelling movement unit, also be suitable for when by the message packets of message queue to client push failure, before described message packets is reentered into message queue, the message packets of message queue is pushed to client terminal, when not receiving the determination character that described client terminal returns within the default time, assert to described client push message failure.
Can selection of land, described message packets comprises: type of message and/or the time stamp;
Correspondingly, described propelling movement unit, is specifically suitable for taking out message packets according to the type of message in described message packets and/or time stamp from described message queue.
The useful effect of the present invention is:
The message transfer method that the present invention proposes and device, by, when by the message packets of message queue to client push failure, being reentered into message queue by described message packets; When getting the connection request that described client terminal sends, message packets is taken out from described message queue, the message packets of taking-up is pushed to described client terminal, avoid when client terminal place terminal is in suspension state in a long time always, server repeats taking of resource that message push causes and bandwidth, and then in message data-pushing process, effectively reduce the waste of the process resource to server and bandwidth.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to the technique means of the present invention can be better understood, and can be implemented according to the content of specification sheets, and in order to above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become clear for those of ordinary skill in the art and understand. Accompanying drawing is only for illustrating the object of preferred implementation, and does not think limitation of the present invention. And in whole accompanying drawing, represent identical parts with identical reference symbol. In the accompanying drawings:
Fig. 1 diagrammatically illustrates the schematic flow sheet of the message transfer method of one embodiment of the invention;
Fig. 2 diagrammatically illustrates the schematic flow sheet of the message transfer method of another embodiment of the present invention;
Fig. 3 diagrammatically illustrates the segmentation schematic flow sheet of step S22 in the message transfer method of another embodiment of the present invention;
Fig. 4 diagrammatically illustrates the schematic flow sheet of the message transfer method of another embodiment of the present invention;
Fig. 5 diagrammatically illustrates the structural representation of the information transfer device of one embodiment of the invention.
Embodiment
Being described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish. It is exemplary below by the embodiment being described with reference to the drawings, only for explaining the present invention, and limitation of the present invention can not be interpreted as.
It can be appreciated that unless expressly stated, odd number form " " used herein, " one ", " described " and " being somebody's turn to do " also can comprise plural form to those skilled in the art of the present technique. Should be further understood that, the wording " comprising " used in the specification sheets of the present invention refers to there is described feature, integer, step, operation, element and/or assembly, but does not get rid of and exist or add other features one or more, integer, step, operation, element, assembly and/or their group.
It can be appreciated that unless otherwise defined, all terms used herein (comprise technical term and scientific terminology) to those skilled in the art of the present technique, have the meaning identical with the general understanding of the those of ordinary skill in art of the present invention. It should be further understood that those terms of definition in such as general dictionary, it should it is understood to that there is the meaning consistent with the meaning in the context of prior art, and unless by specific definitions, otherwise can not explain by idealized or too formal implication.
Fig. 1 diagrammatically illustrates the schematic flow sheet of the message transfer method of one embodiment of the invention;
With reference to Fig. 1, the message transfer method of the embodiment of the present invention specifically comprises the following steps:
S11, by the message packets of message queue to client push failure time, described message packets is reentered into message queue.
It should be noted that, the message packets in the present embodiment is drawn together but is not limited to instant communication information data, general communication message data etc. Accordingly, message queue refers to for depositing described instant communication information data and the queue of general communication message data.
Concrete, instant communication information specifies the ID receiving this instant communication information. Instant communication information can be the instant communication information sent from the good friend place terminal of this user, or the instant communication information that the member place terminal in this user place work group or discussion group sends. The form of this instant communication information can be word message, image information, speech message or video message etc., receives by the instant communication server in instant messaging. General communication message refers to the general PUSH message or system PUSH message etc. of client terminal.
In this step, service end by the message packets of message queue after client push, if determining to push unsuccessfully, then described message packets is reentered into message queue, server no longer repeats to this message packets of client push, during to avoid client terminal place terminal to be in suspension state in a long time always, cause taking server resource and bandwidth.
Will be understood that, realization is determined to push and is unsuccessfully comprised multiple implementation, as received the reception failure response message of client feedback, or, the reception not receiving client feedback in predetermined time period successfully responds message etc., those skilled in the art need to arrange according to practical application, and this embodiment of the present invention is not done concrete restriction.
S12, get described client terminal send connection request time, from described message queue, take out message packets, the message packets of taking-up pushed to described client terminal.
In actual applications, when getting the connection request that described client terminal sends, then to the message packets of described client push before again taking out from described message queue, the message packets of taking-up is pushed and is again pushed to described client terminal.
In a specific embodiment, as user enters parking lot, the local time that the network signal such as vault or elevator is more weak, the network state change of client terminal place terminal, it is in suspension state, cannot normally receive the message packets that service end pushes, now, server is not at set intervals just again by message push once, until when client terminal reconnects to network, client terminal initiatively can send connection request to service end, when service end gets the connection request that described client terminal sends, message packets is taken out again from described message queue, and the message packets of taking-up is pushed to described client terminal.
The message transfer method that the embodiment of the present invention proposes, by, when by the message packets of message queue to client push failure, being reentered into message queue by described message packets; When getting the connection request that described client terminal sends, message packets is taken out from described message queue, the message packets of taking-up is pushed to described client terminal, avoid when client terminal place terminal is in suspension state in a long time always, server repeats taking of resource that message push causes and bandwidth, and then in message data-pushing process, effectively reduce the waste of the process resource to server and bandwidth.
Fig. 2 diagrammatically illustrates the schematic flow sheet of the message transfer method of another embodiment of the present invention;
With reference to Fig. 2, the message transfer method of the embodiment of the present invention specifically comprises the following steps:
S21, by the message packets of message queue to client push failure time, described message packets is reentered into message queue.
Wherein, connection request comprises the network type mark of described client terminal access communications network.
The step S11 of the enforcement mode shown in step S21 and Fig. 1 is identical, does not repeat them here.
S22, get described client terminal send connection request time, message packets is taken out from described message queue, judge whether the network of communication that described client terminal accesses changes compared with pushing before unsuccessfully according to described network type mark, if not changing, then the message packets of taking-up is pushed to described client terminal.
It should be noted that, the network type of client terminal access communications network mainly contains multiple, and such as wifi, net etc., wherein, net network type comprises network type as concrete in 2G, 3G, 4G etc. Concrete, wifi, net network all supports long connection.
In actual applications, when cell phone network type is wifi, net, the network link between client terminal with service end is connected and connects for long, and the message packets of taking-up directly can be pushed to described client terminal by service end.
Concrete, according to the difference of the network type of client terminal access communications network, service end connects also different to the network link of client push message. Therefore, when getting the connection request that client terminal sends, the network type mark of the client terminal access communications network that needs comprise according to connection request determines whether the network of communication that described client terminal accesses changes compared with pushing before unsuccessfully, if not changing, and the network of communication of client terminal access is with when pushing that unsuccessfully front corresponding network type is wifi or net, then the message packets of taking-up directly can be pushed to described client terminal by service end.
The embodiment of the present invention, by the network type mark obtained in the connection request that sends from client terminal, judge whether the network of communication that described client terminal accesses changes compared with pushing before unsuccessfully, and when not changing before and after the network of communication confirming client terminal access, directly the message packets of taking-up is pushed to described client terminal. During to avoid the network of communication when client terminal access to change, due in time to the mode transmitting message packets, or the message that the data layout of message packets is modified and cause transmits unsuccessfully, to guarantee the normal transmission of message packets.
In an alternate embodiment of the present invention where, as shown in Figure 3, identifying according to described network type in step S22 judges whether the network of communication that described client terminal accesses changes compared with pushing before unsuccessfully, specifically comprises the following steps:
S220, obtain described network type mark;
S221, whether mark is identical with the type identification that prestores to judge described network type, if identical, performs step S222, if not identical, then performs step S223;
S222, assert that the network of communication that described client terminal accesses does not change;
S223, the network of communication assert described client terminal and access change, and described network type is identified as the type identification that prestores.
It should be noted that, described in prestore type identification, for the last time carry out network insertion time, the network type mark carried in the connection request that client terminal sends.
In the embodiment of the present invention, especially by judging that whether described network type mark is identical with the type identification that prestores, if the network type mark of current access is identical with the type identification that prestores, then assert that the network of communication that described client terminal accesses does not change, if the network type mark of current access is different from the type identification that prestores, assert the network of communication change that described client terminal accesses, and described network type is identified as the new type identification that prestores, and the type identification that prestores before replacing it.And then the accuracy that the network of communication ensureing client terminal access differentiates.
In an alternate embodiment of the present invention where, after identifying according to described network type in step S22 judges whether the network of communication that described client terminal accesses changes compared with pushing before unsuccessfully, described method also comprises unshowned step S23 in the following drawings:
S23, when the network of communication that described client terminal accesses changes compared with pushing before unsuccessfully, mapping relation is searched according to described network type mark, obtain the network of communication corresponding with described network type mark, the message packets of taking-up is pushed to described client terminal by searching the network of communication of acquisition.
It should be noted that, the described pass that maps is the corresponding relation recorded between network type mark and network of communication pre-set.
The embodiment of the present invention, by the network type mark obtained in the connection request that sends from client terminal, judge whether the network of communication that described client terminal accesses changes compared with pushing before unsuccessfully, and when changing before and after the network of communication confirming client terminal access, mapping relation is searched according to described network type mark, obtain the network of communication corresponding with described network type mark, the message packets of taking-up is pushed to described client terminal by searching the network of communication of acquisition. Further avoid when the network of communication of client terminal access changes, due in time to the mode transmitting message packets, or the message that the data layout of message packets is modified and cause transmits unsuccessfully, to guarantee the normal transmission of message packets.
Fig. 4 diagrammatically illustrates the schematic flow sheet of the message transfer method of another embodiment of the present invention;
With reference to Fig. 4, the message transfer method of the embodiment of the present invention specifically comprises the following steps:
S41, message packets by message queue push to client terminal, when not receiving the determination character that described client terminal returns within the default time, assert to described client push message failure.
S42, by the message packets of message queue to client push failure time, described message packets is reentered into message queue.
Wherein, connection request comprises the network type mark of described client terminal access communications network.
S43, get described client terminal send connection request time, from described message queue, take out message packets, the message packets of taking-up pushed to described client terminal.
Step S11��the S12 of the enforcement mode shown in step S42��S43 and Fig. 1 is identical, does not repeat them here.
The embodiment of the present invention, when having the message packets needing to carry out message push when service end, the message packets of message queue is pushed to client terminal, and by confirming whether to receive the meal mode of the determination character that described client terminal returns within the default time, it is achieved to the identification of described terminal PUSH message failure. The embodiment of the present invention can accurately realize the identification to message push failure, and then ensures the normal transmission of message packets next time.
In an alternate embodiment of the present invention where, described message packets comprises: type of message and/or time stamp;
Correspondingly, described from described message queue, take out message packets, specifically comprise: from described message queue, take out message packets according to the type of message in described message packets and/or time stamp.
The embodiment of the present invention, when taking out message packets from described message queue, message packets is taken out according to the type of message in message packets and/or from described message queue, and then ensure that message packets corresponding to instant message data is preferentially pushed to client terminal again in the message packets that general PUSH message is corresponding, further, for the message packets of same priority, stab according to the time in message packets, preferentially choose time message packets relatively early again to push, to reduce the impact and loss client terminal respective user caused, ensure user benefit, promote Consumer's Experience.
For embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the embodiment of the present invention is not by the restriction of described sequence of operation, because according to the embodiment of the present invention, some step can adopt other orders or carry out simultaneously. Secondly, those skilled in the art also should know, the embodiment described in specification sheets all belongs to preferred embodiment, and involved action might not be that the embodiment of the present invention is necessary.
Fig. 5 diagrammatically illustrates the structural representation of the information transfer device of one embodiment of the invention.
With reference to Fig. 5, the information transfer device of the embodiment of the present invention specifically comprises processing unit 501 and pushes unit 502, wherein:
Described processing unit 501, is suitable for, when by the message packets of message queue to client push failure, described message packets is reentered into message queue;
Described propelling movement unit 502, is suitable for taking out message packets from described message queue when getting the connection request that described client terminal sends, the message packets of taking-up being pushed to described client terminal.
The information transfer device that the embodiment of the present invention proposes, by, when by the message packets of message queue to client push failure, being reentered into message queue by described message packets; When getting the connection request that described client terminal sends, message packets is taken out from described message queue, the message packets of taking-up is pushed to described client terminal, avoid when client terminal place terminal is in suspension state in a long time always, server repeats taking of resource that message push causes and bandwidth, and then in message data-pushing process, effectively reduce the waste of the process resource to server and bandwidth.
An optional embodiment according to the present invention, described connection request comprises the network type mark of described client terminal access communications network;
Correspondingly, described propelling movement unit, specifically comprises:
Judge module, be suitable for judging whether the network of communication that described client terminal accesses changes compared with pushing before unsuccessfully according to described network type mark;
Pushing module, is suitable for, when the network of communication that the judged result of described judgement module is the access of described client terminal does not change compared with pushing before unsuccessfully, the message packets of taking-up is pushed to described client terminal.
An optional embodiment according to the present invention, described judgement module, specifically be suitable for judging that whether described network type mark is identical with the type identification that prestores, if it is identical, then assert that the network of communication that described client terminal accesses does not change, if not identical, then assert the network of communication change that described client terminal accesses, and described network type is identified as the type identification that prestores.
An optional embodiment according to the present invention, described pushing module, also be suitable for when the network of communication that the judged result of described judgement module is the access of described client terminal changes compared with pushing before unsuccessfully, mapping relation is searched according to described network type mark, obtain the network of communication corresponding with described network type mark, the message packets of taking-up is pushed to described client terminal by searching the network of communication of acquisition.
An optional embodiment according to the present invention, described propelling movement unit, also be suitable for when by the message packets of message queue to client push failure, before described message packets is reentered into message queue, the message packets of message queue is pushed to client terminal, when not receiving the determination character that described client terminal returns within the default time, assert to the failure of described terminal PUSH message.
An optional embodiment according to the present invention, described message packets comprises: type of message and/or time stamp;
Correspondingly, described propelling movement unit, is specifically suitable for taking out message packets according to the type of message in described message packets and/or time stamp from described message queue.
For device embodiment, due to itself and embodiment of the method basic simlarity, so what describe is fairly simple, relevant part illustrates see the part of embodiment of the method.
In sum, the message transfer method that the embodiment of the present invention proposes and device, by, when by the message packets of message queue to client push failure, being reentered into message queue by described message packets; When getting the connection request that described client terminal sends, message packets is taken out from described message queue, the message packets of taking-up is pushed to described client terminal, avoid when client terminal place terminal is in suspension state in a long time always, server repeats taking of resource that message push causes and bandwidth, and then in message data-pushing process, effectively reduce the waste of the process resource to server and bandwidth.
It should be noted that it is not intrinsic relevant to any certain computer, virtual system or other equipment with formula at this algorithm provided. Various general-purpose system can also with use based on together with this example. According to description above, it is to construct the structure required by this type systematic is apparent. In addition, the present invention is not also for any certain programmed language. It should be appreciated that various programming language can be utilized to realize the content of the present invention described here, and the description done by language-specific above is the preferred forms in order to disclose the present invention.
In specification sheets mentioned herein, describe a large amount of detail. However, it is understood that embodiments of the invention can be put into practice when not having these details. In some instances, it is not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, it is to be understood that, one or more in order to what simplify the present invention and help to understand in all respects of the present invention, above to, in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes. But, the method for the disclosure and device should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim. More properly say, as claim book reflect, inventive aspect is all features less than disclosed single embodiment above. Therefore, the claim book following embodiment is thus incorporated to this embodiment clearly, and wherein each claim itself is as the independent embodiment of the present invention.
Those skilled in the art it can be appreciated that the module in the equipment in embodiment can be carried out adaptively change and they are arranged in one or more equipment different from this embodiment. Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule block or subelement or subgroup part can be put them in addition. Except at least some in such feature and/or process or unit mutually repels, it is possible to adopt any combination all processes or the unit of all features disclosed in this specification sheets (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment to be combined.Unless expressly stated otherwise, each feature disclosed in this specification sheets (comprising adjoint claim, summary and accompanying drawing) can by providing alternative features that is identical, equivalent or similar object to replace.
In addition, the technician of this area can understand, although embodiments more described herein comprise in other embodiment some included feature instead of further feature, but the combination of the feature of different embodiment means to be within the scope of the present invention and forms different embodiments.
Each parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more treater, or realizes with their combination. It will be understood by one skilled in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize the some or all parts in web portal security test set according to embodiments of the present invention. Such as, the present invention can also be embodied as part or all the equipment for performing method as described herein or device program (computer program and computer program). The program of such the present invention of realization can store on a computer-readable medium, or can have the form of one or more signal. Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The above is only the part enforcement mode of the present invention; it is noted that for those skilled in the art, under the premise without departing from the principles of the invention; can also making some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.
The present invention discloses A1, a kind of message transfer method, comprising:
When by the message packets of message queue to client push failure, described message packets is reentered into message queue;
When getting the connection request that described client terminal sends, from described message queue, take out message packets, the message packets of taking-up is pushed to described client terminal.
A2, method as described in A1, described connection request comprises the network type mark of described client terminal access communications network;
Correspondingly, described the message packets of taking-up is pushed to described client terminal, specifically comprises:
Judging whether the network of communication that described client terminal accesses changes compared with pushing before unsuccessfully according to described network type mark, if not changing, then the message packets of taking-up being pushed to described client terminal.
A3, as power A2 as described in method, described according to described network type mark judge whether the network of communication that described client terminal accesses changes compared with pushing before unsuccessfully, specifically comprise:
Judge that whether described network type mark is identical with the type identification that prestores;
If identical, then assert that the network of communication that described client terminal accesses does not change;
If not identical, then assert the network of communication change that described client terminal accesses, and described network type is identified as the type identification that prestores.
A4, method as according to any one of A2��A3, described judge whether the network of communication that described client terminal accesses changes compared with pushing before unsuccessfully according to described network type mark after, described method also comprises:
If change, then search mapping relation according to described network type mark, obtain the network of communication corresponding with described network type mark, the message packets of taking-up is pushed to described client terminal by searching the network of communication of acquisition.
A5, method as according to any one of A1��A4, described when by the message packets of message queue to client push failure, before described message packets is reentered into message queue, described method also comprises:
The message packets of message queue is pushed to client terminal, when not receiving the determination character that described client terminal returns within the default time, assert to described client push message failure.
A6, method as according to any one of A1��A5, described message packets comprises: type of message and/or time stamp;
Correspondingly, described from described message queue, take out message packets, specifically comprise:
From described message queue, message packets is taken out according to the type of message in described message packets and/or time stamp.
B7, a kind of information transfer device, comprising:
Processing unit, is suitable for, when by the message packets of message queue to client push failure, described message packets is reentered into message queue;
Push unit, be suitable for from described message queue, taking out message packets when getting the connection request that described client terminal sends, the message packets of taking-up being pushed to described client terminal.
B8, device as described in B7, described connection request comprises the network type mark of described client terminal access communications network;
Correspondingly, described propelling movement unit, specifically comprises:
Judge module, be suitable for judging whether the network of communication that described client terminal accesses changes compared with pushing before unsuccessfully according to described network type mark;
Pushing module, is suitable for, when the network of communication that the judged result of described judgement module is the access of described client terminal does not change compared with pushing before unsuccessfully, the message packets of taking-up is pushed to described client terminal.
B9, device as described in B8, described judgement module, specifically be suitable for judging that whether described network type mark is identical with the type identification that prestores, if it is identical, then assert that the network of communication that described client terminal accesses does not change, if not identical, then assert the network of communication change that described client terminal accesses, and described network type is identified as the type identification that prestores.
B10, device as according to any one of B8��B9, described pushing module, also be suitable for when the network of communication that the judged result of described judgement module is the access of described client terminal changes compared with pushing before unsuccessfully, mapping relation is searched according to described network type mark, obtain the network of communication corresponding with described network type mark, the message packets of taking-up is pushed to described client terminal by searching the network of communication of acquisition.
B11, device as according to any one of B7��B10, described propelling movement unit, also be suitable for when by the message packets of message queue to client push failure, before described message packets is reentered into message queue, the message packets of message queue is pushed to client terminal, when not receiving the determination character that described client terminal returns within the default time, assert to described client push message failure.
B12, device as according to any one of B7��B11, described message packets comprises: type of message and/or time stamp;
Correspondingly, described propelling movement unit, is specifically suitable for taking out message packets according to the type of message in described message packets and/or time stamp from described message queue.

Claims (10)

1. a message transfer method, comprising:
When by the message packets of message queue to client push failure, described message packets is reentered into message queue;
When getting the connection request that described client terminal sends, from described message queue, take out message packets, the message packets of taking-up is pushed to described client terminal.
2. the method for claim 1, described connection request comprises the network type mark of described client terminal access communications network;
Correspondingly, described the message packets of taking-up is pushed to described client terminal, specifically comprises:
Judging whether the network of communication that described client terminal accesses changes compared with pushing before unsuccessfully according to described network type mark, if not changing, then the message packets of taking-up being pushed to described client terminal.
3. method as claimed in claim 2, described mark according to described network type judges whether the network of communication that described client terminal accesses changes compared with pushing before unsuccessfully, specifically comprises:
Judge that whether described network type mark is identical with the type identification that prestores;
If identical, then assert that the network of communication that described client terminal accesses does not change;
If not identical, then assert the network of communication change that described client terminal accesses, and described network type is identified as the type identification that prestores.
4. method as according to any one of claim 2��3, described judge whether the network of communication that described client terminal accesses changes compared with pushing before unsuccessfully according to described network type mark after, described method also comprises:
If change, then search mapping relation according to described network type mark, obtain the network of communication corresponding with described network type mark, the message packets of taking-up is pushed to described client terminal by searching the network of communication of acquisition.
5. method as according to any one of Claims 1 to 4, described when by the message packets of message queue to client push failure, before described message packets is reentered into message queue, described method also comprises:
The message packets of message queue is pushed to client terminal, when not receiving the determination character that described client terminal returns within the default time, assert to described client push message failure.
6. method as according to any one of Claims 1 to 5, described message packets comprises: type of message and/or time stamp;
Correspondingly, described from described message queue, take out message packets, specifically comprise:
From described message queue, message packets is taken out according to the type of message in described message packets and/or time stamp.
7. an information transfer device, comprising:
Processing unit, is suitable for, when by the message packets of message queue to client push failure, described message packets is reentered into message queue;
Push unit, be suitable for from described message queue, taking out message packets when getting the connection request that described client terminal sends, the message packets of taking-up being pushed to described client terminal.
8. device as claimed in claim 7, described connection request comprises the network type mark of described client terminal access communications network;
Correspondingly, described propelling movement unit, specifically comprises:
Judge module, be suitable for judging whether the network of communication that described client terminal accesses changes compared with pushing before unsuccessfully according to described network type mark;
Pushing module, is suitable for, when the network of communication that the judged result of described judgement module is the access of described client terminal does not change compared with pushing before unsuccessfully, the message packets of taking-up is pushed to described client terminal.
9. device as claimed in claim 8, described judgement module, specifically be suitable for judging that whether described network type mark is identical with the type identification that prestores, if it is identical, then assert that the network of communication that described client terminal accesses does not change, if not identical, then assert the network of communication change that described client terminal accesses, and described network type is identified as the type identification that prestores.
10. device as according to any one of claim 8��9, described pushing module, also be suitable for when the network of communication that the judged result of described judgement module is the access of described client terminal changes compared with pushing before unsuccessfully, mapping relation is searched according to described network type mark, obtain the network of communication corresponding with described network type mark, the message packets of taking-up is pushed to described client terminal by searching the network of communication of acquisition.
CN201510997618.4A 2015-12-25 2015-12-25 Message transmission method and device Pending CN105657000A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510997618.4A CN105657000A (en) 2015-12-25 2015-12-25 Message transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510997618.4A CN105657000A (en) 2015-12-25 2015-12-25 Message transmission method and device

Publications (1)

Publication Number Publication Date
CN105657000A true CN105657000A (en) 2016-06-08

Family

ID=56477844

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510997618.4A Pending CN105657000A (en) 2015-12-25 2015-12-25 Message transmission method and device

Country Status (1)

Country Link
CN (1) CN105657000A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453635A (en) * 2016-11-21 2017-02-22 深圳广联赛讯有限公司 Message pushing method and device
CN107070782A (en) * 2017-05-02 2017-08-18 山东浪潮通软信息科技有限公司 A kind of Interface integration method, server and the system expansible based on message queue
CN108234578A (en) * 2016-12-22 2018-06-29 航天信息股份有限公司 A kind of method and device of push
CN108449410A (en) * 2018-03-19 2018-08-24 深信服科技股份有限公司 Information management method, system and relevant apparatus in a kind of cloud platform
CN108718286A (en) * 2018-05-24 2018-10-30 北京无线电测量研究所 Data communications method, system and storage medium
CN108900370A (en) * 2018-06-08 2018-11-27 努比亚技术有限公司 It is long to connect multiple overtime judgment method, device and computer readable storage medium
CN110166576A (en) * 2019-06-28 2019-08-23 飞天诚信科技股份有限公司 It is a kind of to realize that cloud speaker message mends the method and system pushed away
CN110233883A (en) * 2019-05-24 2019-09-13 中国平安人寿保险股份有限公司 Processing method, device, server and the storage medium of PUSH message
CN110740103A (en) * 2019-09-02 2020-01-31 深圳壹账通智能科技有限公司 Service request processing method and device, computer equipment and storage medium
CN112468386A (en) * 2020-11-17 2021-03-09 福建天泉教育科技有限公司 Method and terminal for processing repeated messages
CN116434601A (en) * 2023-04-25 2023-07-14 广州市单元信息科技有限公司 Intelligent processing method and system for message pushing

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101175325A (en) * 2007-10-19 2008-05-07 中兴通讯股份有限公司 Terminal switching method and device under multi-network mode
CN102347967A (en) * 2010-07-30 2012-02-08 华为技术有限公司 Method and device for cooperation between push equipment
CN103095732A (en) * 2013-03-01 2013-05-08 畅捷通信息技术股份有限公司 Information push system and information push method
US20140047065A1 (en) * 2011-05-16 2014-02-13 Sk Telecom Co., Ltd. System, device and method for providing push service using feedback message
CN104506416A (en) * 2014-12-17 2015-04-08 东软集团股份有限公司 Method, device and system for implementing stable message forwarding
CN104580346A (en) * 2014-09-11 2015-04-29 奇点新源国际技术开发(北京)有限公司 Data transmission method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101175325A (en) * 2007-10-19 2008-05-07 中兴通讯股份有限公司 Terminal switching method and device under multi-network mode
CN102347967A (en) * 2010-07-30 2012-02-08 华为技术有限公司 Method and device for cooperation between push equipment
US20140047065A1 (en) * 2011-05-16 2014-02-13 Sk Telecom Co., Ltd. System, device and method for providing push service using feedback message
CN103095732A (en) * 2013-03-01 2013-05-08 畅捷通信息技术股份有限公司 Information push system and information push method
CN104580346A (en) * 2014-09-11 2015-04-29 奇点新源国际技术开发(北京)有限公司 Data transmission method and device
CN104506416A (en) * 2014-12-17 2015-04-08 东软集团股份有限公司 Method, device and system for implementing stable message forwarding

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453635B (en) * 2016-11-21 2019-08-06 深圳广联赛讯有限公司 Information push method and device
CN106453635A (en) * 2016-11-21 2017-02-22 深圳广联赛讯有限公司 Message pushing method and device
CN108234578A (en) * 2016-12-22 2018-06-29 航天信息股份有限公司 A kind of method and device of push
CN107070782A (en) * 2017-05-02 2017-08-18 山东浪潮通软信息科技有限公司 A kind of Interface integration method, server and the system expansible based on message queue
CN108449410A (en) * 2018-03-19 2018-08-24 深信服科技股份有限公司 Information management method, system and relevant apparatus in a kind of cloud platform
CN108449410B (en) * 2018-03-19 2022-03-22 深信服科技股份有限公司 Message management method, system and related device in cloud platform
CN108718286A (en) * 2018-05-24 2018-10-30 北京无线电测量研究所 Data communications method, system and storage medium
CN108718286B (en) * 2018-05-24 2022-05-03 北京无线电测量研究所 Data communication method, system and storage medium
CN108900370B (en) * 2018-06-08 2021-12-17 努比亚技术有限公司 Long connection multiple timeout judging method, device and computer readable storage medium
CN108900370A (en) * 2018-06-08 2018-11-27 努比亚技术有限公司 It is long to connect multiple overtime judgment method, device and computer readable storage medium
CN110233883A (en) * 2019-05-24 2019-09-13 中国平安人寿保险股份有限公司 Processing method, device, server and the storage medium of PUSH message
CN110166576A (en) * 2019-06-28 2019-08-23 飞天诚信科技股份有限公司 It is a kind of to realize that cloud speaker message mends the method and system pushed away
CN110166576B (en) * 2019-06-28 2022-07-01 飞天诚信科技股份有限公司 Method and system for realizing message complementary pushing of cloud sound box
CN110740103A (en) * 2019-09-02 2020-01-31 深圳壹账通智能科技有限公司 Service request processing method and device, computer equipment and storage medium
CN112468386A (en) * 2020-11-17 2021-03-09 福建天泉教育科技有限公司 Method and terminal for processing repeated messages
CN116434601A (en) * 2023-04-25 2023-07-14 广州市单元信息科技有限公司 Intelligent processing method and system for message pushing
CN116434601B (en) * 2023-04-25 2023-12-29 广州市单元信息科技有限公司 Intelligent processing method and system for message pushing

Similar Documents

Publication Publication Date Title
CN105657000A (en) Message transmission method and device
CN102291430B (en) Method for processing allocation information of Internet of things, Internet of things platform and system
CN111399756B (en) Data storage method, data downloading method and device
CN103534988B (en) Publish and subscribe messaging method and apparatus
EP2871809A1 (en) Message processing method, device and system for internet of things
EP2787742A1 (en) Method and system for transmitting network video
CN101594376B (en) Method and corresponding device for registering CIM provider to CIMOM
CN110071876A (en) A kind of data transmission method based on block chain, device and electronic equipment
CN105391811A (en) DNS (domain name resolution) method, access method for application server, and terminal
CN103136342A (en) Searching method, system and searching server of application programs (APP)
CN109669787B (en) Data transmission method and device, storage medium and electronic equipment
CN103701876A (en) Method and device based on shared network resources
CN106464745A (en) Dns server, client and data synchronization method
CN101388039B (en) Response message executing method and device
CN104079623A (en) Method and system for controlling multilevel cloud storage synchrony
RU2665240C2 (en) Method and device for page insertion
CN105577480A (en) Monitoring method and device of network connection performances
EP2760178A1 (en) Method, apparatus and system for obtaining object
CN104301423A (en) Heartbeat message sending method, device and system
CN114125024B (en) Audio transmission method, electronic device and readable storage medium
CN104079368B (en) A kind of the test data transmission method and server of application software
CN115378855A (en) Data packet testing method and device, communication device and storage medium
CN112702441B (en) Container-based access data processing method, device, system and storage medium
JP5332488B2 (en) Map-based communication of multiple functional entities
CN107872493A (en) A kind of information processing method, terminal and server

Legal Events

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

Application publication date: 20160608