CN114416383A - Multi-process communication method and device - Google Patents

Multi-process communication method and device Download PDF

Info

Publication number
CN114416383A
CN114416383A CN202111498701.9A CN202111498701A CN114416383A CN 114416383 A CN114416383 A CN 114416383A CN 202111498701 A CN202111498701 A CN 202111498701A CN 114416383 A CN114416383 A CN 114416383A
Authority
CN
China
Prior art keywords
application
data
port
communication
application process
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111498701.9A
Other languages
Chinese (zh)
Inventor
吴参
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Original Assignee
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qianxin Technology Group Co Ltd, Secworld Information Technology Beijing Co Ltd filed Critical Qianxin Technology Group Co Ltd
Priority to CN202111498701.9A priority Critical patent/CN114416383A/en
Publication of CN114416383A publication Critical patent/CN114416383A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/52Program synchronisation; Mutual exclusion, e.g. by means of semaphores
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention provides a multi-process communication method and device. Wherein, the method comprises the following steps: establishing a transfer process, and establishing a monitoring port corresponding to the transfer process according to a communication protocol, wherein the monitoring port is used for carrying out data communication with the at least one application process; and receiving first data sent by a first application process through a corresponding first application port through the monitoring port, and performing service operation according to the first data. The problem that data between processes of the IOS end cannot be synchronized in time is solved.

Description

Multi-process communication method and device
Technical Field
The invention relates to the technical field of computers, in particular to a multi-process communication method and device.
Background
The process refers to an application program running in the system, each process is independent, each process runs in a special and protected memory space, for example, when a QQ and a WeChat are simultaneously opened, the system respectively starts 2 processes. Interprocess communication is the propagation or exchange of information between different processes. For cross-process communication on the iOS side, the user spaces of the processes are independent of each other and generally inaccessible to each other.
Disclosure of Invention
To solve the problems in the prior art, embodiments of the present invention provide a multiprocess communication method, apparatus, medium, and product. The method mainly solves the problem of full-duplex communication between a process (namely a transit process) where a network extension plug-in is located and a process (an application process) where a main APP is located in a zero-trust IOS scene. The data synchronization method under the IOS multi-process cooperation scene can be realized, pairwise communication of processes such as one-to-one, one-to-many, many-to-many and the like can be realized, and the stability, the real-time performance and the high efficiency of cross-process communication are improved. The invention can be applied in the scenes of identity authentication, access control, cross-process communication, data synchronization and the like.
Specifically, the embodiment of the invention provides the following technical scheme:
in a first aspect, an embodiment of the present invention provides a multi-process communication method, which is applied to a relay process at an IOS end, and includes: establishing the transfer process, and establishing a monitoring port corresponding to the transfer process according to a communication protocol, wherein the monitoring port is used for carrying out data communication with the at least one application process; and receiving first data sent by a first application process through a corresponding first application port through the monitoring port, and performing service operation according to the first data.
Further, the method further comprises: synchronizing the first data to a second application process through the monitor port, wherein the at least one application process comprises the second application process, and the second application process receives data through a corresponding second application port; and/or responding to the transit process update data, synchronizing the updated second data to the first application process through the monitoring port, and receiving the data by the first application process through the corresponding first application port; and/or responding to the update data of the transit process, and synchronizing the updated second data to the second application process through the monitoring port.
Further, the establishing the transit process includes: and installing a NetworkExtension plug-in, and establishing the transfer process by starting the plug-in.
Further, the communication protocol includes a WebSocket protocol.
In a second aspect, an embodiment of the present invention further provides a multi-process communication method, which is applied to an application process at an IOS end, and includes: establishing at least one application port corresponding to at least one application process according to a communication protocol, wherein the at least one application port is used for carrying out data communication with a transfer process; responding to a first application process update data in at least one application process, synchronizing the updated first data to the transfer process through a first application port corresponding to the first application process, and receiving the data by the transfer process through a corresponding monitoring port.
Further, the at least one application process comprises a second application process, and the method further comprises: receiving first data sent by the transit process through the monitoring port through a second application port corresponding to the second application process; and/or the first application process receives second data sent by the transit process through the monitoring port through the first application port, and performs service operation according to the second data; and/or the second application process receives second data sent by the transit process through the monitoring port through the second application port, and performs service operation according to the second data.
Further, the communication protocol includes a WebSocket protocol.
In a third aspect, an embodiment of the present invention further provides a multiprocess communication apparatus, where the multiprocess communication apparatus is applied to a relay process at an IOS end, and the method includes: the first processing module is used for establishing the transfer process and establishing a monitoring port corresponding to the transfer process according to a communication protocol, wherein the monitoring port is used for carrying out data communication with the at least one application process; a second processing module, configured to receive, through the monitor port, first data sent by a first application process through a corresponding first application port, and perform a service operation according to the first data
In a fourth aspect, an embodiment of the present invention further provides a multi-process communication apparatus, where an application process applied to an IOS end includes: the fourth processing module is used for establishing at least one application port corresponding to at least one application process according to the communication protocol, and the at least one application port is used for carrying out data communication with the transfer process; and the fifth processing module is used for responding to the update data of the first application process in the at least one application process, synchronizing the updated first data to the transfer process through a first application port corresponding to the first application process, and receiving the data by the transfer process through a corresponding monitoring port.
In a fifth aspect, an embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the steps of the multi-process communication method according to the first aspect.
In a sixth aspect, the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the multi-process communication method according to the first aspect.
In a seventh aspect, the present invention further provides a computer program product, on which executable instructions are stored, and when executed by a processor, the instructions cause the processor to implement the steps of the multi-process communication method according to the first aspect.
The multi-process communication method provided by the embodiment of the invention is applied to the transfer process of the IOS end, establishes the monitoring port corresponding to the transfer process, and receives the data sent by the process through the monitoring port, thereby realizing the timely synchronization of the process data by the iOS end.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flow chart of an embodiment of a multi-process communication method of the present invention;
FIG. 2 is a flow chart of an alternate embodiment of a multi-process communication method of the present invention;
FIG. 3 is a schematic diagram of an application scenario of the overall architecture and logic of the present invention in a zero trust scenario;
FIG. 4 is a schematic diagram of an application scenario in which a relay process synchronizes data to other processes in a zero-trust scenario;
FIG. 5 is a schematic structural diagram of a multiprocess communication apparatus according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a multi-process communication apparatus according to another embodiment of the present invention;
FIG. 7 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
FIG. 1 is a flowchart of a multi-process communication method according to an embodiment of the present invention. As shown in fig. 1, the multi-process communication method according to the embodiment of the present invention is applied to a relay process at an IOS terminal, and includes:
s101, a transfer process is established, a monitoring port corresponding to the transfer process is established according to a communication protocol, and the monitoring port is used for carrying out data communication with at least one application process.
The system allocates a process, such as a relay process or an application process, to the software to be started. The intermediate process is in data communication with at least one application process, i.e. cross-process communication, the user spaces of the processes are independent of each other and generally inaccessible, and the inter-process communication is to propagate or exchange information between different processes. Because data cannot be synchronized in time among all processes of the IOS terminal, a monitoring port corresponding to the transfer process is established according to a communication protocol, and data communication is carried out with at least one application process through the monitoring port. Each process may correspond to the same application software or different application software. When data update occurs in a process (or data is added, deleted or modified or data is queried when a task is completed), related information needs to be synchronized to a transit process, and a monitoring port of the transit process receives the related information.
S102, receiving first data sent by a first application process through a corresponding first application port through a monitoring port, and performing service operation according to the first data.
As an example, the first data may be data and instructions that need to be updated, for example, the first application process is a process related to an account of a registered user, when the user completes account registration, the first application process needs to synchronize a user name and a password of the registered user to the transit process through the first application port, and after receiving the user name and the password, the monitoring port of the transit process writes the user name and the password into the database.
The multi-process communication method provided by the embodiment of the invention is applied to the transfer process of the IOS end, establishes the monitoring port corresponding to the transfer process, and receives the data sent by the process through the monitoring port, thereby realizing the timely synchronization of the process data by the iOS end.
Further, on the basis of the above method embodiment, the method may further include: synchronizing the first data to a second application process through the monitoring port, wherein at least one application process comprises the second application process, and the second application process receives the data through a corresponding second application port; and/or updating data in response to the transfer process, synchronizing the updated second data to the first application process through the monitoring port, and receiving the data by the first application process through the corresponding first application port; and/or in response to the update data of the transit process, synchronizing the updated second data to the second application process through the monitor port.
The first/second application process is a process of the same IOS end, and after the transfer process receives the first data of the first application process, the first data can be synchronized to the second application process; similarly, after the forwarding process updates the data, the updated second data may also be synchronized to other processes.
Further, on the basis of the above method embodiment, establishing a transfer process includes: and installing a NetworkExtension plug-in, and establishing a transfer process by starting the plug-in.
NetworkExtension plug-ins contains a set of APIs in iOS and macOS for customizing and extending core network functions. It can give the system a WiFi list, where the WiFi on the list can set up passwords, tags (subheadings) to click directly on the connection. The entire WiFi list may also be obtained. By customizing and expanding the API set of the core network function through the NetworkExtension plug-in, a lightweight C-S architecture model is realized at the iOS mobile phone end, namely, the communication among other application software processes is completed through a transfer process.
Further, on the basis of the above method embodiments, the communication protocol may include a WebSocket protocol.
WebSocket is a protocol for full duplex communication over a single TCP connection. Transmission Control Protocol/Internet Protocol (Transmission Control Protocol/Internet Protocol, TCP/IP for short). The processes communicate with each other according to a WebSocket protocol.
As shown in fig. 3, a schematic diagram of an application scenario of the overall structure and logic of the present invention in a Zero Trust scenario, Zero Trust (ZT) provides a series of concepts and ideas to reduce the uncertainty of decision accuracy when executing each access request in information systems and services under the premise that the network environment is assumed to have been compromised. A Zero Trust Architecture (ZTA) is a planning of enterprise network security, and is constructed around its component relationship, workflow planning and access policy based on a zero trust concept, and in fig. 3, based on a WebSocket protocol, a relay process Server process is created and marked as an S-side, a first application process is a Client1 process and marked as a C1 side, and a second application process is a Client2 process and marked as a C2 side. Firstly, through a Server service of a WebSocket started by a NetworkExtension plug-in and a C1 end or a C2 end of the WebSocket started by an Application program (app for short), when an S end (subject) accesses a C end (object), a link needs to be established and data is sent, and the S end operates a flow according to data information. For another example, in zero trust, when the MFA authentication scenario (or other multi-identity source scenario, multi-factor authentication scenario) is processed, after the MFA is completed at the C1 end or the C2 end, the S end does not know, and needs to send data to the S end, so that the S end completes data refreshing and data synchronization.
Fig. 4 is a schematic diagram of an application scenario in which a relay process synchronizes data to other processes in a zero-trust scenario. In zero trust, the S-side will have a strong demand to notify the C1 side or the C2 side when receiving the topoc notification, and therefore, in this scenario, will notify the client (i.e. the C1 side or the C2 side) through WebSocket. When a plurality of application processes and a relay process are linked, the mode that the relay process notifies all the application processes can be conveniently realized through WebSocket, and the efficiency of cross-process communication is greatly improved.
FIG. 2 is a flow chart of another embodiment of a multi-process communication method of the present invention. As shown in fig. 2, the multi-process communication method according to the embodiment of the present invention is applied to an application process at an IOS end, and includes:
s201, establishing at least one application port corresponding to at least one application process according to a communication protocol, wherein the at least one application port is used for carrying out data communication with a transfer process.
In some embodiments, the communication protocol between the intermediate process and the at least one application process may be a pipe, which is characterized by half-duplex, i.e. it is not possible to transmit data in both directions simultaneously. Some systems may support full duplex. Only between parent and child processes. The classic form is that a pipeline is created by a parent process, and after a process fork child process, the pipeline can be used between the parent process and the child process. The communication protocol may also be in the form of message queues, semaphores, shared memory, network sockets, etc., and may be set as desired.
S202, responding to the first application process update data in at least one application process, synchronizing the updated first data to a transfer process through a first application port corresponding to the first application process, and receiving the data through a corresponding monitoring port by the transfer process.
As an example, the first data may include data and instructions that need to be updated, for example, the first application process is a process related to an account of a registered user, when the user completes account registration, the first application process needs to synchronize a user name and a password of the registered user to the transit process through the first application port, and after receiving the user name and the password, the monitoring port of the transit process writes the user name and the password into the database.
The multi-process communication method provided by the embodiment of the invention is applied to the application process of the IOS end, and at least one application process synchronizes data with the transfer process through at least one application port, so that the data synchronization among at least one application process is realized.
Further, on the basis of the above method embodiment, the at least one application process includes a second application process, and the method further includes: receiving first data sent by the transit process through the monitoring port through a second application port corresponding to a second application process; and/or the first application process receives second data sent by the transit process through the monitoring port through the first application port, and performs service operation according to the second data; and/or the second application process receives second data sent by the transit process through the monitoring port through the second application port, and performs service operation according to the second data.
Data synchronization can be completed through the transfer process among the processes of the IOS terminal, and tasks sent by the transfer process can be executed to execute business operations, such as data query and verification.
Further, on the basis of the above method embodiment, the communication protocol includes a WebSocket protocol.
The invention can realize a lightweight C-S architecture model at an IOS mobile phone end, wherein the first application process is a C1 process, the second application process is a C2 process, and the transfer process is an S process.
A one-to-one cross-process communication scenario is processed. An S end (namely a Server end) of a Websocket is started through a Server process, a C1 client of the Websocket is established in a C1 process to link the S end of the Server process, and a C1-S efficient cross-process full duplex communication mechanism is realized;
a one-to-many cross-process communication scenario is processed. Starting an S end of a WebSocket through a Server process, creating a C1 Client of the WebSocket in a Client1 process to link the S end of the Server process, creating a C2 Client of the WebSocket in a Client2 process to link the S end of the Server process, and realizing a C1-S/C2-S efficient cross-process full duplex communication mechanism;
many-to-many cross-process communication scenarios are processed. The method comprises the steps that an S end of a WebSocket is started through a Server process, a C1 Client of the WebSocket is created in a Client1 process to link the S end of the Server process, a C2 Client of the WebSocket is created in a Client2 process to link the S end of the Server process, and the S end serves as a relay. The C1-S/C2-S/C1-S-C2 efficient cross-process communication mechanism with multiple ends communicating with each other is realized.
When multi-process data are synchronized, data can be sent from the C end to the S end through WebSocket links between the C and the S, and operations required by data synchronization are completed at the S end.
In zero trust, after the C-side completes logging, if the synchronization of the logging condition needs to be completed at the S-side, Token generated in the logging process is generally transmitted to the S-side, logging is completed at the S-side, and the synchronization of the logging state can be easily realized in a WebSocket manner.
In zero trust, after the login state or the application data of the C terminal is changed, the login data can be synchronized to the S terminal through the WebSocket link between the C and the S terminal, and the S terminal can perform corresponding business operation according to the scene of data change, such as immediately refreshing the data from a gateway.
FIG. 5 is a schematic structural diagram of a multiprocess communication apparatus according to an embodiment of the present invention. As shown in fig. 5, the multiprocess communication apparatus applied to the relay process of the IOS end includes:
the first processing module 501 is configured to establish a relay process, and establish a monitoring port corresponding to the relay process according to a communication protocol, where the monitoring port is used for performing data communication with at least one application process;
the second processing module 502 is configured to receive, through the monitor port, first data sent by the first application process through the corresponding first application port, and perform a service operation according to the first data.
Optionally, the apparatus further comprises:
the third processing module is used for synchronizing the first data to a second application process through the monitoring port, at least one application process comprises the second application process, and the second application process receives the data through a corresponding second application port; and/or
Responding to the update data of the transfer process, synchronizing the updated second data to the first application process through the monitoring port, and receiving the data by the first application process through the corresponding first application port; and/or
And responding to the update data of the transfer process, and synchronizing the updated second data to the second application process through the monitoring port.
Optionally, the first processing module 501 is further configured to:
and installing a NetworkExtension plug-in, and establishing a transfer process by starting the plug-in.
Optionally, the communication protocol comprises a WebSocket protocol.
FIG. 6 is a schematic structural diagram of a multi-process communication device according to an embodiment of the present invention. As shown in fig. 6, the application process applied to the IOS side by the multi-process communication device includes:
a fourth processing module 601, configured to establish at least one application port corresponding to at least one application process according to a communication protocol, where the at least one application port is used for performing data communication with a relay process;
a fifth processing module 602, configured to respond to a first application process update data in at least one application process, synchronize the updated first data to a relay process through a first application port corresponding to the first application process, where the relay process receives the data through a corresponding monitoring port.
Optionally, the at least one application process includes a second application process, and the apparatus further includes:
a sixth processing module, configured to receive, through a second application port corresponding to a second application process, first data sent by the relay process through the monitoring port; and/or
The first application process receives second data sent by the transit process through the monitoring port through the first application port, and performs service operation according to the second data; and/or
And the second application process receives second data sent by the transit process through the monitoring port through the second application port, and performs service operation according to the second data.
Optionally, the communication protocol comprises a WebSocket protocol.
An example is as follows:
fig. 7 illustrates a physical structure diagram of an electronic device, and as shown in fig. 7, the electronic device may include: a processor (processor)701, a communication Interface (Communications Interface)702, a memory (memory)703 and a communication bus 704, wherein the processor 701, the communication Interface 702 and the memory 703 complete communication with each other through the communication bus 704. The processor 701 may call logic instructions in the memory 703 to perform the following method: establishing a transfer process, and establishing a monitoring port corresponding to the transfer process according to a communication protocol, wherein the monitoring port is used for carrying out data communication with at least one application process; and receiving first data sent by the first application process through the corresponding first application port through the monitoring port, and performing service operation according to the first data.
In addition, the logic instructions in the memory 703 can be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, an embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions, and when the program instructions are executed by a computer, the computer can execute the multi-process communication method provided by the above-mentioned embodiments, for example, including: establishing a transfer process, and establishing a monitoring port corresponding to the transfer process according to a communication protocol, wherein the monitoring port is used for carrying out data communication with at least one application process; and receiving first data sent by the first application process through the corresponding first application port through the monitoring port, and performing service operation according to the first data.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to execute the multi-process communication method provided by the above embodiments, for example, including: establishing a transfer process, and establishing a monitoring port corresponding to the transfer process according to a communication protocol, wherein the monitoring port is used for carrying out data communication with at least one application process; and receiving first data sent by the first application process through the corresponding first application port through the monitoring port, and performing service operation according to the first data.
The above-described embodiments of the apparatus are merely illustrative, and the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods of the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (12)

1. A multi-process communication method is characterized in that a transfer process applied to an IOS end comprises the following steps:
establishing the transfer process, and establishing a monitoring port corresponding to the transfer process according to a communication protocol, wherein the monitoring port is used for carrying out data communication with the at least one application process;
and receiving first data sent by a first application process through a corresponding first application port through the monitoring port, and performing service operation according to the first data.
2. The multi-process communication method according to claim 1, wherein the method further comprises:
synchronizing the first data to a second application process through the monitor port, wherein the at least one application process comprises the second application process, and the second application process receives data through a corresponding second application port; and/or
Responding to the update data of the transit process, synchronizing the updated second data to the first application process through the monitoring port, and receiving the data by the first application process through the corresponding first application port; and/or
And responding to the update data of the transit process, and synchronizing the updated second data to the second application process through the monitoring port.
3. The multi-process communication method according to claim 1, wherein the establishing the intermediate process comprises:
and installing a NetworkExtension plug-in, and establishing the transfer process by starting the plug-in.
4. A multi-process communication method according to any of claims 1-3, wherein said communication protocol comprises a WebSocket protocol.
5. A multi-process communication method is characterized in that an application process applied to an IOS end comprises the following steps:
establishing at least one application port corresponding to at least one application process according to a communication protocol, wherein the at least one application port is used for carrying out data communication with a transfer process;
responding to a first application process update data in at least one application process, synchronizing the updated first data to the transfer process through a first application port corresponding to the first application process, and receiving the data by the transfer process through a corresponding monitoring port.
6. The multi-process communication method according to claim 5, wherein the at least one application process comprises a second application process, and
the method further comprises the following steps:
receiving first data sent by the transit process through the monitoring port through a second application port corresponding to the second application process; and/or
The first application process receives second data sent by the transit process through the monitoring port through the first application port, and performs service operation according to the second data; and/or
And the second application process receives second data sent by the transit process through the monitoring port through the second application port, and performs service operation according to the second data.
7. The multi-process communication method according to any of claims 5-6, wherein the communication protocol comprises a WebSocket protocol.
8. A multi-process communication device is characterized in that a transfer process applied to an IOS end comprises the following steps:
the first processing module is used for establishing the transfer process and establishing a monitoring port corresponding to the transfer process according to a communication protocol, wherein the monitoring port is used for carrying out data communication with the at least one application process;
and the second processing module is used for receiving first data sent by the first application process through the corresponding first application port through the monitoring port and carrying out service operation according to the first data.
9. A multi-process communication device, which is applied to an application process of an IOS end, comprises:
the fourth processing module is used for establishing at least one application port corresponding to at least one application process according to the communication protocol, and the at least one application port is used for carrying out data communication with the transfer process;
and the fifth processing module is used for responding to the update data of the first application process in the at least one application process, synchronizing the updated first data to the transfer process through a first application port corresponding to the first application process, and receiving the data by the transfer process through a corresponding monitoring port.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the multi-process communication method according to any of claims 1 to 4 or 5 to 7 when executing the program.
11. A non-transitory computer readable storage medium, having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the steps of the multi-process communication method according to any one of claims 1 to 4 or claims 5 to 7.
12. A computer program product having executable instructions stored thereon, which instructions, when executed by a processor, cause the processor to carry out the steps of the multi-process communication method according to any one of claims 1 to 4 or claims 5 to 7.
CN202111498701.9A 2021-12-09 2021-12-09 Multi-process communication method and device Pending CN114416383A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111498701.9A CN114416383A (en) 2021-12-09 2021-12-09 Multi-process communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111498701.9A CN114416383A (en) 2021-12-09 2021-12-09 Multi-process communication method and device

Publications (1)

Publication Number Publication Date
CN114416383A true CN114416383A (en) 2022-04-29

Family

ID=81265303

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111498701.9A Pending CN114416383A (en) 2021-12-09 2021-12-09 Multi-process communication method and device

Country Status (1)

Country Link
CN (1) CN114416383A (en)

Similar Documents

Publication Publication Date Title
KR102208935B1 (en) Messaging api over http protocol to establish context for data exchange
US10547466B2 (en) Multiplexing message distribution within group-based communication system
US20170163478A1 (en) Method,electronic device and system for updating client configuration in key-value pair database
CN109672708B (en) Communication method, device and system
US10135763B2 (en) System and method for secure and efficient communication within an organization
JP7430821B2 (en) Information interaction methods, devices, servers, systems and storage media
CN102594886B (en) Method and device for direct communication between browsers, and communication system
CN104539510A (en) Multi-protocol-based information pushing system and method
US20080208959A1 (en) Hanging request system and method for client/server communication
WO2017000572A1 (en) Internet content adaptation protocol-based communication method, client and server
CN110995829A (en) Instance calling method and device and computer storage medium
US11463549B2 (en) Facilitating inter-proxy communication via an existing protocol
WO2024067529A1 (en) Rdma-based link establishment method and apparatus, and device and storage medium
CN108989157B (en) Method and device for controlling intelligent equipment
CN114416383A (en) Multi-process communication method and device
US9450906B2 (en) Managing a messaging queue in an asynchronous messaging system
CN103152428A (en) Method for carrying out service communication among nodes on cloud platform
CN112929453B (en) Method and device for sharing session data
CN109660370A (en) A kind of equipment communication means of digit broadcasting system
CN115996187A (en) Routing information processing method and device, routing information interaction system and routing equipment
US20150244511A1 (en) Duplex services residing in a messaging bus
KR20190113200A (en) Message server and message processing apparatus including the same
KR102412225B1 (en) Message server and message processing apparatus including the same
CN103546513B (en) The method and device of communication between a kind of customer terminal webpage
CN112512022A (en) TSN industrial application server, client, system, service method and 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