Shared memory reusable IPC library
AssigneeRed Hat, Inc.
InventorSteven Dake
Life of this patent
Estimating the term…
Abstract
An apparatus and a method for a shared reusable (IPC) library. The shared reusable IPC library includes a client IPC library and a server IPC library. The client IPC library communicates with a client application. The server IPC library communicates with the sender application. The client IPC library includes instructions for creating, destroying, sending, or receiving IPC messages to and from the client application. The server IPC library includes an initialization function for the server application.
Claims20
A method comprising:
- forming, by a processing device, a client server interprocess communication (IPC) interface comprising a unified IPC library for a client application and a server application, the unified IPC library comprising a client IPC library and a server IPC library;
- providing, by the processing device, an initialization function in the server IPC library to establish an IPC connection between the client application and the server application in request to a first IPC message among a plurality of IPC messages in the client IPC library, wherein the initialization function initializes a plurality of functions at the server application;
- interfacing, by the processing device, at the client IPC interface, the client application with the client IPC library and the server application with the server IPC library, wherein the client application communicates with the server application by transmitting data associated with executing of the first IPC message from the client IPC library of the unified IPC library to the server IPC library of the unified IPC library, wherein the server IPC library sends the data to the server application;
- the server application to share the unified IPC library, wherein the sharing comprising:
- initializing, by the processing device, a communication with the server application upon validation of a security object in an initialization request against the initialization function;
- in response to determining that the security object is valid, requesting, by the processing device, an exit function from the plurality of functions for a shutdown of the communication at the server application upon disconnection from the client application;
- and
- requesting, by the processing device, a proper handler function from the plurality of functions with replying to a request with a second IPC message among the plurality of IPC messages in the client IPC library of the unified IPC library with parameters previously defined in the IPC connection.
A non-transitory computer-readable storage medium, having instructions stored therein, which when executed by a processing device, cause the processing device to:
- form, by the processing device, a client server interprocess communication (IPC) interface comprising a unified IPC library for a client application and a server application, the unified IPC library comprising a client IPC library and a server IPC library;
- provide, by the processing device, an initialization function in the server IPC library to establish an IPC connection between the client application and the server application in request to a first IPC message among a plurality of IPC messages in the client IPC library, wherein the initialization function initializes a plurality of functions at the server application;
- interface, by the processing device, at the client IPC interface, the client application with the client IPC library and the server application with the server IPC library, wherein the client application communicates with the server application by transmitting data associated with executing of the first IPC message from the client IPC library of the unified IPC library to the server IPC library of the unified IPC library, wherein the server IPC library sends the data to the server application;
- the server application to share the unified IPC library, wherein to share, the server application is to:
- initialize, by the processing device, a communication with the server application upon validation of a security object in an initialization request against the initialization function;
- in response to determining that the security object is valid, request, by the processing device, an exit function from the plurality of functions for a shutdown of the communication at the server application upon disconnection from the client application;
- and
- request, by the processing device, a proper handler function from the plurality of functions with replying to a request with a second IPC message among the plurality of IPC messages in the client IPC library of the unified IPC library with parameters previously defined in the IPC connection.
A system comprising:
- a memory;
- and
- a processing device coupled with the memory to:
- form a client server interprocess communication (IPC) interface comprising a unified IPC library for a client application and a server application, the unified IPC library having a server IPC library and a client IPC library;
- provide an initialization function in the server IPC library to establish an IPC connection between the client application and the server application in request to a first IPC message among a plurality of IPC messages in the client IPC library, wherein the initialization function initializes a plurality of functions at the server application;
- interface at the client IPC interface, the client application with the client IPC library and the server application with the server IPC library, wherein the client application communicates with the server application by transmitting data associated with executing of the first IPC message from the client IPC library of the unified IPC library to the server IPC library of the unified IPC library, wherein the server IPC library sends the data to the server application;
- the server application to share the unified IPC library, wherein to share, the server application is to:
- initialize communication with the server application upon validation of a security object in an initialization request against the initialization function;
- in response to determining that the security object is valid, request an exit function from the plurality of functions for a shutdown of the communication at the server application upon disconnection from the client application;
- and
- request a proper handler function from the plurality of functions with replying to a request with a second IPC message among the plurality of IPC messages in the client IPC library of the unified IPC library with parameters previously defined in the IPC connection.
Dependencies are inferred from the claim text.