CN103475569B - The store and forward mode of a kind of request and response message and device - Google Patents

The store and forward mode of a kind of request and response message and device Download PDF

Info

Publication number
CN103475569B
CN103475569B CN201310407675.3A CN201310407675A CN103475569B CN 103475569 B CN103475569 B CN 103475569B CN 201310407675 A CN201310407675 A CN 201310407675A CN 103475569 B CN103475569 B CN 103475569B
Authority
CN
China
Prior art keywords
message
request
solicited message
solicited
operating system
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
CN201310407675.3A
Other languages
Chinese (zh)
Other versions
CN103475569A (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 Si Tech Information Technology Co Ltd
Original Assignee
Beijing Si Tech Information 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 Si Tech Information Technology Co Ltd filed Critical Beijing Si Tech Information Technology Co Ltd
Priority to CN201310407675.3A priority Critical patent/CN103475569B/en
Publication of CN103475569A publication Critical patent/CN103475569A/en
Application granted granted Critical
Publication of CN103475569B publication Critical patent/CN103475569B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to store and forward mode and the device of a kind of request and response message, comprise request end to operating system transmission request information, operating system receives solicited message and is stored in doubly linked list; The memory location of solicited message in doubly linked list is stored in the message header of solicited message by operating system; Solicited message is sent to service end by operating system, and service end preserves the message header of solicited message, and service end resolution request message also generates response message according to the solicited message after resolving; The message header of solicited message is stored in the message header of response message by service end, and response message is sent to operating system; Operating system obtains the memory location of solicited message according to the message header of response message, from doubly linked list, obtain solicited message and obtain the facility information of request end according to solicited message, response message is sent to request end, solicited message is deleted from doubly linked list.The present invention allows request and response message dynamically to increase and decrease in operating system allowed band.

Description

The store and forward mode of a kind of request and response message and device
Technical field
The present invention relates to a kind of data communication system, particularly a kind of request and the store and forward mode of response message and device.
Background technology
Bi-directional data chained list: a kind of form of chained list, by defining special linked list element, reaches data O (1) complexity of searching, delete, adding of chained list.
Storage forwarding: be first stored in storage medium after system acceptance message, then different according to the destination of message, then message is sent to different other systems.Require storage medium possess certain retractility to adapt to different message size, require simultaneously the location of message, insertion, deletion efficiency high as much as possible.
Summary of the invention
Technical problem to be solved by this invention is to provide and a kind ofly realizes the high efficiency that message stores forwards, the store and forward mode of high dynamic request and response message and device.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: the store and forward mode of a kind of request and response message, comprises the following steps:
Step 1: request end, to operating system transmission request information, comprises the facility information of request end in described request information, operating system receives solicited message and is stored in doubly linked list by solicited message;
Step 2: the memory location of solicited message in doubly linked list is stored in the message header of solicited message by operating system;
Step 3: solicited message is sent to service end by operating system, service end preserves the message header of solicited message, service end resolution request message, and generates response message according to the solicited message after resolving;
Step 4: the message header of solicited message is stored in the message header of described response message by service end, and response message is sent to operating system;
Step 5: operating system receives response message, the memory location of solicited message is obtained according to the message header of response message, from doubly linked list, obtain solicited message and obtain the facility information of request end according to solicited message, response message is sent to request end, and solicited message is deleted from doubly linked list.
The invention has the beneficial effects as follows: the design that the present invention is based on special doubly linked list element, reaches the high efficiency of store-and-forward system, and can the length of dynamically adapting message, thus implementation efficiency and larger message stores repeater system.
On the basis of technique scheme, the present invention can also do following improvement.
Further, in described step 2, the memory location of solicited message is stored in the location field in message header.
Further, described step 4 is specially, and the content in the location field of the message header of solicited message is stored in the location field of the message header of response message by service end.
A storing and forwarding device for request and response message, comprises request end, operating system and service end;
Described request end, for operating system transmission request information, comprises the facility information of request end in described request information;
Described operating system, for receiving the solicited message of request end transmission and solicited message being stored in doubly linked list, solicited message is stored in the message header of solicited message in the memory location of doubly linked list, solicited message is sent to service end by operating system, receive response message, the memory location of solicited message is obtained according to the message header of response message, from doubly linked list, obtain solicited message and obtain the facility information of request end according to solicited message, response message is sent to request end, and solicited message is deleted from doubly linked list;
Described service end, for receiving the solicited message that operating system sends, preserve the message header of solicited message, resolution request message, and generate response message according to the solicited message after resolving, the message header of solicited message is stored in the message header of described response message, response message is sent to operating system.
Further, the memory location of described request information is specifically stored in the location field in message header.
Further, described service end, by the content in the location field of the message header of solicited message, is stored in the location field of the message header of response message.
Accompanying drawing explanation
Fig. 1 is the inventive method flow chart of steps;
Fig. 2 is apparatus of the present invention structure chart.
In accompanying drawing, the list of parts representated by each label is as follows:
1, request end, 2, operating system, 3, service end.
Embodiment
Be described principle of the present invention and feature below in conjunction with accompanying drawing, example, only for explaining the present invention, is not intended to limit scope of the present invention.
As shown in Figure 1, be the inventive method flow chart of steps, Fig. 2 is apparatus of the present invention structure chart.
Embodiment 1
A store and forward mode for request and response message, comprises the following steps:
Step 1: request end, to operating system transmission request information, comprises the facility information of request end in described request information, operating system receives solicited message and is stored in doubly linked list by solicited message;
Step 2: the memory location of solicited message in doubly linked list is stored in the message header of solicited message by operating system;
Step 3: solicited message is sent to service end by operating system, service end preserves the message header of solicited message, service end resolution request message, and generates response message according to the solicited message after resolving;
Step 4: the message header of solicited message is stored in the message header of described response message by service end, and response message is sent to operating system;
Step 5: operating system receives response message, the memory location of solicited message is obtained according to the message header of response message, from doubly linked list, obtain solicited message and obtain the facility information of request end according to solicited message, response message is sent to request end, and solicited message is deleted from doubly linked list.
In described step 2, the memory location of solicited message is stored in the location field in message header.
Described step 4 is specially, and the content in the location field of the message header of solicited message is stored in the location field of the message header of response message by service end.
A storing and forwarding device for request and response message, comprises request end 1, operating system 2 and service end 3;
Described request end 1, for operating system 2 transmission request information, comprises the facility information of request end in described request information;
Described operating system 2, for receiving the solicited message of request end 1 transmission and solicited message being stored in doubly linked list, solicited message is stored in the message header of solicited message in the memory location of doubly linked list, solicited message is sent to service end 3 by operating system, receive response message, the memory location of solicited message is obtained according to the message header of response message, from doubly linked list, obtain solicited message and obtain the facility information of request end according to solicited message, response message is sent to request end, and solicited message is deleted from doubly linked list;
Described service end 3, for receiving the solicited message that operating system 2 sends, preserve the message header of solicited message, resolution request message, and generate response message according to the solicited message after resolving, the message header of solicited message is stored in the message header of described response message, response message is sent to operating system.
The memory location of described request information is specifically stored in the location field in message header.
Described service end, by the content in the location field of the message header of solicited message, is stored in the location field of the message header of response message.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. a store and forward mode for request and response message, is characterized in that, comprise the following steps:
Step 1: request end, to operating system transmission request information, comprises the facility information of request end in described request information, operating system receives solicited message and is stored in doubly linked list by solicited message;
Step 2: the memory location of solicited message in doubly linked list is stored in the message header of solicited message by operating system;
Step 3: solicited message is sent to service end by operating system, service end preserves the message header of solicited message, service end resolution request message, and generates response message according to the solicited message after resolving;
Step 4: the message header of solicited message is stored in the message header of described response message by service end, and response message is sent to operating system;
Step 5: operating system receives response message, the memory location of solicited message is obtained according to the message header of response message, from doubly linked list, obtain solicited message and obtain the facility information of request end according to solicited message, response message is sent to request end, and solicited message is deleted from doubly linked list.
2. the store and forward mode of request according to claim 1 and response message, is characterized in that: in described step 2, the memory location of solicited message is stored in the location field in message header.
3. the store and forward mode of request according to claim 2 and response message, is characterized in that: described step 4 is specially, and the content in the location field of the message header of solicited message is stored in the location field of the message header of response message by service end.
4. a storing and forwarding device for request and response message, is characterized in that: comprise request end (1), operating system (2) and service end (3);
Described request end (1), for operating system (2) transmission request information, comprises the facility information of request end in described request information;
Described operating system (2), for receiving solicited message that request end (1) sends and solicited message being stored in doubly linked list, solicited message is stored in the message header of solicited message in the memory location of doubly linked list, solicited message is sent to service end (3) by operating system, receive response message, the memory location of solicited message is obtained according to the message header of response message, from doubly linked list, obtain solicited message and obtain the facility information of request end according to solicited message, response message is sent to request end, and solicited message is deleted from doubly linked list,
Described service end (3), for receiving the solicited message that operating system (2) sends, preserve the message header of solicited message, resolution request message, and generate response message according to the solicited message after resolving, the message header of solicited message is stored in the message header of described response message, response message is sent to operating system.
5. the storing and forwarding device of request according to claim 4 and response message, is characterized in that: the memory location of described request information is specifically stored in the location field in message header.
6. the storing and forwarding device of request according to claim 4 and response message, is characterized in that: described service end, by the content in the location field of the message header of solicited message, is stored in the location field of the message header of response message.
CN201310407675.3A 2013-09-09 2013-09-09 The store and forward mode of a kind of request and response message and device Active CN103475569B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310407675.3A CN103475569B (en) 2013-09-09 2013-09-09 The store and forward mode of a kind of request and response message and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310407675.3A CN103475569B (en) 2013-09-09 2013-09-09 The store and forward mode of a kind of request and response message and device

Publications (2)

Publication Number Publication Date
CN103475569A CN103475569A (en) 2013-12-25
CN103475569B true CN103475569B (en) 2016-02-10

Family

ID=49800276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310407675.3A Active CN103475569B (en) 2013-09-09 2013-09-09 The store and forward mode of a kind of request and response message and device

Country Status (1)

Country Link
CN (1) CN103475569B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113312187B (en) * 2021-06-02 2023-06-16 福建天晴数码有限公司 Message multithreading consumption order confirmation method and device based on doubly linked list

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594353A (en) * 2009-04-15 2009-12-02 卡斯柯信号有限公司 The means of communication of general communication platform of dispatching command system
CN101635682A (en) * 2009-08-05 2010-01-27 中兴通讯股份有限公司 Storage management method and storage management system
CN101984718A (en) * 2010-10-19 2011-03-09 中兴通讯股份有限公司 Signaling transmission method and user equipment
CN102376102A (en) * 2010-08-20 2012-03-14 中国移动通信有限公司 Electronic information detection method, device and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8145786B2 (en) * 2008-10-06 2012-03-27 International Business Machines Corporation Efficient buffer utilization in a computer network-based messaging system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594353A (en) * 2009-04-15 2009-12-02 卡斯柯信号有限公司 The means of communication of general communication platform of dispatching command system
CN101635682A (en) * 2009-08-05 2010-01-27 中兴通讯股份有限公司 Storage management method and storage management system
CN102376102A (en) * 2010-08-20 2012-03-14 中国移动通信有限公司 Electronic information detection method, device and system
CN101984718A (en) * 2010-10-19 2011-03-09 中兴通讯股份有限公司 Signaling transmission method and user equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于IP 传感器的设备远程监测管理软件设计与实现;曾文鹏等;《机械与电子》;20040325;全文 *

Also Published As

Publication number Publication date
CN103475569A (en) 2013-12-25

Similar Documents

Publication Publication Date Title
CN101877604B (en) Method and system for transmitting files
CN101098310B (en) Multi-file transmission system and method
CN101510838B (en) Method for implementing perdurable data queue
CN106055698A (en) Data migration method, agent node and database instance
GB2589211A (en) Methods and systems of using remote subscriber identification modules at device
CN105184540A (en) Intelligent express delivery cabinet system control method
CA2710036A1 (en) A method and system for the delivery of large content assets to a mobile device over a mobile network
CN104092717A (en) Message processing method and system, message destination end device and distributed message system
CN105843966A (en) Data processing system and method
CN103475569B (en) The store and forward mode of a kind of request and response message and device
CN102740377A (en) Method and equipment for forwarding data and base station
CN101754421A (en) File transmission method based on Bluetooth transmission protocol, system and mobile terminal
CN102299861B (en) A kind of message flux control method
CN103826276A (en) Data transmission method, base station, management control center and system
CN105204776B (en) Data processing method and device
CN102164152A (en) Method and system for remotely processing files
CN104239776A (en) SSO (single sign on) method of multi-control memory system and multi-control memory system
CN101572871A (en) Multimedia message issuing method, device and system
CN104683288A (en) Message continuous transmission method and device
CN103500129A (en) Back-up object sending and back-up method, production end, backup-for-disaster-recovery end and system
CN101895470B (en) Flow-control information transfer method and device
CN101505155B (en) Apparatus and method for implementing prefix code structure
CN103401892A (en) HTTP POST based data upload accelerating method and server
JP2013192124A (en) Data storage method of data store server in mail system
CN102411612A (en) Method and system for synchronizing information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant