目录

Glossary

D

[h2]DeathRecipient

A callback mechanism for subscribing to the lifecycle status of a remote stub object. After the proxy registers a callback, the callback is automatically invoked when the process hosting the remote stub exits or when the SoftBus connection used by RPC is disconnected. This mechanism allows the proxy to release local proxy objects and related resources.

I

[h2]Inter Process Communication (IPC)

An intra-device inter-process communication mechanism implemented on top of the Binder driver. IPC follows a client-server model. The client obtains a proxy for the server, sends requests through the proxy, and the server-side stub processes the requests and returns the results. IPC is typically used for background services to provide cross-process API invocation and data transfer within a device.

R

[h2]Remote Procedure Call (RPC)

A cross-device inter-process communication mechanism implemented on top of SoftBus. RPC uses the same client-server architecture and proxy-stub model as IPC. It is typically used for distributed scenarios that require remote API invocation and data transfer across devices. Unlike IPC, which communicates only within a device through the Binder driver, RPC communicates across devices through SoftBus.

S

[h2]Stub

In the IPC/RPC communication model, the server-side object is called a stub, and the client-side object is called a proxy. The stub receives requests from the proxy, processes them, and returns the results. The stub implements the request handling logic, while the proxy provides the corresponding request invocation methods.