Method and device for inter-process communication
A technology of inter-process communication and process, applied in the field of communication control, can solve the problems of inconvenient multiplexing control, inability to perform multiplexing, and no access counting
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0074] figure 2 A flow chart of a method for inter-process communication is provided for an embodiment of the present invention, such as figure 2 As shown, the following steps may be included:
[0075] 201: The first IPC module receives data sent by the first process.
[0076] Preferably, the first IPC module can receive the data sent by the first process through variable transmission.
[0077] 202: The first IPC module packs the data to form a data packet, the data packet includes a header and the data, and the header includes a source address, a port number of a source process, a destination address, and a port number of a destination process .
[0078] Wherein, the source address is the network address of the device where the process of sending data is located. In the embodiment of the present invention, it is the network address of the device where the first process is located. For example, the network address of the device where the first process is located is 192.16...
Embodiment 2
[0089] Figure 4 A flow chart of a method for inter-process communication provided by an embodiment of the present invention, such as Figure 4 As shown, the following steps may be included:
[0090] 401: The operating system receives a data packet sent by the first IPC module; wherein, the data packet includes a header and data, and the header includes a source address, a port number of a source process, a destination address, and a port number of a destination process, wherein the The destination address is the network loopback address.
[0091]402: The operating system queries the correspondence between the preset port number and the network socket according to the port number of the destination process in the data packet, and acquires the network socket corresponding to the port number of the destination process.
[0092] Wherein, the network socket is an integer type identifier identifying the IPC module, which is used to distinguish different IPC modules, and the netwo...
Embodiment 3
[0104] Figure 5 A flow chart of a method for inter-process communication provided by an embodiment of the present invention, such as Figure 5 As shown, the following steps may be included:
[0105] 501: The second IPC module receives a data packet sent by the operating system, wherein the data packet includes a header and the data, and the header includes a source address, a port number of a source process, a destination address, and a port number of a destination process, wherein , the destination address is a network loopback address.
[0106] Preferably, before this step, the method also includes:
[0107] The second IPC module receives the listening instruction sent by the second process, and starts listening to data packets sent by other IPC modules through the operating system.
[0108] 502: The second IPC module compares the port number of the destination process in the packet header with the port number of the second process according to the preset correspondence ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com