CN109669787A - Data transmission method and device, storage medium, electronic equipment - Google Patents
Data transmission method and device, storage medium, electronic equipment Download PDFInfo
- Publication number
- CN109669787A CN109669787A CN201811479205.7A CN201811479205A CN109669787A CN 109669787 A CN109669787 A CN 109669787A CN 201811479205 A CN201811479205 A CN 201811479205A CN 109669787 A CN109669787 A CN 109669787A
- Authority
- CN
- China
- Prior art keywords
- business module
- module
- data
- subject identification
- business
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/543—User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
This disclosure relates to field of computer technology more particularly to a kind of data transmission method and device, storage medium, electronic equipment.This method may include: the instruction for responding the first business module and sending data, and the subject identification based on the transmission of the first business module creates the sending object of the first business module;Search whether there is reception object corresponding with subject identification in container from receiving;If it exists, the call back function for receiving the second business module corresponding to object is registered to sending object, so that the data that received first business module is sent are sent to the second business module according to call back function by sending object.The disclosure is when data are transmitted as the transmission in process, it does not need to transmit data by way of network transmission, but data are directly transmitted by the sending object of the call back function of the second business module of registration, data transfer path is simplified, the occupancy of network bandwidth is reduced and improves data transmission efficiency.
Description
Technical field
This disclosure relates to field of computer technology more particularly to a kind of data transmission method and device, storage medium, electronics
Equipment.
Background technique
In large-scale project system, generally according to the different functions in project system, project system is divided into more
A module.The type of module can be divided into two kinds, and one kind is business module, for being carried out according to the function of business module to data
Working process, and a kind of corresponding single function of a business module, another kind is communication module, between business module
Transmit data.I.e. project system is added communication module by the business module of different function and is assembled.Data in project system
Transmission process are as follows: after the completion of business module is by data mart modeling, next business mould is sent data to by communication module
Block.In other words, different business modules is just as workshop one by one, is responsible for the processing of different business data, and communication module
Just as the crawler belt of workshop transmission data.
In general, due to the difference of functional requirement, the limitation etc. of hardware resource can be to business module in actual deployment
Flexible assembling deployment is carried out with communication module, is deployed in the same process accordingly, it is possible to will appear multiple business modules
Phenomenon.Based on this, the sub-data transmission in project system is that data are transmitted (between the business module in i.e. same process in process
Data transmission) and process between data transmission (data transmission) between the business module of i.e. different processes.Currently, for into
Data transmission between data transmission in journey and process, the mode for being all made of transmitted data on network are transmitted, i.e. communication module
The data for sending the business module transmission of data are received, and data are dropped into network interface card by ICP/IP protocol, to pass through TCP/
IP agreement sends data to the business module for receiving data.
Obviously, in existing data transmission method, whether the business module for no matter transmitting data is in same process, i.e.,
Whether the data transmission between process or the data transmission in process, the mode for being all made of transmitted data on network transmit data.
Since the mode of transmitted data on network has the problem of path is complicated, network bandwidth occupancy is high, low efficiency, simplify
Data transfer path in process, reducing the occupancy of network bandwidth and improving efficiency of transmission is particularly important.
It should be noted that information is only used for reinforcing the reason to the background of the disclosure disclosed in above-mentioned background technology part
Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
The disclosure is designed to provide a kind of data transmission method and device, storage medium, electronic equipment, and then at least
Overcome the problems, such as that data transfer path is complicated in process, network bandwidth occupancy is high, low efficiency to a certain extent.
According to one aspect of the disclosure, a kind of data transmission method is provided, comprising:
The instruction that the first business module sends data is responded, the subject identification creation based on first business module transmission
The sending object of first business module;
Search whether there is reception object corresponding with the subject identification in container from receiving;
If it exists, the call back function of the second business module corresponding to the reception object is registered to the transmission pair
As so that the data that received first business module is sent are sent to institute according to the call back function by the sending object
State the second business module.
In a kind of exemplary embodiment of the disclosure, the subject identification wound based on first business module transmission
The sending object for building first business module includes:
Loading configuration file searches destination address corresponding with the subject identification and target side from the configuration file
Mouthful;
The sending object of first business module is created based on the destination address and the target port.
In a kind of exemplary embodiment of the disclosure, the method also includes:
The sending object of the subject identification and the call back function of registration second business module is stored to transmission
Container.
In a kind of exemplary embodiment of the disclosure, the method also includes:
Receive the subject identification of the second business module transmission and the call back function of second business module;
The reception object of second business module is created based on the call back function;
The subject identification and the reception object are stored to reception container.
In a kind of exemplary embodiment of the disclosure, first business module is to transmit the master by first interface
Inscribe the business module of mark;
Second business module is the business module that the subject identification and call back function are transmitted by second interface.
According to one aspect of the disclosure, a kind of data transmission device is provided, comprising:
First creation module sends the instruction of data for responding the first business module, is based on first business module
The subject identification of transmission creates the sending object of first business module;
Searching module, for searching whether there is reception object corresponding with the subject identification from reception container;
Registration module, for if it exists, the call back function of the second business module corresponding to the reception object to be registered
To the sending object, so that the sending object sent received first business module according to the call back function
Data are sent to second business module.
In a kind of exemplary embodiment of the disclosure, first creation module includes:
Searching unit is loaded, loading configuration file is used for, is searched from the configuration file corresponding with the subject identification
Destination address and target port;
Creating unit, for creating the transmission of first business module based on the destination address and the target port
Object.
In a kind of exemplary embodiment of the disclosure, described device further include:
Receiving module, for receive second business module transmission subject identification and second business module
Call back function;
Second creation module, for creating the reception object of second business module based on the call back function;
Memory module, for storing the subject identification and the reception object to reception container.
According to one aspect of the disclosure, a kind of computer readable storage medium is provided, computer program is stored thereon with,
The computer program realizes data transmission method described in above-mentioned any one when being executed by processor.
According to one aspect of the disclosure, a kind of electronic equipment is provided, comprising:
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor be configured to execute via the executable instruction is executed it is any one of above-mentioned described in
Data transmission method.
The data transmission method and device, storage medium, electronic equipment that a kind of example embodiment of the disclosure provides.Based on
The subject identification of one business module transmission creates the sending object of first business module;It searches whether to deposit from receiving in container
In reception object corresponding with the subject identification;If it exists, returning the second business module corresponding to the reception object
Letter of transfer number is registered to the sending object, so that the sending object is according to the call back function by received first business
The data that module is sent are sent to second business module.On the one hand, by searching whether exist and master in receiving container
Topic identifies corresponding reception object and judges to judge whether the first business module and the second business module belong to same process
It whether is data transmission in process, judgment step is simple, it is easy to accomplish;On the other hand, corresponding with subject identification if it exists
Object is received, i.e., when the first business module and the second business module belong to same process, by the readjustment letter of the second business module
Number is registered to the sending objects of the first business module, so that the sending object is according to the call back function by received described the
The data that one business module is sent are sent to second business module, compared with the prior art, are transmitted as in process in data
Transmission when, do not need to transmit data by way of network transmission, but directly by registering second business module
The sending object of call back function transmits data, simplifies data transfer path, reduces the occupancy of network bandwidth and improve
Data transmission efficiency, while also avoiding network time-consuming.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
It is described in detail its exemplary embodiment by referring to accompanying drawing, the above and other feature and advantage of the disclosure will become
It obtains more obvious.It should be evident that the accompanying drawings in the following description is only some embodiments of the present disclosure, it is common for this field
For technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.Attached
In figure:
Fig. 1 is a kind of flow chart of data transmission method of the disclosure;
Fig. 2 is the flow chart of the sending object of the first business module of creation provided in one exemplary embodiment of the disclosure;
Fig. 3 is the flow chart of the reception object of the second business module of creation provided in one exemplary embodiment of the disclosure;
Fig. 4 is a kind of block diagram of data transmission device of the disclosure;
Fig. 5 is the module diagram of the electronic equipment in one exemplary embodiment of the disclosure;
Fig. 6 is the program product schematic diagram in one exemplary embodiment of the disclosure.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be real in a variety of forms
It applies, and is not understood as limited to embodiment set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will be comprehensively and complete
It is whole, and the design of example embodiment is comprehensively communicated to those skilled in the art.Identical appended drawing reference indicates in figure
Same or similar part, thus repetition thereof will be omitted.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner
In example.In the following description, many details are provided to provide and fully understand to embodiment of the disclosure.However,
It will be appreciated by persons skilled in the art that can be with technical solution of the disclosure without one in the specific detail or more
It is more, or can be using other methods, constituent element, material, device, step etc..In other cases, it is not shown in detail or describes
Known features, method, apparatus, realization, material or operation are to avoid fuzzy all aspects of this disclosure.
Block diagram shown in the drawings is only functional entity, not necessarily must be corresponding with physically separate entity.
I.e., it is possible to realize these functional entitys using software form, or these are realized in the module of one or more softwares hardening
A part of functional entity or functional entity, or realized in heterogeneous networks and/or processor device and/or microcontroller device
These functional entitys.
A kind of data transmission method is disclosed in the present exemplary embodiment first, applied to the system including multiple processes,
Each process includes a communication module and at least one business module.Communication module in each process includes that a reception is held
Device and a transmission container.Wherein send transmission when container is used to store each business module transmission data in its corresponding process
Subject identification and creation sending object, receive container and be used to store each business module in its corresponding process and receive data
When the reception object of subject identification and creation that transmits.It, can also be with it should be noted that a business module can receive data
Data are sent, i.e., a business module can may be the business module for sending data to receive the business module of data.It needs
It is noted that the executing subject of the embodiment of the present invention can be the communication module in a process, the business mould in the process
There are there are data transmission between data transmission or the process and the business module of other processes between block.
As shown in Figure 1, this method may comprise steps of:
Step S110, the first business module of response sends the instruction of data, the master based on first business module transmission
Topic mark creates the sending object of first business module;
Step S120, search whether there is reception object corresponding with the subject identification from reception container;
Step S130, the call back function of the second business module corresponding to the reception object if it exists, is registered to institute
Sending object is stated, so that the data that the sending object sends received first business module according to the call back function
It is sent to second business module.
Data transmission method according to the present exemplary embodiment, on the one hand, by searching whether to deposit in receiving container
In reception object corresponding with subject identification, to judge whether the first business module and the second business module belong to same process,
Judge whether it is the data transmission in process, judgment step is simple, it is easy to accomplish;On the other hand, if it exists with subject identification
Corresponding reception object, i.e., when the first business module and the second business module belong to same process, by the second business module
Call back function is registered to the sending object of the first business module, so that the sending object will be received according to the call back function
The data that first business module is sent are sent to second business module, compared with the prior art, are transmitted as in data
When transmission in process, do not need to transmit data by way of network transmission, but directly by registering second business
The sending object of the call back function of module transmits data, simplifies data transfer path, reduces the occupancy of network bandwidth simultaneously
Data transmission efficiency is improved, while also avoiding network time-consuming.
The data transmission method in the present exemplary embodiment is further described next, with reference to Fig. 1.
In step s 110, the first business module of response sends the instruction of data, is transmitted based on first business module
Subject identification create the sending object of first business module.
In the present example embodiment, first business module can be to transmit the subject identification by first interface
Business module, and its may be send data business module.The communication module may include multiple interfaces, wherein the
One interface is an interface in multiple interfaces in communication module.
The first business module by first interface to communication module transmit the first business module send data instruction and
After subject identification, communication module responds the instruction that the first business module sends data, the theme based on the transmission of the first business module
The sending object of mark the first business module of creation.The subject identification, which is used to identify, receives the data that the first business module is sent
Business module destination address and target port.The destination address for example can be 192.168.1.1 or 192.168.1.2
Deng the present exemplary embodiment is not particularly limited this.The target port can for example refer on the business module for receiving data
Port number, for example, 1234 etc., the present exemplary embodiment is not particularly limited this.
Specifically, as shown in Fig. 2, the subject identification based on first business module transmission creates first industry
The sending object for module of being engaged in includes step S210 and step S220, in which:
In step S210, loading configuration file searches mesh corresponding with the subject identification from the configuration file
Mark address and target port.
In the present example embodiment, preserve each subject identification in the configuration file, and with each subject identification pair
The destination address and target port answered, such as: subject identification A=192.168.1.1:1234, wherein 192.168.1.1 is mesh
Address is marked, 1234 be target port.When the first business module transmits subject identification to communication module, communication module load configuration
File, and the subject identification that the first business module transmits is matched with each subject identification in configuration file, and will matching
The subject identification that the successful corresponding destination address of subject identification and target port are determined as the transmission of the first business module is corresponding
Destination address and target port.
It should be noted that destination address corresponding with the subject identification and target port can also be by the first business moulds
Block is conveyed directly to communication module by first interface, does not need communication module and is obtained by loading configuration file.
In step S220, the transmission of first business module is created based on the destination address and the target port
Object.In the present example embodiment, the corresponding destination address of subject identification and target side based on the transmission of the first business module
The sending object of mouth the first business module of creation.It should be noted that the mode of the sending object of above-mentioned the first module of creation is only
Be it is illustrative, be not intended to limit the present invention.
In the step s 120, search whether there is reception object corresponding with the subject identification from reception container.
In the present example embodiment, reception container herein refers to and the same process belonging to first business module
In communication module in the reception container safeguarded.Each reception object being stored in the reception container in the process and each reception
The corresponding subject identification of object.It should be pointed out that also may include the first business module in the reception container as reception number
According to the reception object of subject identification and creation that is transmitted of business module.
The subject identification of first business module transmission is matched with each subject identification in container is received, and passes through judgement
With the presence or absence of the matched subject identification of subject identification transmitted with the first business module, to search whether to exist and the first business mould
The corresponding reception object of subject identification of block transmission, i.e., the matched theme of subject identification transmitted if it exists with the first business module
Mark, then the corresponding reception object of the subject identification of subject identification successful match transmit with the first business module is determined as and
The corresponding reception object of subject identification of first business module transmission.
In step s 130, if it exists, the call back function of the second business module corresponding to the reception object is registered
To the sending object, so that the sending object sent received first business module according to the call back function
Data are sent to second business module.
In the present example embodiment, the business module for receiving data is the second business module, is existed in container if receiving
Reception object corresponding with the subject identification of the first business module transmission, that is, illustrate the first business module and receive corresponding to object
The second business module (business module for needing to receive the data of the first business module transmission) belong to same process, and then say
This bright data are transmitted as the transmission of the data in process.
When data are transmitted as the transmission of the data in process, the call back function of corresponding second business module of object will be received
It is registered to sending object, the data that received first business module is sent are sent to according to the call back function by sending object
Two business modules.
In the present example embodiment, if receiving in container, there is no corresponding with the subject identification that the first business module transmits
Reception object, then illustrate the first business module and receive object corresponding to the second business module (need to receive the first industry
The business module for the data that business module is sent) belong to different processes, that is, illustrate that the data between this data is transmitted as process pass
It is defeated.
In the data transmission between judging that data are transmitted as process, the first business module sends data to sending object,
The data received are dropped into network interface card by sending object by ICP/IP protocol, are connect with being sent data to by ICP/IP protocol
Receive the business module of data.
It, can be by subject identification and the hair for the call back function for registering the second business module for the ease of managing sending object
Object is sent to store to transmission container.Transmission container herein refers to be safeguarded in the communication module in process belonging to the first business module
Transmission container.
Before step S120, as shown in figure 3, the method can also include step S310~S330, in which:
In step s310, receive second business module transmission subject identification and second business module
Call back function.
In the present example embodiment, second business module be by second interface transmit the subject identification and
The business module of call back function, i.e., described second business module by second interface to the communication module transmit subject identification with
And second business module call back function.The second business module herein is the business module for receiving data.The communication module
Upper includes multiple interfaces, and second interface is an interface in multiple interfaces in communication module.The subject identification is upper
Text is illustrated, and details are not described herein again.
In step s 320, the reception object of second business module is created based on the call back function.
In step S330, the subject identification and the reception object are stored to reception container.
In the present example embodiment, reception container herein refer to in same process belonging to second business module
Communication module in the reception container safeguarded.If the second business module and the first business module belong to same process, connecing herein
Reception container in receptacle and above-mentioned steps S120 is the same reception container.If the second business module and the first business module
It is not belonging to same process, reception container herein is different reception containers from the reception container in above-mentioned steps S120.
In conclusion by searching whether there is reception object corresponding with subject identification in receiving container, to judge
Whether the first business module and the second business module belong to same process, that is, judge whether it is the data transmission in process, judgement
Step is simple, it is easy to accomplish;In addition, reception object corresponding with subject identification if it exists, i.e., in the first business module and second
When business module belongs to same process, the call back function of the second business module is registered to the sending object of the first business module,
So that the sending object data that received first business module is sent are sent to according to the call back function it is described
Second business module when data are transmitted as the transmission in process, does not need the side by network transmission compared with the prior art
Formula transmits data, but directly transmits data by registering the sending object of the call back function of second business module, simplifies
Data transfer path, reduces the occupancy of network bandwidth and improves data transmission efficiency, while also avoiding network consumption
When.
It should be noted that the above process is by coming from lookup reception object corresponding with subject identification in container is received
Judge this data transmission whether be in process data transmission.In other exemplary embodiments of the disclosure, it can also lead to
It crosses and searches corresponding with subject identification sending object in container from sending, whether be number in process to judge that this data is transmitted
According to transmission.Specific process may include: the subject identification and the second business mould that communication module receives the transmission of the second business module
The call back function of block;The reception object of the second business module is created based on call back function;The subject identification and reception object are deposited
In the reception container safeguarded in communication module in same process belonging to the second business module of Chu Zhiyu;Communication module receives the
The subject identification (subject identification herein is identical as the subject identification that the second business transmits) of one business module transmission, and being based on should
Subject identification creates the sending object of first business module, and the subject identification and the sending object are stored to first
In the transmission container safeguarded in communication module in same process belonging to business module;From with it is same belonging to the second business module
Search whether there is the subject identification transmitted with the second business module in the transmission container safeguarded in communication module in one process
Corresponding sending object, and if it exists, illustrate that the first business module and the second business module belong to the same process, by the second business
The call back function of module is registered in the sending object, so that sending object is according to call back function by received first business module
The data of transmission are sent to the second business module.
It should be noted that although describing each step of method in the disclosure in the accompanying drawings with particular order,
This does not require that or implies must execute these steps in this particular order, or have to carry out step shown in whole
Just it is able to achieve desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and held by certain steps
Row, and/or a step is decomposed into execution of multiple steps etc..
In an exemplary embodiment of the disclosure, a kind of data transmission device is additionally provided, as shown in figure 4, the device 400
It may include: the first creation module 401, searching module 402, registration module 403, in which:
First creation module 401 can be used for responding the instruction that the first business module sends data, be based on first industry
The subject identification of business module transmission creates the sending object of first business module;
Searching module 402 can be used for searching whether there is reception corresponding with the subject identification from reception container
Object;
Registration module 403 can be used for if it exists, by the readjustment letter of the second business module corresponding to the reception object
Number is registered to the sending object, so that the sending object is according to the call back function by received first business module
The data of transmission are sent to second business module.
In an exemplary embodiment of the disclosure, first creation module 401 may include: load searching unit and
Creating unit, in which:
Searching unit is loaded, can be used for loading configuration file, is searched and the subject identification from the configuration file
Corresponding destination address and target port;
Creating unit can be used for creating first business module based on the destination address and the target port
Sending object.
In an exemplary embodiment of the disclosure, described device 400 can also include: receiving module, the second creation mould
Block and memory module, in which:
Receiving module can be used for receiving subject identification and the second business mould that second business module transmits
The call back function of block;
Second creation module can be used for creating the reception object of second business module based on the call back function;
Memory module can be used for storing the subject identification and the reception object to reception container.
The detail of each data transmission device module has carried out in corresponding data transmission method in detail among the above
Thin description, therefore details are not described herein again.
It should be noted that although being referred to several modules or unit of the equipment for execution in the above detailed description,
But it is this divide it is not enforceable.In fact, according to embodiment of the present disclosure, two or more above-described modules
Either the feature and function of unit can embody in a module or unit.Conversely, an above-described module or
The feature and function of person's unit can be to be embodied by multiple modules or unit with further division.
In an exemplary embodiment of the disclosure, a kind of electronic equipment that can be realized the above method is additionally provided.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or
Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, complete
The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here
Referred to as circuit, " module " or " system ".
The electronic equipment 500 of this embodiment according to the present invention is described referring to Fig. 5.The electronics that Fig. 5 is shown
Equipment 500 is only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in figure 5, electronic equipment 500 is showed in the form of universal computing device.The component of electronic equipment 500 can wrap
It includes but is not limited to: at least one above-mentioned processing unit 510, at least one above-mentioned storage unit 520, the different system components of connection
The bus 530 of (including storage unit 520 and processing unit 510), display unit 540.
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 510
Row, so that various according to the present invention described in the execution of the processing unit 510 above-mentioned " illustrative methods " part of this specification
The step of illustrative embodiments.For example, the processing unit 510 can execute step S110 as shown in fig. 1, response the
One business module sends the instruction of data, and the subject identification based on first business module transmission creates the first business mould
The sending object of block;Step S120, search whether there is reception object corresponding with the subject identification from reception container;Step
Rapid S130, if it exists, is registered to the sending object for the call back function of the second business module corresponding to the reception object,
So that the sending object data that received first business module is sent are sent to according to the call back function it is described
Second business module.
Storage unit 520 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit
(RAM) 5201 and/or cache memory unit 5202, it can further include read-only memory unit (ROM) 5203.
Storage unit 520 can also include program/utility with one group of (at least one) program module 5205
5204, such program module 5205 includes but is not limited to: operating system, one or more application program, other program moulds
It may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 530 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage
Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures
Local bus.
Electronic equipment 500 can also be with one or more external equipments 570 (such as keyboard, sensing equipment, bluetooth equipment
Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 500 communicate, and/or with make
Any equipment (such as the router, modulation /demodulation that the electronic equipment 500 can be communicated with one or more of the other calculating equipment
Device etc.) communication.This communication can be carried out by input/output (I/O) interface 550.Also, electronic equipment 500 can be with
By network adapter 560 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network,
Such as internet) communication.As shown, network adapter 560 is communicated by bus 530 with other modules of electronic equipment 500.
It should be understood that although not shown in the drawings, other hardware and/or software module can not used in conjunction with electronic equipment 500, including but not
Be limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and
Data backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented
Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure
The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one
Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating
Equipment (can be personal computer, server, terminal installation or network equipment etc.) is executed according to disclosure embodiment
Method.
In an exemplary embodiment of the disclosure, a kind of computer readable storage medium is additionally provided, energy is stored thereon with
Enough realize the program product of this specification above method.In some possible embodiments, various aspects of the invention may be used also
In the form of being embodied as a kind of program product comprising program code, when described program product is run on the terminal device, institute
Program code is stated for executing the terminal device described in above-mentioned " illustrative methods " part of this specification according to this hair
The step of bright various illustrative embodiments.
Refering to what is shown in Fig. 6, describing the program product for realizing the above method of embodiment according to the present invention
600, can using portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device,
Such as it is run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing can be with
To be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or
It is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter
Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or
System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive
List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only
Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory
(CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal,
Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing
Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its
The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have
Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages
Code, described program design language include object oriented program language-Java, C++ etc., further include conventional
Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user
It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating
Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far
Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network
(WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP
To be connected by internet).
In addition, above-mentioned attached drawing is only the schematic theory of processing included by method according to an exemplary embodiment of the present invention
It is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitable
Sequence.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
His embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Adaptive change follow the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure or
Conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by claim
It points out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the attached claims.
Claims (10)
1. a kind of data transmission method characterized by comprising
The instruction that the first business module sends data is responded, described in the subject identification creation based on first business module transmission
The sending object of first business module;
Search whether there is reception object corresponding with the subject identification in container from receiving;
If it exists, the call back function of the second business module corresponding to the reception object is registered to the sending object, with
Make the sending object that the data that received first business module is sent are sent to described the according to the call back function
Two business modules.
2. data transmission method according to claim 1, which is characterized in that described to be transmitted based on first business module
Subject identification create the sending object of first business module and include:
Loading configuration file searches destination address corresponding with the subject identification and target port from the configuration file;
The sending object of first business module is created based on the destination address and the target port.
3. data transmission method according to claim 1, which is characterized in that the method also includes:
The sending object of the subject identification and the call back function of registration second business module is stored to transmission container.
4. data transmission method according to claim 1, which is characterized in that the method also includes:
Receive the subject identification of the second business module transmission and the call back function of second business module;
The reception object of second business module is created based on the call back function;
The subject identification and the reception object are stored to reception container.
5. data transmission method according to claim 1, which is characterized in that first business module is to connect by first
The business module of the subject identification is sent in oral instructions;
Second business module is the business module that the subject identification and call back function are transmitted by second interface.
6. a kind of data transmission device characterized by comprising
First creation module sends the instruction of data for responding the first business module, is transmitted based on first business module
Subject identification create the sending object of first business module;
Searching module, for searching whether there is reception object corresponding with the subject identification from reception container;
Registration module, for if it exists, the call back function of the second business module corresponding to the reception object being registered to institute
Sending object is stated, so that the data that the sending object sends received first business module according to the call back function
It is sent to second business module.
7. data transmission device according to claim 6, which is characterized in that first creation module includes:
Searching unit is loaded, loading configuration file is used for, mesh corresponding with the subject identification is searched from the configuration file
Mark address and target port;
Creating unit, for creating the transmission pair of first business module based on the destination address and the target port
As.
8. data transmission device according to claim 6, which is characterized in that described device further include:
Receiving module, for receiving the subject identification of the second business module transmission and the readjustment of second business module
Function;
Second creation module, for creating the reception object of second business module based on the call back function;
Memory module, for storing the subject identification and the reception object to reception container.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt
Data transmission method described in any one of Claims 1 to 5 is realized when processor executes.
10. a kind of electronic equipment characterized by comprising
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to come any one of perform claim requirement 1~5 institute via the execution executable instruction
The data transmission method stated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811479205.7A CN109669787B (en) | 2018-12-05 | 2018-12-05 | Data transmission method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811479205.7A CN109669787B (en) | 2018-12-05 | 2018-12-05 | Data transmission method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109669787A true CN109669787A (en) | 2019-04-23 |
CN109669787B CN109669787B (en) | 2021-05-25 |
Family
ID=66144936
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811479205.7A Active CN109669787B (en) | 2018-12-05 | 2018-12-05 | Data transmission method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109669787B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110764745A (en) * | 2019-09-16 | 2020-02-07 | 平安科技(深圳)有限公司 | Variable transmission and collection method, device and computer readable storage medium |
CN112181542A (en) * | 2020-09-30 | 2021-01-05 | 微医云(杭州)控股有限公司 | Function calling method and device, electronic equipment and storage medium |
CN112596824A (en) * | 2021-01-04 | 2021-04-02 | 天津中新智冠信息技术有限公司 | Information interaction method and device, electronic equipment and storage medium |
CN112925568A (en) * | 2021-03-28 | 2021-06-08 | 杭州迪普信息技术有限公司 | Data transmission method between modules and control module |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1512370A (en) * | 2002-12-31 | 2004-07-14 | ����̩ƽ | User self-defining event mechanism based on structure |
CN103677975A (en) * | 2013-12-09 | 2014-03-26 | 北京恒华伟业科技股份有限公司 | System and method for having access to internal objects of application systems |
CN104580209A (en) * | 2015-01-06 | 2015-04-29 | 烽火通信科技股份有限公司 | Device and method for implementing multi-platform message processing |
CN107515793A (en) * | 2017-08-22 | 2017-12-26 | 四川长虹电器股份有限公司 | A kind of module communication means for supporting message mechanism |
-
2018
- 2018-12-05 CN CN201811479205.7A patent/CN109669787B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1512370A (en) * | 2002-12-31 | 2004-07-14 | ����̩ƽ | User self-defining event mechanism based on structure |
CN103677975A (en) * | 2013-12-09 | 2014-03-26 | 北京恒华伟业科技股份有限公司 | System and method for having access to internal objects of application systems |
CN104580209A (en) * | 2015-01-06 | 2015-04-29 | 烽火通信科技股份有限公司 | Device and method for implementing multi-platform message processing |
CN107515793A (en) * | 2017-08-22 | 2017-12-26 | 四川长虹电器股份有限公司 | A kind of module communication means for supporting message mechanism |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110764745A (en) * | 2019-09-16 | 2020-02-07 | 平安科技(深圳)有限公司 | Variable transmission and collection method, device and computer readable storage medium |
CN110764745B (en) * | 2019-09-16 | 2024-02-02 | 平安科技(深圳)有限公司 | Variable transmission and collection method, device and computer readable storage medium |
CN112181542A (en) * | 2020-09-30 | 2021-01-05 | 微医云(杭州)控股有限公司 | Function calling method and device, electronic equipment and storage medium |
CN112596824A (en) * | 2021-01-04 | 2021-04-02 | 天津中新智冠信息技术有限公司 | Information interaction method and device, electronic equipment and storage medium |
CN112925568A (en) * | 2021-03-28 | 2021-06-08 | 杭州迪普信息技术有限公司 | Data transmission method between modules and control module |
CN112925568B (en) * | 2021-03-28 | 2022-07-26 | 杭州迪普信息技术有限公司 | Data transmission method and control device between modules |
Also Published As
Publication number | Publication date |
---|---|
CN109669787B (en) | 2021-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109669787A (en) | Data transmission method and device, storage medium, electronic equipment | |
KR101110778B1 (en) | Method and system of bluetooth communication | |
CN103222291B (en) | Electronic equipment, NFC controller and application method for configuring route | |
CN110086636A (en) | A kind of message distributing method based on mqtt, server and storage medium | |
JP7136921B2 (en) | Method and apparatus for conveying merchandise shelves | |
CN109803004A (en) | Block chain intelligence contract administration method and apparatus, electronic equipment, storage medium | |
CN109936587B (en) | Control method, control device, electronic apparatus, and storage medium | |
CN113626224A (en) | NFC data interaction method and device, electronic equipment and storage medium | |
CN107566541A (en) | Capacitor network resource allocation methods, system, storage medium and electronic equipment | |
CN109391649A (en) | The methods, devices and systems of page load | |
CN103905526A (en) | Dispatching method and server | |
CN109685295A (en) | Cargo, which is pulled, receives dispatching method and device, storage medium, electronic equipment | |
CN109710405A (en) | Block chain intelligence contract administration method, apparatus, electronic equipment and storage medium | |
CN109257320A (en) | Message storage method and device | |
CN108897607A (en) | Message treatment method, device, electronic equipment and storage medium | |
CN103139157A (en) | Network communication method based on socket, device and system | |
CN109688134A (en) | Method for exhibiting data and device | |
CN109525697A (en) | Contact person shares and the method, apparatus and terminal of display | |
CN109815423A (en) | Two-dimensional code identification method, system, equipment and storage medium based on terminal classification | |
CN116090942A (en) | Multi-scene robot distribution method and system based on Internet of things | |
CN107705179A (en) | Order management method and device | |
US20200402190A1 (en) | Logistics sensors for smart contract arbitration | |
CN110493736A (en) | Note transmission method, device and storage medium | |
CN109299354A (en) | The searching method and device of online document | |
CN108924207A (en) | Terminal device and its system file update method, system and computer storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |