CN104253743A - Directional transmission method for multiple messages and implementation system for directional transmission method - Google Patents
Directional transmission method for multiple messages and implementation system for directional transmission method Download PDFInfo
- Publication number
- CN104253743A CN104253743A CN201410473577.4A CN201410473577A CN104253743A CN 104253743 A CN104253743 A CN 104253743A CN 201410473577 A CN201410473577 A CN 201410473577A CN 104253743 A CN104253743 A CN 104253743A
- Authority
- CN
- China
- Prior art keywords
- message
- numbering
- receiver
- port
- mapping table
- 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.)
- Withdrawn
Links
Landscapes
- Information Transfer Between Computers (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a directional transmission method for multiple messages and an implementation system for the directional transmission method. The directional transmission method comprises the following steps: setting a message type as number+message content, and meanwhile, seeking whether a corresponding message receiver having a mapping relation with the number exists in a mapping table or not through the number; when the message receiver exists, showing that a receiving party of a message is the message receiver, and at the time, as the number identical with that of a message response port which corresponds to the message receiver exists in the message, triggering the message response port to be opened, and sending the message into the message receiver. According to the method, the message receivers which correspond to the messages do not need to be added one by one to a message transmitter, message transmission is performed through the corresponding message response ports after the messages are ensured to be transmitted to the correct message receivers only by the messages, and thus, the correct directional transmission of multiple messages is realized.
Description
Technical field
The invention belongs to field of data transmission, particularly a kind of many message directive sending method and realize the system of the method.
Background technology
At present, common message processing mode sends as note, meeting instant messaging, mail etc., usually in the face of the message directional transmissions of one-to-many, message sender is difficult to send message to multiple message receiver simultaneously, and ensure that message sink object is correct, when multiple message carries out directive sending, message sender will add message receiver one by one, fine to the hardware requirement of message sender like this, can not ensure that message sink object is correct.
In order to realize multiple message directive sending, be generally between each message receiver and message sender and build independent communication port, as application number " 201410281910.1 ", denomination of invention is " a kind of meeting instant communicating system and its implementation ", the method sends client by instant message and sets up ditch circulation passage by sending the request of communication with described server of instant message, and the instant message of predefine rule is sent to described server of instant message; Described server of instant message receives client by transmission request of linking up with described instant message and sets up ditch circulation passage, and according to instant message predefine rule, extremely described for instant message push instant message is received client; Described instant message receives client and receives instant message and carry out display translation.Present invention achieves instant message in meeting to send client and instant message and receive communication between the point-to-point and multiple spot of client; Like this for when there is multiple instant message reception client, although establish different communication channels, appoint and so cannot ensure that message sink client is correct.
As can be seen here, how to ensure that message sink client correctly seems particularly important.
Summary of the invention
Technical problem solved by the invention is to provide a kind of when guaranteeing that message sink client is correct, sends many message directive sending method of different messages content to multiple message sink client simultaneously.
The technical solution realizing the object of the invention is: a kind of many message directive sending method, and the method comprises the following steps:
Steps A, arrange a message sender and several message receivers, described each message receiver has a different message response port, and the response condition of described message response port is open when there being the message meeting this port;
Step B, build mapping table between message receiver and numbering, in this mapping table, the corresponding numbering of each message receiver;
The type of message that step C, setup message transmitter send is message numbering+message content;
Step D, message listener is set, all message that monitoring information transmitter sends, and all message numberings are extracted, search in the mapping table and whether there is the numbering identical with message numbering, if exist, perform step e, otherwise, this message is return and sends feedback information to message sender;
Step e, determine between message and message receiver corresponding relation by numbering identical with message numbering in mapping table after trigger corresponding message receiver message response port open, through message response port, message is sent in corresponding message receiver.
Further preferred version, in the present invention's many message directive sending method, three numerals of what described message receiver was corresponding be numbered 001-999.
Further preferred version, in the present invention's many message directive sending method, fashionable when there being new message receiver to add, for this message receiver arranges message response port, and this message receiver and numbering are added in mapping table.
Further preferred version, in the present invention's many message directive sending method, type of message inspection is also comprised between step C and step D, when message sender initiates a message, first carry out type of message inspection, when type of message is incorrect, then direct this message is back to message sender, and send the feedback message of " type of message mistake ", when type of message is correct, then perform step D.
Simultaneously, in order to realize above-mentioned many message directive sending method, the present invention also provides a kind of structure simply to realize system, a message sender and several message receivers, described each message receiver has a different message response port, the response condition of described message response port is open when there being the message meeting this port, and described type of message is message numbering+message content;
A mapping table, for the mapping relations between storing message receiver and numbering;
A message listener, comprises the numbering extraction module, numbering matching module and the port trigger module that connect successively;
Described numbering extraction module is for extracting the message numbering comprised in message, numbering matching module is used for being mated with numbering in mapping table by the message numbering in message, thus the corresponding relation obtained between message and message receiver, port trigger module, triggers corresponding message echo port according to the matching result of matching module and opens.
The present invention compared with prior art, its remarkable advantage: type of message is set to numbering+message content by the present invention, search in mapping table by numbering the message receiver whether existing and there are with this numbering mapping relations simultaneously, when there is this message receiver, then show that the recipient of this message is for this message receiver, now owing to there is the identical numbering of the message response port corresponding with this message receiver in message, trigger this message response port to open, message is sent in this message receiver, the method adds message receiver corresponding to message one by one without the need to message sender, and guarantee that message carries out transmission of messages through corresponding message response port after needing the correct message receiver sent only by message, achieve the correct directive sending of many message like this.
Below in conjunction with accompanying drawing, the present invention is described in further detail.
Accompanying drawing explanation
Fig. 1 is the present invention's many message directive sending method flow diagram.
Embodiment
As shown in Figure 1, a kind of many message directive sending method, is characterized in that, comprise the following steps:
Steps A, arrange a message sender and several message receivers, described each message receiver has a different message response port, and the response condition of described message response port is open when there being the message meeting this port;
Step B, build mapping table between message receiver and numbering, in this mapping table, the corresponding numbering of each message receiver, three numerals of what message receiver was corresponding be numbered 001-999;
The type of message that step C, setup message transmitter send is message numbering+message content;
Step D, when message sender initiates a message, first carry out type of message inspection, when type of message is not message numbering+message content, then direct this message is back to message sender, and send the feedback message of " type of message mistake ", when type of message meets, perform step e;
Step e, message listener is set, all message that monitoring information transmitter sends, and all message numberings are extracted, search in the mapping table and whether there is the numbering identical with message numbering, if exist, perform step F, otherwise, this message is return and sends feedback information to message sender;
Step F, determine between message and message receiver corresponding relation by numbering identical with message numbering in mapping table after trigger corresponding message receiver message response port open, through message response port, message is sent in corresponding message receiver.
A kind of system realizing many message directive sending method, comprise a message sender and several message receivers, described each message receiver has a different message response port, the response condition of described message response port is open when there being the message meeting this port, and described type of message is message numbering+message content;
A mapping table, for the mapping relations between storing message receiver and numbering;
A message listener, comprises the numbering extraction module, numbering matching module and the port trigger module that connect successively;
Described numbering extraction module is for extracting the message numbering comprised in message, numbering matching module is used for being mated with numbering in mapping table by the message numbering in message, thus the corresponding relation obtained between message and message receiver, port trigger module, triggers corresponding message echo port according to the matching result of matching module and opens.
embodiment 1
?configure a message sender and five message receivers, the mapping table between five message receivers and numbering is as shown in table 1:
Table 1
The message that message sender is sent out is " 007 "+" remaining time in annual leave is 7 days ", type of message is correct, message numbering in this message is " 007 ", do not find the numbering identical with " 007 " in Table 1, then represent that the reception object of this message is not above-mentioned five message receivers, this message is back to message sender, and corresponding message receiver is not found in prompting.
embodiment 2
Configuration information in the present embodiment is all identical with embodiment 1, and message sender sends three message simultaneously: " 007 "+" remaining time in annual leave is 7 days "; " 090 "+" remaining time in annual leave is 4 days "; " 069 "+" remaining time in annual leave is 2 days "; The message numbering extracted in above-mentioned three message is respectively " 007 ", " 090 ", " 069 ", finds the message receiver R20 that the numbering identical with message numbering " 090 " is corresponding, the message receiver R17 that the numbering identical with message numbering " 069 " is corresponding in Table 1; The response condition of the message response port of message receiver R20 meets, and message response port is opened, and " 090 "+" remaining time in annual leave is 4 days " is sent to message receiver R20 through this message response port; The response condition of the message response port of message receiver R17 meets, and message response port is opened, and " 069 "+" remaining time in annual leave is 2 days " is sent to message receiver R17 through this message response port;
Owing to not finding the numbering identical with message numbering " 007 " in Table 1, then represent that the reception object of this message is not above-mentioned five message receivers, this message is back to message sender, and corresponding message receiver is not found in prompting.
Claims (7)
1. the directive sending of message a more than method, is characterized in that, comprise the following steps:
Steps A, arrange a message sender and several message receivers, described each message receiver has a different message response port, and the response condition of described message response port is open when there being the message meeting this port;
Step B, build mapping table between message receiver and numbering, in this mapping table, the corresponding numbering of each message receiver;
The type of message that step C, setup message transmitter send is message numbering+message content;
Step D, message listener is set, all message that monitoring information transmitter sends, and all message numberings are extracted, search in the mapping table and whether there is the numbering identical with message numbering, if exist, perform step e, otherwise, this message is return and sends feedback information to message sender;
Step e, determine between message and message receiver corresponding relation by numbering identical with message numbering in mapping table after trigger corresponding message receiver message response port open, through message response port, message is sent in corresponding message receiver.
2. many message directive sending method according to claim 1, is characterized in that, three numerals of what described message receiver was corresponding be numbered 001-999.
3. many message directive sending method according to claim 1, is characterized in that, fashionable when there being new message receiver to add, and for this message receiver arranges message response port, and this message receiver and numbering is added in mapping table.
4. many message directive sending method according to claim 1, it is characterized in that, type of message inspection is also comprised between step C and step D, when message sender initiates a message, first carry out type of message inspection, when type of message is incorrect, then direct this message is back to message sender, and send the feedback message of " type of message mistake ", when type of message is correct, then perform step D.
5. realize a system for many message directive sending method described in claim 1, it is characterized in that, comprise
A message sender and several message receivers, described each message receiver has a different message response port, the response condition of described message response port is open when there being the message meeting this port, and described type of message is message numbering+message content;
A mapping table, for the mapping relations between storing message receiver and numbering;
A message listener, comprises the numbering extraction module, numbering matching module and the port trigger module that connect successively;
Described numbering extraction module is for extracting the message numbering comprised in message, numbering matching module is used for being mated with numbering in mapping table by the message numbering in message, thus the corresponding relation obtained between message and message receiver, port trigger module, triggers corresponding message echo port according to the matching result of matching module and opens.
6. the system of many message directive sending method according to claim 5, is characterized in that, three numerals of what described message receiver was corresponding be numbered 001-999.
7. the system of many message directive sending method according to claim 5, is characterized in that, when there being new message sink
Device adds fashionable, for this message receiver arranges message response port, and this message receiver and numbering is added in mapping table.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410473577.4A CN104253743A (en) | 2014-09-17 | 2014-09-17 | Directional transmission method for multiple messages and implementation system for directional transmission method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410473577.4A CN104253743A (en) | 2014-09-17 | 2014-09-17 | Directional transmission method for multiple messages and implementation system for directional transmission method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104253743A true CN104253743A (en) | 2014-12-31 |
Family
ID=52188301
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410473577.4A Withdrawn CN104253743A (en) | 2014-09-17 | 2014-09-17 | Directional transmission method for multiple messages and implementation system for directional transmission method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104253743A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109218171A (en) * | 2018-11-01 | 2019-01-15 | 苏州达家迎信息技术有限公司 | A kind of method for sending information, client, storage medium and equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101873259A (en) * | 2010-06-01 | 2010-10-27 | 华为技术有限公司 | SCTP (Stream Control Transmission Protocol) message identification method and device |
CN102566521A (en) * | 2010-12-23 | 2012-07-11 | 北京北方微电子基地设备工艺研究中心有限责任公司 | Factory automation system and automation message processing method and device |
CN102571635A (en) * | 2012-01-18 | 2012-07-11 | 浪潮(北京)电子信息产业有限公司 | Message transmission method and equipment |
US8812727B1 (en) * | 2011-06-23 | 2014-08-19 | Amazon Technologies, Inc. | System and method for distributed load balancing with distributed direct server return |
-
2014
- 2014-09-17 CN CN201410473577.4A patent/CN104253743A/en not_active Withdrawn
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101873259A (en) * | 2010-06-01 | 2010-10-27 | 华为技术有限公司 | SCTP (Stream Control Transmission Protocol) message identification method and device |
CN102566521A (en) * | 2010-12-23 | 2012-07-11 | 北京北方微电子基地设备工艺研究中心有限责任公司 | Factory automation system and automation message processing method and device |
US8812727B1 (en) * | 2011-06-23 | 2014-08-19 | Amazon Technologies, Inc. | System and method for distributed load balancing with distributed direct server return |
CN102571635A (en) * | 2012-01-18 | 2012-07-11 | 浪潮(北京)电子信息产业有限公司 | Message transmission method and equipment |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109218171A (en) * | 2018-11-01 | 2019-01-15 | 苏州达家迎信息技术有限公司 | A kind of method for sending information, client, storage medium and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10432741B2 (en) | Systems and methods for guaranteeing delivery of pushed data to remote clients | |
CN105260250B (en) | A kind of dual system communication device of linux system and android system | |
CN104144106B (en) | A kind of message forwarding method, Apparatus and system | |
CN102546914A (en) | Automatic login system based on smart phone and control method | |
EP2899956A1 (en) | Terminal pairing method, terminal and system | |
CN104796327B (en) | Message receival method and device, method for message transmission and system | |
EP3157195A1 (en) | Communication protocol testing method, and tested device and testing platform thereof | |
EP3160172A1 (en) | Method and device for short messaging service intercommunication | |
EP3242494B1 (en) | Nfc-based communication device and method | |
CN104270302B (en) | The transmission system of online order and transfer approach | |
US20140357198A1 (en) | System and method for locating a mobile device | |
WO2019127134A1 (en) | Data transmission method and virtual switch | |
CN108718243A (en) | A kind of group technology of user terminal, Conference server, conference system | |
WO2014190738A1 (en) | System and method for locating a mobile device | |
CN104796495A (en) | Message pushing method and system | |
KR20170052002A (en) | System and method for chaining virtualized network funtion | |
CN106713351A (en) | Secure communication method and device based on serial server | |
CN104253743A (en) | Directional transmission method for multiple messages and implementation system for directional transmission method | |
CN109510821B (en) | Message processing method and device | |
CN103973592B (en) | Cell processing method and processing device | |
US9826371B2 (en) | SMS message management | |
CN113966602A (en) | Distributed storage of blocks in a blockchain | |
CN116055403A (en) | Message data transmission method, device and server | |
US20150244511A1 (en) | Duplex services residing in a messaging bus | |
CN101162995B (en) | Communication system and communication method of chaos safety information internet transmission |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20141231 |
|
WW01 | Invention patent application withdrawn after publication |