CN109933443A - Inter-process communication methods, device, computer equipment and readable storage medium storing program for executing - Google Patents

Inter-process communication methods, device, computer equipment and readable storage medium storing program for executing Download PDF

Info

Publication number
CN109933443A
CN109933443A CN201910172078.4A CN201910172078A CN109933443A CN 109933443 A CN109933443 A CN 109933443A CN 201910172078 A CN201910172078 A CN 201910172078A CN 109933443 A CN109933443 A CN 109933443A
Authority
CN
China
Prior art keywords
service
called
binding
parameter
interface function
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
Application number
CN201910172078.4A
Other languages
Chinese (zh)
Other versions
CN109933443B (en
Inventor
杜文涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910172078.4A priority Critical patent/CN109933443B/en
Publication of CN109933443A publication Critical patent/CN109933443A/en
Application granted granted Critical
Publication of CN109933443B publication Critical patent/CN109933443B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

This application involves a kind of inter-process communication methods, device, computer readable storage medium and computer equipments, the method of one embodiment includes: communication instruction between receiving process, by calling service binding interface function, it is sent to destination service end process and calls service binding request, the binding established between the process of destination service end connects, and service binding request is called to carry client process identification information;Service interface function is called, is sent by binding connection to the target process and calls service request, service request is called to carry method information to be called;Destination service end process is received based on the operation return value for calling service request to return, operation return value is the operation that destination service end process executes the corresponding method of method information to be called, obtains operating result, and determine based on operating result.Scheme provided by the present application simplifies the realization process of interprocess communication, improves the development efficiency of client process, improves the efficiency of interprocess communication.

Description

Inter-process communication methods, device, computer equipment and readable storage medium storing program for executing
Technical field
This application involves field of computer technology, more particularly to a kind of inter-process communication methods, interprocess communication device, Computer equipment and computer readable storage medium.
Background technique
In field of computer technology, IPC (inter-process communication, interprocess communication) refers to operation system What system provided, allow the mechanism of management of process shared data.By IPC mechanism, money can be accessed between different processes mutually Source and co-ordination.
Then, the realization process of traditional inter-process communication mechanisms is cumbersome, inefficiency.
Summary of the invention
Based on this, it is necessary to which, for the problem that the realization process of traditional inter-process communication mechanisms is cumbersome, inefficiency mentions For a kind of inter-process communication methods, interprocess communication device, computer readable storage medium and computer equipment.
A kind of inter-process communication methods, comprising:
Communication instruction between receiving process sends to destination service end process and calls by calling service binding interface function Service binding request, the binding established between the process of destination service end connect, and the calling service binding request carries client Hold progress recognizing information;
Service interface function is called, is sent by binding connection to the target process and calls service request, it is described Service request is called to carry method information to be called;
The operation return value that destination service end process is returned based on the calling service request is received, the operation is returned Returning value is the operation that destination service end process executes the corresponding method of the method information to be called, obtains operating result, And it is determined based on the operating result.
In some embodiments, communication instruction between receiving process, by calling service binding interface function, to destination service end Process, which is sent, calls service binding request, and the binding established between the process of destination service end connects, comprising:
Communication instruction between receiving process creates service binding interface function example by calling service binding interface function;
It is sent by service binding interface function example to destination service end process and calls service binding request, foundation and mesh Mark the binding connection between server-side process.
In some embodiments, further comprises the steps of: and reach service binding interface letter in the service binding interface function example When number instance lifecycle, the service binding interface function example is recycled.
In some embodiments, further comprises the steps of: and reach service binding interface letter in the service binding interface function example When number instance lifecycle, service binding interface function example recycling notice also is sent to destination service end process.
In some embodiments, after the binding connection between foundation and destination service end process, reception is further comprised the steps of: And service broker's handle of the successful connection of caching of target server-side process return;
Above-mentioned calling service request carries service broker's handle.
In some embodiments, further comprises the steps of: and receive the argument that destination service end process returns, pass through the argument Carry out function readjustment.
In some embodiments, further comprise the steps of: when the dynamic proxy example reaches dynamic proxy instance lifecycle, Recycle the dynamic proxy example.
A kind of inter-process communication methods, comprising:
It receives and calls service binding request, call service binding request to carry client process identification information, pass through service It binds the binding that interface function is established between client process to connect, the client process and the client process identify Information is corresponding;
It receives and calls service request, the calling service request carries method information to be called;
By service interface function, the operation of the corresponding method of the method information to be called is executed, operating result is obtained, And operation return value is returned to the client process based on the operating result.
In some embodiments, after establishing the connection of the binding between client process by service binding interface function, It further comprises the steps of:
Service broker's handle is returned to the client process;
Above-mentioned calling service request carries service broker's handle.
It in some embodiments, further comprises the steps of: and is adjusted back by dynamic proxy, and returned to argument by dynamic proxy To the client process.
In some embodiments, further comprise the steps of: in the dynamic proxy example recycling for receiving the client process transmission When notice, the dynamic proxy example of caching is recycled.
A kind of interprocess communication device, comprising:
Client binding module, for communication instruction between receiving process, by calling service binding interface function, to target Server-side process, which is sent, calls service binding request, and the binding established between the process of destination service end connects, the calling clothes Bind request of being engaged in carries client process identification information;
Method call module is sent by binding connection to the target process for calling service interface function Service request is called, the calling service request carries method information to be called;
As a result receiving module, the operation returned for receiving destination service end process based on the calling service request Return value, the operation return value are the behaviour that destination service end process executes the corresponding method of the method information to be called Make, obtains operating result, and determine based on the operating result.
In some embodiments, client binding module, communication instruction between receiving process passes through and calls service binding interface letter Number creates service binding interface function example;It is sent and is called to destination service end process by service binding interface function example Service binding request, the binding established between the process of destination service end connect.
In some embodiments, client binding module reaches service binding in the service binding interface function example and connects When mouth function instance lifecycle, the service binding interface function example is recycled.
In some embodiments, client binding module, the binding also between foundation and destination service end process connects it Afterwards, the service broker's handle for the successful connection that simultaneously caching of target server-side process returns is received;
Above-mentioned calling service request carries service broker's handle.
In some embodiments, method call module executes the service when the service interface function is singleton pattern Interface function, Xiang Suoshu target process, which is sent, calls service request.
In some embodiments, method call module calls service interface function, wound when receiving example creation instruction Build dynamic proxy example;It is sent by the remote agent example to the target process and calls service request.
In some embodiments, method call module, comprising:
Dynamic proxy determining module determines the dynamic proxy class currently called for calling service interface function;
Serialization module is serialized for treating configured transmission, parameter after being serialized;
Package module, for encapsulating the method information to be called of the dynamic proxy class currently called, after being encapsulated The method information to be called, the method information to be called includes: the identification information of the method to be called, the sequence Parameter and the operation return value after change;
Request sending module calls service request for sending to the target process, and the calling service request carries The method information to be called after encapsulation.
In some embodiments, serialization module the parameter to be transmitted be the first kind parameter when, one by one to it is described to The variable of configured transmission carries out recursive sequence, parameter after being serialized.
In some embodiments, serialization module is multiplexed predetermined sequence when the parameter to be transmitted is Second Type parameter Change mode serializes the parameter to be transmitted, parameter after being serialized.
In some embodiments, serialization module is when the parameter to be transmitted is third type parameter, to described to be transmitted After the built-in variable of parameter checks one by one, each built-in variable is serialized, parameter after being serialized.
In some embodiments, serialization module is when the parameter to be transmitted is four type parameter, using class name as sequence Parameter after columnization.
In some embodiments, method call module also reaches dynamic proxy example Life Cycle in the dynamic proxy example When the phase, the dynamic proxy example is recycled.
A kind of interprocess communication device, comprising:
Server-side binding module, for receive call service binding request, call service binding request carry client into Journey identification information establishes the connection of the binding between client process, the client process by service binding interface function It is corresponding with the client process identification information;
Method call receiving module calls service request for receiving, and the calling service request carries method to be called Information;
Method execution module executes the operation of the corresponding method of the method information to be called by service interface function, Operating result is obtained, and operation return value is returned to the client process based on the operating result.
In some embodiments, server-side binding module is also being established and client process by service binding interface function Between binding connection after, Xiang Suoshu client process return service broker's handle;
Above-mentioned calling service request carries service broker's handle.
In some embodiments, method execution module, comprising:
Parsing module, for parsing the method information to be called by service interface function, acquisition is currently called dynamic Parameter after state instance of agent, the identification information and serializing of method to be called;
Unserializing module obtains parameter after unserializing for carrying out unserializing operation to the serializing parameter;
Execution module, for executing described to be called by parameter after the dynamic proxy class and the unserializing The corresponding method of the identification information of method obtains operating result.
In some embodiments, method execution module is adjusted back by dynamic proxy, and is returned argument by dynamic proxy Back to the client process.
In some embodiments, method execution module is returned receiving the dynamic proxy example that the client process is sent When receiving notice, the dynamic proxy example of caching is recycled.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, wherein institute When stating computer program and being executed by the processor, the method for interprocess communication described in any one as described above is realized Step.
A kind of computer readable storage medium, is stored thereon with computer program, wherein the computer program is processed The step of device realizes the method for interprocess communication described in any one as described above when executing.
Above-mentioned inter-process communication methods, interprocess communication device, computer readable storage medium and computer equipment, pass through The process of the binding service at packing service end and the implementation procedure of service, when needing to carry out interprocess communication, client into Journey by call service binding interface function can it is convenient it is simple realization destination service end process between binding connect, lead to It crosses and calls service interface function that the calling of method performed by server-side process can be realized, it is simple and convenient, it simplifies between process The realization process of communication, improves the development efficiency of client process, improves the efficiency of interprocess communication.
Detailed description of the invention
Fig. 1 is the applied environment figure of the process communication in one embodiment;
Fig. 2 is the applied environment figure of the process communication in another embodiment;
Fig. 3 is the flow diagram of the interprocess communication process approach of one embodiment;
Fig. 4 is the flow diagram of the inter-process communication methods in one embodiment;
The schematic illustration that Fig. 5 is connected between process during the interprocess communication of one embodiment;
Fig. 6 is that the schematic illustration of dynamic proxy example is called in the interprocess communication of one embodiment in the process;
Fig. 7 encapsulates for data during the interprocess communication of one embodiment and the schematic illustration of serializing;
Fig. 8 is the schematic illustration that the interprocess communication of one embodiment is adjusted back in the process;
Fig. 9 is that the schematic illustration of example is recycled in the interprocess communication of one embodiment in the process;
Figure 10 is the structural block diagram of the interprocess communication device of one embodiment;
Figure 11 is the structural block diagram of the method call module in an example;
Figure 12 is the structural block diagram of the interprocess communication device of another embodiment;
Figure 13 is the structural block diagram of the method execution module in an example;
Figure 14 is the structural block diagram of computer equipment in one embodiment;
Figure 15 is the structural block diagram of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.
The scheme for the interprocess communication that the embodiment of the present application refers to, the application scenarios communicated between two processes.Wherein, The two processes can be in the same equipment, be to be communicated between two processes in the same equipment, such as Fig. 1 It is shown, wherein equipment A here can be subscriber terminal equipment, be also possible to server apparatus.In addition, the two processes It can be and be located at different equipment, i.e. the communication between process between two distinct devices, wherein two equipment here, it can To be subscriber terminal equipment, it is also possible to be server apparatus, being also possible to an equipment is subscriber terminal equipment, and another One equipment is server apparatus.In shown in Fig. 1, Fig. 2, server process refers to the process of the service of offer, in the embodiment of the present application Also referred to as server-side process, client process refer to the process of access service, are also referred to as client process in the embodiment of the present application.
By taking two processes are located at same equipment A as an example, the OS Type of equipment A can be android system (peace Tall and erect system), it is so that the inter-process communication methods of the application are applied to android system in the explanation of following related embodiments For be illustrated.
With reference to Fig. 3, the method for the interprocess communication in one embodiment includes the following steps S301 to step S303, should Method can be executed by client process.
Step S301: communication instruction between receiving process, by calling service binding interface function, to destination service end process It sends and calls service binding request, the binding established between the process of destination service end connects, the calling service binding request Carry client process identification information.
Wherein, above-mentioned client process identification information is the information to identify client process, client process identification The form of information is unlimited, and in some embodiments, which can be the title of client process, one In a little embodiments, in the case where being numbered for client process, which is also possible to client The number of process, in other embodiments, the client process identification information are also possible to the information of other forms, as long as can Unique identification client process.
Wherein, between executive process before communication means, first to the process of client binding service (bind server) into Row encapsulation, the service binding interface function obtained after encapsulation can be registered in system platform, so that each client is called. Wherein, there are the mode of different binding services, can mode to multiple and different binding services respectively into Row encapsulation, so as to there is multiple and different service binding interface functions.It is appreciated that in the process of practical interprocess communication In, the service binding function is encapsulated and is registered in system platform, calls directly the service binding interface function to complete this The process of binding service.
In some embodiments, client process is led between can receiving the process when any need carries out interprocess communication Letter instruction.Interprocess communication instruction, the user that can be the equipment where client process pass through the interactive operation with equipment It issues, is also possible to other processing logic sendings when meeting interprocess communication condition of the equipment where client process, this Application scheme is not defined the triggering scene of interprocess communication.
In some embodiments, by calling service binding interface function, the service of calling is sent to destination service end process and is tied up Fixed request, the binding established between the process of destination service end are connected, be can specifically include:
By calling service binding interface function, service binding interface function example is created;Wherein it is possible to using it is any can The mode of energy creates the service binding interface function example;
It is connected by the binding that service binding interface function example is established between the process of destination service end.
In some embodiments, connected by the binding that service binding interface function example is established between the process of destination service end It connects, can specifically include:
By service binding interface function example, is sent to destination service end process and call service binding request, with instruction Destination service end process executes the corresponding method of service binding interface function, to establish binding connection.
In some embodiments, for the service binding interface function example of above-mentioned creation, it is also provided with corresponding clothes Business binding interface function instance lifecycle, the service binding interface function instance lifecycle can use any possible side Formula setting, can be fixed value, the process for being also possible to the interprocess communication based on the service binding interface function example is true It is fixed.At this point, when the service binding interface function example reaches service binding interface function instance lifecycle, described in recycling Service binding interface function example.
In some embodiments, reach service binding interface function example Life Cycle in the service binding interface function example When the phase, service binding interface function example recycling notice can also be sent, to above-mentioned destination service end process to notify target to take The service binding interface function example of end process of being engaged in recycling caching, avoids the unordered growth of service binding interface function example.
In some embodiments, after the binding connection between foundation and destination service end process, reception is further comprised the steps of: And service broker's handle of the successful connection of caching of target server-side process return.
Step S302: calling service interface function, is sent by binding connection to the target process and calls service Request, the calling service request carry method information to be called.
Wherein, between executive process before communication means, first the service (service) that each server-side process provides is carried out Encapsulation, such as can be with the definition of packing service, the service interface function obtained after encapsulation can be registered in system platform, for Each client is called during carrying out interprocess communication, while each service interface letter can be stated in relevant configuration file The server-side process that several and each service interface function uses.Wherein it is possible to multiple and different services is packaged, from And obtain multiple and different service interface functions.It is appreciated that during practical interprocess communication, the service interface function It is encapsulated and be registered in system platform, call directly the process that the service interface function carrys out Method Of Accomplishment execution.
In some embodiments, service interface function is called, is sent out by binding connection to destination service end process Send calling service request, comprising: when the service interface function is singleton pattern, the service interface function is executed, to institute It states target process and sends calling service request.At this point, under singleton pattern, class only one example, at this point it is possible to directly The service interface function is executed, Xiang Suoshu target process, which is sent, calls service request.
In some embodiments, service interface function is called, is sent out by binding connection to destination service end process Send calling service request, comprising: when receiving example creation instruction, call service interface function, create dynamic proxy example; It is sent by the dynamic proxy example to the target process and calls service request.At this point, under non-singleton pattern, for one A class can create multiple and different examples, at this point it is possible to pass through based on after service interface function creation dynamic proxy example Remote agent example, which is sent, calls service request.
In some embodiments, service interface function is called, is sent out by binding connection to destination service end process Calling service request is sent, includes the following steps S3021 to step S3034.
Step S3021: calling service interface function, determines the dynamic proxy class currently called.Wherein, it is connect in the service When mouthful function is singleton pattern, can the singleton of the directly service interface function determine dynamic proxy class.In the service interface When function is not singleton pattern, the dynamic proxy class called can be determined by creation dynamic proxy example.It is appreciated that at it In his embodiment, the dynamic proxy class can also be determined using other modes.
In some embodiments, for the dynamic proxy example of above-mentioned creation, it is real to be also provided with corresponding dynamic proxy Example life cycle, the dynamic proxy instance lifecycle can be set using any possible mode, can be fixed value, The method call process that can be based on the dynamic proxy example determines.At this point, reaching dynamic generation in the dynamic proxy example When managing instance lifecycle, the dynamic proxy example is also recycled.
In some embodiments, when the dynamic proxy example reaches dynamic proxy instance lifecycle, also to above-mentioned mesh It marks server-side process and sends dynamic proxy example recycling notice, to notify the dynamic proxy of destination service end process recycling caching real Example, avoids the unordered growth of dynamic proxy example.
Step S3022: treating configured transmission and serialized, parameter after being serialized.
It is appreciated that carrying out process from different server-side processes for same or different client process Between when communicating, in the case where the service interface function for needing to call is different, the number of the parameter for needing to serialize parameter to be transmitted Amount and type may be not identical, and the embodiment of the present application is not specifically limited.
It in some embodiments, treats configured transmission and is serialized, parameter after being serialized can specifically include as follows Process.
When parameter to be transmitted is first kind parameter, recursive sequence is carried out to the variable of the parameter to be transmitted one by one Change, parameter after being serialized.In some embodiments, which can be the parameter that type is general type, which A little types can be general type can need to set in conjunction with actual techniques.
When the parameter to be transmitted is Second Type parameter, it is multiplexed predetermined sequence mode, to the parameter to be transmitted It is serialized, parameter after being serialized.In some embodiments, the Second Type parameter can be Parcelable type or The parameter of person's Primitive type.At this point, the predetermined sequence mode of above-mentioned multiplexing, can be the serializing side system Parcel Formula.Parcel serializing, the bytes of stream data after object serialization will can be written in a shared drive, other into Journey by Parcel can from this block shared drive sense byte flow data, and unserializing in pairs as.
When the parameter to be transmitted is third type parameter, the built-in variable of the parameter to be transmitted is checked one by one Afterwards, each built-in variable is serialized, parameter after being serialized.In some embodiments, which be can be The parameter of the Reference type of non-Parcelable.
When the parameter to be transmitted is four type parameter, using class name as parameter after serializing.In some embodiments, 4th type parameter can be the parameter of specific type context type.Here class name can be the dynamic of above-mentioned determination The class name of proxy class.
Step S3023: the method information to be called of the encapsulation dynamic proxy class currently called is packaged, it is described to Call method information includes: parameter and the operation return value after the identification information of the method to be called, the serializing.
Specifically the mode that call method information is packaged is treated, possible data can be packaged using any Mode carries out, and the embodiment of the present application is not specifically limited.
S3024: Xiang Suoshu destination service end process of step, which is sent, calls service request, and the calling service request carries envelope The method information to be called after dress.
It is appreciated that being that the service based on calling connects when sending calling service request to destination service end process Mouth function is sent to calling service request to destination service end process.
It is appreciated that service broker's handle of the successful connection in above-mentioned reception and the return of caching of target server-side process In the case of, above-mentioned calling service request can also carry service broker's handle.
Step S303: receiving the operation return value that destination service end process is returned based on the calling service request, The operation return value is the operation that destination service end process executes the corresponding method of the method information to be called, is obtained Operating result, and determined based on the operating result.
In some embodiments, which can be carried in the above-mentioned calling service sent to destination service end process In request, it is also possible to arrange in systems.
It, can be by receiving the destination service end during communication between above-mentioned executive process in some embodiments The argument that process returns, and call back function is called by the argument.In some embodiments, argument here can use any Possible mode determines.For example, it may be service broker's handle of above-mentioned return.
With reference to Fig. 4, the method for the interprocess communication in one embodiment includes the following steps S401 to step S403, should Method can be executed by server-side process.
Step S401: receiving and call service binding request, and service binding request is called to carry client process identification information, The connection of the binding between client process, the client process and the client are established by service binding interface function Progress recognizing information is corresponding.
Wherein, such as type, above-mentioned client process identification information in the embodiment of the method for the corresponding interprocess communication of Fig. 3 It is the information to identify client process, the form of client process identification information is unlimited, the communication means between executive process Before, first the process of client binding service (bind server) is packaged, the service binding interface letter obtained after encapsulation Number can be registered in system platform, so that each client is called.
In some embodiments, calling service binding request be can be by client process by calling service binding to connect Mouth function issues the calling by the service binding interface function example of creation after creating service binding interface function example Service binding request.At this point, after receiving calling service binding request, it can be by the service binding interface function example It is cached.Accordingly, in some embodiments, the service binding interface function example recycling of client process transmission can also be received Notice, and based on service binding interface function example recycling notice, the service binding interface function example of caching is recycled, to keep away Exempt from the unordered growth of service binding interface function example.
In some embodiments, after the binding connection between foundation and destination service end process, further comprise the steps of: to institute It states client process and returns to service broker's handle.
Step S402: receiving and call service request, and the calling service request carries method information to be called.
In some embodiments, the method information to be called which carries can be client process progress The method information to be called obtained after serializing and encapsulation.
It is appreciated that it is above-mentioned return service broker's handle in the case where, above-mentioned calling service request can also carry Service broker's handle.
In some embodiments, which be can be by client process by calling service interface function, wound It builds after dynamic proxy example, which is issued by dynamic proxy example.At this point, receiving the calling service After request, which can be cached.Accordingly, in some embodiments, the visitor can also received When the dynamic proxy example that family end process is sent recycles notice, the dynamic proxy example of caching is recycled, to avoid dynamic proxy reality The unordered growth of example.
Step S403: by service interface function, the operation of the corresponding method of the method information to be called is executed, is obtained Operating result, and operation return value is returned to the client process based on the operating result.
In some embodiments, by service interface function, the operation of the corresponding method of the method information to be called is executed, Operating result is obtained, includes the following steps S4031 to step S4033.
Step S4031: by service interface function, the method information to be called is parsed, obtains the dynamic currently called Parameter after instance of agent, the identification information and serializing of method to be called.
Step S4032: unserializing operation is carried out to parameter after the serializing, obtains parameter after unserializing.
Wherein, it when carrying out unserializing operation, based on the mode that client process is serialized, can use and sequence The corresponding unserializing mode of column mode carries out.In some embodiments, the parameter class of parameter after identification serializing can be passed through Type, in a manner of using corresponding unserializing.In some embodiments, parameter type can be carried in parameter after serializing Mark can be identified by the parameter type and use corresponding unserializing mode.In some embodiments, encapsulation can be passed through Unified serializing and unserializing interface function, pass through in serializing and when unserializing call the unified serializing and Unserializing interface function, to complete the process of serializing and unserializing.
Step S4033: by parameter after the dynamic proxy class and the unserializing, the method to be called is executed The corresponding method of identification information, obtain operating result, and based on the operating result to the client process return operate Return value.
In some embodiments, operation return value is returned to the client process based on the operating result, can be When operating result runs succeeded for method, the operation return value is returned.The operation return value, which can be carried, to be taken above-mentioned to target In the calling service request that end process of being engaged in is sent, it is also possible to arrange in systems.
In some embodiments, during communication between above-mentioned executive process, it can be adjusted back by dynamic proxy, and Argument is returned into the client process by dynamic proxy.Here argument can be determined using any possible mode. For example, it may be service broker's handle of above-mentioned return.
Based on embodiment as described above, carried out specifically below in conjunction with a concrete application example of application scheme It is bright.
In order to facilitate interprocess communication (IPC) can as common method call, application scheme is to client The process of binding service (Client bind Server) is encapsulated, and service binding interface function is obtained.Furthermore also to each The service (service) that server-side process provides is packaged, such as can obtain service interface letter with the definition of packing service Number.The mode being specifically packaged to the definition of Client bind Server and service is unlimited.The service obtained after encapsulation Binding interface function and service interface function are registered in system platform.
It, can also be in relevant configuration text for the service binding interface function and service interface function obtained after encapsulation It is stated in part.It, can be with for example, for obtained service interface function (such as definition of the service of encapsulation) after encapsulation Statement uses in the Manifest (root element of AndroidManifest.xml configuration file) the Services and its The process of operation.Wherein, in statement, it can be the service interface function for stating above-mentioned all service encapsulated.Wherein In the Service of encapsulation, it is provided with Remote method, dynamic proxy of the Remot method to realize interprocess communication.
It, can be above-mentioned by calling during actual interprocess communication after executing above-mentioned encapsulation and registration Service binding interface function and service interface function, to complete the process of interprocess communication.
During interprocess communication, client process (Client process) receive interprocess communication instruction when, By calling service binding interface function, is sent to destination service end process and call service binding request.
Refering to what is shown in Fig. 5, when Client process receives interprocess communication instruction, by leading between the process of Client process Believe that engine (IPC engine) calls service binding request, server-side process (server by calling service binding interface function to issue Process) interprocess communication engine (IPC engine) receive call service binding request, execute the service binding interface function, Establish the binding connection between Client process and Server process, wherein the method (service) that the server process executes It is executed in the Server process.After establishing between Client process and Server process successfully binding connection, Server Process generates service broker's handle (service acts on behalf of handle), and service broker's handle is returned to Client process, so as to In subsequent so that subsequent interprocess communication and example are recycled.Wherein, shown in Fig. 5 in IPC engine, be related to Client into The engine of journey and the engine of Server process.
Wherein, the same Client process can be by calling service binding interface function, with multiple and different server Process binding connection.One server can only carry out a service, can also execute multiple and different service.It can be with Understand, different service there can be corresponding different service interface functions.Wherein, the difference of different server processes Service can have different Service to act on behalf of handle, act on behalf of handle according to different Service, accessible different Service service.
Refering to what is shown in Fig. 6, after client process and server-side process success binding service, under singleton pattern, visitor Family end process issues dynamic proxy request, and after the IPC engine of client process receives dynamic proxy request, the service of determination is connect The dynamic proxy example of the dynamic proxy class (remote class) of mouth function, passes through dynamic proxy exemplary sequencesization ginseng to be transmitted Number is treated after parameter and operation return value are packaged after the identification information of call method, serializing, to destination service end into Journey, which is sent, calls service request.
Refering to what is shown in Fig. 6, after client process and server-side process success binding service, under non-singleton pattern, Client process issues dynamic proxy request and carries out first after the IPC engine of client process receives dynamic proxy request Then instantiation operation is waited for by calling service interface function creation dynamic proxy example by dynamic proxy exemplary sequences Configured transmission is treated after parameter and operation return value are packaged after the identification information of call method, serializing, is taken to target End process of being engaged in, which is sent, calls service request.Wherein, shown in Fig. 6 in IPC engine, be related to the engine and Server of Client process The engine of process.
Refering to what is shown in Fig. 7, being that Parcelable type is with parameter to be transmitted when carrying out data encapsulation and serializing Example, can serialize the parameter to be transmitted, parameter after being serialized by way of system Parcel serializing. In this process, the dynamic proxy example of client process determines IPC packet by parcel serializing, and IPC packet specifically can be with Including IPC method information and IPC parameter, IPC method information includes method name, the method class of method, the paragraph class of method, IPC parameter includes class name and corresponding data, by the determining IPC packet of serializing operation can also include others attributes and Associated class.After completing serializing, the container in IPC packet write-in ParcelUtil packet can will be obtained after serializing, it should Container in ParcelUtil packet includes the specified Parcel content part in specified Parcel content part and system.Its In, in some embodiments, in this embodiment, the parameter object after any one serializing can include: class name, be Parcelable type (Parcelable) is not Parcelable type (N-Parcelable), Primitive type (Primitive) and the content of other correlation types is gone back when determination is not Parcelable type (N-Parcelable) It may further include the content of the correlation types such as class name.
After the IPC engine of server-side process receives the calling service request, the method information to be called is parsed, is obtained Dynamic proxy example, the parameter after the identification information and serializing of method to be called that currently call, and carry out to the sequence Parameter carries out unserializing operation after columnization, obtains parameter after unserializing.Refering to what is shown in Fig. 7, passing through system Parcel sequence In the case that column mode is serialized, the IPC engine of server-side process can be read from the container in ParcelUtil packet Related method information to be called.
Under singleton pattern, the side that parameter after unserializing executes the identification information of method to be called can be directly based upon Method obtains operating result.Under non-singleton pattern, can by parameter after the dynamic proxy class and the unserializing, The method for executing the identification information of method to be called obtains operating result.When executing end and implementing result is successfully, storage The operation return value return value parsed, and operation return value return value is returned into client process.
Wherein, during above-mentioned interprocess communication, by between call back function (Callback function) Lai Shixian function Calling.CALLBACK (call back function) is the function called by function pointer.If the pointer (address) of function Another function is passed to as parameter, when the function pointed by this pointer is used as calling it, that is, this function is claimed to be One call back function.
Specifically in application scheme, refering to what is shown in Fig. 8, interprocess communication engine can provide a public call back function, Server process end can be adjusted back by dynamic proxy example as described above, and dynamic proxy example can pass through public time It adjusts and argument is returned into Client process.And Client process passes through the argument received again and goes to call true Callback, The call back function pre-cache really is at Client process end).
Wherein, as described above, during above-mentioned interprocess communication, refering to what is shown in Fig. 9, Server process can cache dynamic Instance of agent (Remote Instance).In order to avoid the unordered growth of the dynamic proxy example at server process end, need pair Remote example is recycled.Dynamic proxy example can be recycled using various possible modes.Specifically in the application In scheme, by the life cycle of Client process setting dynamic proxy example, life of the Client process in dynamic proxy example When end cycle, dynamic proxy example is recycled.In specific example, Client process passes through Dangling Reference (PhantomReference) and ReferenceQueue tracking dynamic proxy example recovering state, if dynamic proxy example It is recovered, then sends dynamic proxy example recycling notice to Server process, notice Server process recycles dynamic proxy example. When Server process receives notice dynamic proxy example recycling notice, the dynamic proxy example of caching is recycled.
Refering to what is shown in Fig. 10, the interprocess communication device in one embodiment, comprising:
Client binding module 101, for communication instruction between receiving process, by calling service binding interface function, to Destination service end process, which is sent, calls service binding request, and the binding established between the process of destination service end connects, the tune It is requested to carry client process identification information with service binding;
Method call module 102 is sent out by binding connection to the target process for calling service interface function Calling service request is sent, the calling service request carries method information to be called;
As a result receiving module 103, for receiving destination service end process based on the calling service request return Return value is operated, the operation return value is that destination service end process executes the corresponding method of the method information to be called Operation, obtain operating result, and based on the operating result determination.
In some embodiments, client binding module 101, communication instruction between receiving process, by calling service binding to connect Mouth function, creates service binding interface function example;It is sent by service binding interface function example to destination service end process Service binding request is called, the binding established between the process of destination service end connects.
In some embodiments, client binding module 101 reaches service binding in the service binding interface function example When interface function instance lifecycle, the service binding interface function example is recycled.
In some embodiments, client binding module 101, the binding connection also between foundation and destination service end process Later, the service broker's handle for the successful connection that simultaneously caching of target server-side process returns is received;
Above-mentioned calling service request carries service broker's handle.
In some embodiments, method call module 102, when the service interface function is singleton pattern, described in execution Service interface function, Xiang Suoshu target process, which is sent, calls service request.
In some embodiments, method call module 102 calls service interface function when receiving example creation instruction, Create dynamic proxy example;It is sent by the remote agent example to the target process and calls service request.
In some embodiments, method call module 102, comprising:
Dynamic proxy determining module 1021 determines the dynamic proxy class currently called for calling service interface function;
Serialization module 1022 is serialized for treating configured transmission, parameter after being serialized;
Package module 1023 is sealed for encapsulating the method information to be called of the dynamic proxy class currently called The method information to be called after dress, the method information to be called include: the identification information, described of the method to be called Parameter and the operation return value after serializing;
Request sending module 1024 calls service request, the calling service request for sending to the target process The method information to be called after carrying encapsulation.
In some embodiments, serialization module 1022 is when the parameter to be transmitted is first kind parameter, one by one to institute The variable for stating parameter to be transmitted carries out recursive sequence, parameter after being serialized.
In some embodiments, for serialization module 1022 when the parameter to be transmitted is Second Type parameter, multiplexing is predetermined Serializing mode serializes the parameter to be transmitted, parameter after being serialized.
In some embodiments, serialization module 1022 the parameter to be transmitted be third type parameter when, to it is described to After the built-in variable of configured transmission checks one by one, each built-in variable is serialized, parameter after being serialized.
In some embodiments, serialization module 1022 is when the parameter to be transmitted is four type parameter, by class masterpiece For parameter after serializing.
In some embodiments, method call module 102 also reaches dynamic proxy example life in the dynamic proxy example When the period, the dynamic proxy example is recycled.
With reference to shown in Figure 12, a kind of interprocess communication device, comprising:
Server-side binding module 121 calls service binding request for receiving, service binding request is called to carry client Progress recognizing information, by service binding interface function establish the binding between client process connection, the client into Journey is corresponding with the client process identification information;
Method call receiving module 122 calls service request for receiving, and the calling service request carries side to be called Method information;
Method execution module 123 executes the behaviour of the corresponding method of the method information to be called by service interface function Make, obtains operating result, and operation return value is returned to the client process based on the operating result.
In some embodiments, server-side binding module 121, also established by service binding interface function and client into After binding connection between journey, Xiang Suoshu client process returns to service broker's handle;
Above-mentioned calling service request carries service broker's handle.
In some embodiments, method execution module 123, comprising:
Parsing module 1231 obtains current call for parsing the method information to be called by service interface function Dynamic proxy example, parameter after the identification information and serializing of method to be called;
Unserializing module 1232, for carrying out unserializing operation to the serializing parameter, after obtaining unserializing Parameter;
Execution module 1233, for described in by parameter after the dynamic proxy class and the unserializing, executing to The corresponding method of the identification information of call method obtains operating result.
In some embodiments, method execution module 123 is adjusted back by dynamic proxy, and will be real by dynamic proxy Ginseng returns to the client process.
In some embodiments, method execution module 123, in the dynamic proxy example for receiving the client process transmission When recycling notice, the dynamic proxy example of caching is recycled.
It is appreciated that the difference based on practical application scene, interprocess communication device shown in above-mentioned Figure 10 and Figure 12, Different settings can be done.In the case where some processes are fixed as other and carry out offer service, which can be set figure Interprocess communication device shown in 12 can in the process in the case where some processes fix and only use the service of other processes It is provided with interprocess communication device shown in Fig. 10.The service of other processes can have not only been requested in some processes, but also can be it In the case that his process provides service, then it can be provided with interprocess communication device shown in Figure 10 and Figure 12 simultaneously.
Figure 14 shows the internal structure chart of computer equipment in one embodiment.The computer equipment specifically can be figure Server in 2.As shown in figure 14, it includes the processing connected by system bus which, which includes the computer equipment, Device, memory and network interface.Wherein, memory includes non-volatile memory medium and built-in storage.The computer equipment Non-volatile memory medium is stored with operating system, can also be stored with computer program, which is executed by processor When, it may make processor to realize inter-process communication methods.Computer program can also be stored in the built-in storage, the computer journey When sequence is executed by processor, processor execution information method for pushing may make.
It will be understood by those skilled in the art that structure shown in Figure 14, only part relevant to application scheme The block diagram of structure, does not constitute the restriction for the computer equipment being applied thereon to application scheme, and specific computer is set Standby may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, interprocess communication device 100 provided by the present application can be implemented as a kind of computer program Form, computer program can run in computer equipment as shown in figure 14.It can be stored in the memory of computer equipment Each program module of the interprocess communication device is formed, the computer program that each program module is constituted executes processor Step in the inter-process communication methods of each embodiment of the application described in this specification.
Figure 15 shows the internal structure chart of computer equipment in another embodiment.The computer equipment specifically can be Terminal in Fig. 1.As shown in figure 15, it includes the processing connected by system bus which, which includes the computer equipment, Device, memory, network interface, input unit and display screen.Wherein, memory includes non-volatile memory medium and interior storage Device.The non-volatile memory medium of the computer equipment is stored with operating system, can also be stored with computer program, the computer When program is executed by processor, processor may make to realize inter-process communication methods.Calculating can also be stored in the built-in storage Machine program when the computer program is executed by processor, may make communication means between processor executive process.Computer equipment Display screen can be liquid crystal display or electric ink display screen, and the input unit of computer equipment can be to be covered on display screen The touch layer of lid is also possible to the key being arranged on computer equipment shell, trace ball or Trackpad, can also be external key Disk, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Figure 15, only part relevant to application scheme The block diagram of structure, does not constitute the restriction for the computer equipment being applied thereon to application scheme, and specific computer is set Standby may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, interprocess communication device 120 provided by the present application can be implemented as a kind of computer program Form, computer program can run in computer equipment as shown in figure 15.It can be stored in the memory of computer equipment Form each program module of the interprocess communication device 120.The computer program that each program module is constituted makes processor Execute the step in the inter-process communication methods of each embodiment of the application described in this specification.
Accordingly, in one embodiment, a kind of computer equipment is provided, including memory and processor, memory are deposited Computer program is contained, when computer program is executed by processor, so that processor executes the step of above-mentioned inter-process communication methods Suddenly.The step of inter-process communication methods herein, can be the step in the inter-process communication methods of above-mentioned each embodiment.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can be read In storage medium, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, provided herein Each embodiment used in any reference to memory, storage, database or other media, may each comprise non-volatile And/or volatile memory.Nonvolatile memory may include that read-only memory (ROM), programming ROM (PROM), electricity can be compiled Journey ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Therefore, in one embodiment, a kind of computer readable storage medium is provided, computer program is stored with, is counted When calculation machine program is executed by processor, so that the step of processor executes above-mentioned inter-process communication methods.Lead between process herein The step of letter method, can be the step in the inter-process communication methods of above-mentioned each embodiment.
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously The limitation to the application the scope of the patents therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the concept of this application, various modifications and improvements can be made, these belong to the guarantor of the application Protect range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of inter-process communication methods, comprising:
Communication instruction between receiving process sends to destination service end process by calling service binding interface function and calls service Bind request, the binding established between the process of destination service end connect, callings service binding request carrying client into Journey identification information;
Service interface function is called, is sent by binding connection to the target process and calls service request, the calling Service request carries method information to be called;
Receive the operation return value that destination service end process is returned based on the calling service request, the operation return value The operation of the corresponding method of the method information to be called is executed for destination service end process, obtains operating result, and base It is determined in the operating result.
2. the method according to claim 1, wherein call service interface function, by the binding connect to Destination service end process, which is sent, calls service request, including any one in following two:
First item: when the service interface function is singleton pattern, the service interface function, Xiang Suoshu target process are executed It sends and calls service request;
Section 2: when receiving example creation instruction, service interface function is called, dynamic proxy example is created;By described Remote agent example sends to the target process and calls service request.
3. according to the method described in claim 2, it is characterized in that, call service interface function, by the binding connect to Destination service end process, which is sent, calls service request, comprising:
Service interface function is called, determines the dynamic proxy class currently called;
It treats configured transmission to be serialized, parameter after being serialized;
The method information to be called for encapsulating the dynamic proxy class currently called, the method letter to be called after being encapsulated Breath, the method information to be called includes: parameter and the behaviour after the identification information of the method to be called, the serializing Make return value;
It is sent to the target process and calls service request, it is described that service request is called to carry the method to be called after encapsulation Information.
4. according to the method described in claim 3, being serialized it is characterized in that, treating configured transmission, after being serialized Parameter, include following items in any one:
When the parameter to be transmitted is first kind parameter, recursive sequence is carried out to the variable of the parameter to be transmitted one by one Change, parameter after being serialized;
When the parameter to be transmitted is Second Type parameter, it is multiplexed predetermined sequence mode, the parameter to be transmitted is carried out Serializing, parameter after being serialized;
It is right after being checked one by one the built-in variable of the parameter to be transmitted when the parameter to be transmitted is third type parameter Each built-in variable is serialized, parameter after being serialized;
When the parameter to be transmitted is four type parameter, using class name as parameter after serializing.
5. a kind of inter-process communication methods, comprising:
It receives and calls service binding request, call service binding request to carry client process identification information, pass through service binding The binding that interface function is established between client process connects, the client process and the client process identification information It is corresponding;
It receives and calls service request, the calling service request carries method information to be called;
By service interface function, the operation of the corresponding method of the method information to be called is executed, obtains operating result, and base Operation return value is returned to the client process in the operating result.
6. according to the method described in claim 5, it is characterized in that, executing the method to be called by service interface function The operation of the corresponding method of information obtains operating result, comprising:
By service interface function, the method information to be called is parsed, obtains the dynamic proxy example currently called, to be called Parameter after the identification information and serializing of method;
Unserializing operation is carried out to parameter after the serializing, obtains parameter after unserializing;
By parameter after the dynamic proxy class and the unserializing, the identification information for executing the method to be called is corresponding Method, obtain operating result.
7. a kind of interprocess communication device, comprising:
Client binding module, for communication instruction between receiving process, by calling service binding interface function, to destination service End process, which is sent, calls service binding request, and the binding established between the process of destination service end connects, and the calling service is tied up Fixed request carries client process identification information;
Method call module is sent to the target process by binding connection and is called for calling service interface function Service request, the calling service request carry method information to be called;
As a result receiving module is returned for receiving the operation that destination service end process is returned based on the calling service request Value, the operation return value are the operation that destination service end process executes the corresponding method of the method information to be called, Operating result is obtained, and is determined based on the operating result.
8. a kind of interprocess communication device, comprising:
Server-side binding module calls service binding request for receiving, and calls service binding request to carry client process and knows Other information establishes the connection of the binding between client process, the client process and institute by service binding interface function It is corresponding to state client process identification information;
Method call receiving module calls service request for receiving, and the calling service request carries method information to be called;
Method execution module is executed the operation of the corresponding method of the method information to be called, is obtained by service interface function Operating result, and operation return value is returned to the client process based on the operating result.
9. a kind of computer equipment, including memory and processor, it is stored with computer program on the memory, feature exists The step of realizing the method as described in claim 1 to 8 any one when, the processor executes the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt The step of method as described in claim 1 to 8 any one is realized when processor executes.
CN201910172078.4A 2019-03-07 2019-03-07 Inter-process communication method and device, computer equipment and readable storage medium Active CN109933443B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910172078.4A CN109933443B (en) 2019-03-07 2019-03-07 Inter-process communication method and device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910172078.4A CN109933443B (en) 2019-03-07 2019-03-07 Inter-process communication method and device, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN109933443A true CN109933443A (en) 2019-06-25
CN109933443B CN109933443B (en) 2021-06-25

Family

ID=66986612

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910172078.4A Active CN109933443B (en) 2019-03-07 2019-03-07 Inter-process communication method and device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN109933443B (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377438A (en) * 2019-07-22 2019-10-25 广州小鹏汽车科技有限公司 The method for routing of striding course communication interface, device and system
CN110532045A (en) * 2019-09-04 2019-12-03 深圳市迅雷网络技术有限公司 A kind of striding course call method and relevant apparatus
CN110990169A (en) * 2019-11-29 2020-04-10 深圳市风云实业有限公司 Structure and method for inter-process byte stream communication by using shared memory
CN111176626A (en) * 2019-08-05 2020-05-19 腾讯科技(深圳)有限公司 Cross-programming-language code calling method and device, medium and equipment
CN111240868A (en) * 2020-01-22 2020-06-05 阿里巴巴集团控股有限公司 Instance processing and calling method, device, system and storage medium
CN111338828A (en) * 2020-03-24 2020-06-26 广州华多网络科技有限公司 Terminal equipment and application program interface calling control method thereof
CN111367853A (en) * 2020-05-29 2020-07-03 腾讯科技(深圳)有限公司 Data transmission method, device, equipment and computer readable storage medium
CN111400070A (en) * 2020-03-24 2020-07-10 广州华多网络科技有限公司 Terminal equipment and cross-process interface calling implementation and execution method thereof
CN111443961A (en) * 2020-03-24 2020-07-24 广州华多网络科技有限公司 Terminal equipment and cross-process communication method thereof
CN111880866A (en) * 2020-07-30 2020-11-03 广州华多网络科技有限公司 Cross-process callback execution method, device, equipment and storage medium
CN112433809A (en) * 2020-11-05 2021-03-02 北京浪潮数据技术有限公司 JVM memory management method, device, equipment and readable storage medium
CN112445628A (en) * 2019-09-03 2021-03-05 腾讯科技(深圳)有限公司 Inter-process resource sharing method and device and electronic equipment
CN112749027A (en) * 2020-12-31 2021-05-04 深圳市迅雷网络技术有限公司 Rendering inter-process communication method, electronic equipment and readable storage device
CN112788003A (en) * 2020-12-28 2021-05-11 浪潮通用软件有限公司 RPC communication method and equipment based on micro-service architecture
CN113032161A (en) * 2019-12-25 2021-06-25 北京比特大陆科技有限公司 Process communication method and related product
CN113296834A (en) * 2021-05-21 2021-08-24 南京大学 Reverse engineering-based android closed source service type information extraction method
WO2021217529A1 (en) * 2020-04-29 2021-11-04 华为技术有限公司 Method and system for inter-process communication
CN113971050A (en) * 2021-09-10 2022-01-25 深圳市辰卓科技有限公司 Method and device for calling dynamic link library with any architecture
WO2023093675A1 (en) * 2021-11-25 2023-06-01 北京字节跳动网络技术有限公司 Bidirectional communication method, apparatus and device, and medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103526A (en) * 2011-02-14 2011-06-22 博视联(苏州)信息科技有限公司 Method and system for performing inter-process communication between server and client by service management
CN102520936A (en) * 2011-11-30 2012-06-27 厦门雅迅网络股份有限公司 Method for realizing sharing of Socket communication service on Android platform
CN103902390A (en) * 2014-03-12 2014-07-02 深圳创维-Rgb电子有限公司 Inter-process communication method based on Android application layer and basis application communication system
CN104092767A (en) * 2014-07-21 2014-10-08 北京邮电大学 Posting/subscribing system for adding message queue models and working method thereof
US20150074684A1 (en) * 2013-09-11 2015-03-12 Cellrox, Ltd. Techniques for enabling inter-process communication (ipc) among multiple personas in a mobile technology platform
CN106547567A (en) * 2016-11-25 2017-03-29 山东大学 Interprocess communication system and its implementation under multi-service in a kind of Android system
CN106648928A (en) * 2016-11-29 2017-05-10 成都广达新网科技股份有限公司 Method and device for inter-process communication
CN106897611A (en) * 2017-03-03 2017-06-27 金光 Secure virtual mobile applications running environment system and method and application without root authority
CN107977274A (en) * 2017-10-19 2018-05-01 北京奇艺世纪科技有限公司 The control method and device that SDK is called

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103526A (en) * 2011-02-14 2011-06-22 博视联(苏州)信息科技有限公司 Method and system for performing inter-process communication between server and client by service management
CN102520936A (en) * 2011-11-30 2012-06-27 厦门雅迅网络股份有限公司 Method for realizing sharing of Socket communication service on Android platform
US20150074684A1 (en) * 2013-09-11 2015-03-12 Cellrox, Ltd. Techniques for enabling inter-process communication (ipc) among multiple personas in a mobile technology platform
CN103902390A (en) * 2014-03-12 2014-07-02 深圳创维-Rgb电子有限公司 Inter-process communication method based on Android application layer and basis application communication system
CN104092767A (en) * 2014-07-21 2014-10-08 北京邮电大学 Posting/subscribing system for adding message queue models and working method thereof
CN106547567A (en) * 2016-11-25 2017-03-29 山东大学 Interprocess communication system and its implementation under multi-service in a kind of Android system
CN106648928A (en) * 2016-11-29 2017-05-10 成都广达新网科技股份有限公司 Method and device for inter-process communication
CN106897611A (en) * 2017-03-03 2017-06-27 金光 Secure virtual mobile applications running environment system and method and application without root authority
CN107977274A (en) * 2017-10-19 2018-05-01 北京奇艺世纪科技有限公司 The control method and device that SDK is called

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CJH94520: "Binder机制-简单用法(一)", 《HTTPS://BLOG.CSDN.NET/CJH94520/ARTICLE/DETAILS/71374872》 *

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377438A (en) * 2019-07-22 2019-10-25 广州小鹏汽车科技有限公司 The method for routing of striding course communication interface, device and system
CN111176626A (en) * 2019-08-05 2020-05-19 腾讯科技(深圳)有限公司 Cross-programming-language code calling method and device, medium and equipment
CN111176626B (en) * 2019-08-05 2022-04-19 腾讯科技(深圳)有限公司 Cross-programming-language code calling method and device, medium and equipment
CN112445628B (en) * 2019-09-03 2023-10-24 腾讯科技(深圳)有限公司 Inter-process resource sharing method and device and electronic equipment
CN112445628A (en) * 2019-09-03 2021-03-05 腾讯科技(深圳)有限公司 Inter-process resource sharing method and device and electronic equipment
CN110532045A (en) * 2019-09-04 2019-12-03 深圳市迅雷网络技术有限公司 A kind of striding course call method and relevant apparatus
CN110990169A (en) * 2019-11-29 2020-04-10 深圳市风云实业有限公司 Structure and method for inter-process byte stream communication by using shared memory
CN110990169B (en) * 2019-11-29 2022-11-01 深圳市风云实业有限公司 Structure and method for inter-process byte stream communication by using shared memory
CN113032161A (en) * 2019-12-25 2021-06-25 北京比特大陆科技有限公司 Process communication method and related product
CN113032161B (en) * 2019-12-25 2024-06-04 北京比特大陆科技有限公司 Process communication method and related product
CN111240868A (en) * 2020-01-22 2020-06-05 阿里巴巴集团控股有限公司 Instance processing and calling method, device, system and storage medium
CN111240868B (en) * 2020-01-22 2024-04-02 阿里巴巴集团控股有限公司 Instance processing and calling method, device, system and storage medium
CN111400070A (en) * 2020-03-24 2020-07-10 广州华多网络科技有限公司 Terminal equipment and cross-process interface calling implementation and execution method thereof
CN111443961B (en) * 2020-03-24 2023-04-11 广州方硅信息技术有限公司 Terminal equipment and cross-process communication method thereof
CN111338828A (en) * 2020-03-24 2020-06-26 广州华多网络科技有限公司 Terminal equipment and application program interface calling control method thereof
CN111443961A (en) * 2020-03-24 2020-07-24 广州华多网络科技有限公司 Terminal equipment and cross-process communication method thereof
WO2021190469A1 (en) * 2020-03-24 2021-09-30 广州华多网络科技有限公司 Terminal apparatus, and control method for calling application program interface therefor
CN111400070B (en) * 2020-03-24 2023-05-19 广州华多网络科技有限公司 Terminal equipment and cross-process interface calling realization and execution method thereof
WO2021217529A1 (en) * 2020-04-29 2021-11-04 华为技术有限公司 Method and system for inter-process communication
CN111367853A (en) * 2020-05-29 2020-07-03 腾讯科技(深圳)有限公司 Data transmission method, device, equipment and computer readable storage medium
CN111880866A (en) * 2020-07-30 2020-11-03 广州华多网络科技有限公司 Cross-process callback execution method, device, equipment and storage medium
CN111880866B (en) * 2020-07-30 2024-03-12 广州方硅信息技术有限公司 Cross-process callback execution method, device, equipment and storage medium
CN112433809A (en) * 2020-11-05 2021-03-02 北京浪潮数据技术有限公司 JVM memory management method, device, equipment and readable storage medium
CN112433809B (en) * 2020-11-05 2023-12-22 北京浪潮数据技术有限公司 JVM memory management method, device, equipment and readable storage medium
CN112788003A (en) * 2020-12-28 2021-05-11 浪潮通用软件有限公司 RPC communication method and equipment based on micro-service architecture
CN112749027A (en) * 2020-12-31 2021-05-04 深圳市迅雷网络技术有限公司 Rendering inter-process communication method, electronic equipment and readable storage device
CN113296834A (en) * 2021-05-21 2021-08-24 南京大学 Reverse engineering-based android closed source service type information extraction method
CN113296834B (en) * 2021-05-21 2023-11-03 南京大学 Android closed source service type information extraction method based on reverse engineering
CN113971050A (en) * 2021-09-10 2022-01-25 深圳市辰卓科技有限公司 Method and device for calling dynamic link library with any architecture
WO2023093675A1 (en) * 2021-11-25 2023-06-01 北京字节跳动网络技术有限公司 Bidirectional communication method, apparatus and device, and medium

Also Published As

Publication number Publication date
CN109933443B (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN109933443A (en) Inter-process communication methods, device, computer equipment and readable storage medium storing program for executing
US11409949B2 (en) Mobile device resource provisioning system and method
WO2021109735A1 (en) Cross-chain-network-based resource processing method, and device
EP3837604B1 (en) In situ triggered function as a service within a service mesh
US7210121B2 (en) Method and system for generating first class citizen application implementing native software application wrapper
CN110224996A (en) Network Access Method, device, computer equipment and the storage medium of application program
CN110187902B (en) Project transformation method, device, equipment and storage medium based on spring boot
US20090083632A1 (en) Representing user interactions as a synchronous action in a business process flow
US9602329B1 (en) Dynamic remote procedure call
US7162721B2 (en) Application-independent API for distributed component collaboration
CN102227901A (en) Trickle sync protocol
CN110049059A (en) A kind of outer net equipment and Intranet communication between devices method and relevant apparatus
CN113688186B (en) Intelligent contract execution method, engine and block link point
CN109118291A (en) User authen method, device and computer equipment in advertisement tasks popularization
CN109725887B (en) Data interaction method and device based on message research and development framework and terminal equipment
CN109815202B (en) Log editing method and related device
CN110209973A (en) A kind of web game loading method and device
CN113315829B (en) Client offline H5 page loading method and device, computer equipment and medium
CN109460215A (en) Application control method and device
CN114637508A (en) VUE-based label parameter transfer method, device, equipment and storage medium
CN107491330A (en) A kind of method for improving the built-in browser speed of service
CN113608995A (en) Number making method and device, computer equipment and storage medium
CN110505258A (en) Webpage load and response method, device, computer equipment and storage medium
Tarkoma Mobile middleware: supporting applications and services
Asif et al. Hosting Web Services on Mobile Devices

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