The current repo belongs to Closed status, and some functions are restricted. For details, please refer to the description of repo status
1 Star 1 Fork 5.1K

fork_ohos_wj / docs
Closed

forked from OpenHarmony / docs 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
IServerProxy.md 4.89 KB
Copy Edit Raw Blame History
wenjun authored 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

IServerProxy

Overview

Related Modules:

Registry

Description:

Defines the base class of the server proxy object.

When the server provides cross-process system capabilities, it uses INHERIT_SERVER_IPROXY to define the server proxy.

Summary

Data Fields

Variable Name

Description

INHERIT_IUNKNOWN

 

Invoke )(IServerProxy *iProxy, int funcId, void *origin, IpcIo *req, IpcIo *reply)

int32(* 

Unmarshals the IPC message received by the server.

Details

Field Documentation

INHERIT_IUNKNOWN

IServerProxy::INHERIT_IUNKNOWN

Description:

This class inherits from IUnknown.

Invoke

int32(* IServerProxy::Invoke) ([IServerProxy](IServerProxy.md) *iProxy, int funcId, void *origin, IpcIo *req, IpcIo *reply)

Description:

Unmarshals the IPC message received by the server.

This function is implemented by developers and called by the system. This function runs in the message processing thread of the service. Do not block the message processing thread; otherwise, the function may fail to be executed.

Parameters:

Name

Description

Proxy Indicates the pointer to the server proxy object.
funcId Indicates the ID of the server function to be invoked by the client.
origin Indicates the original IPC message, from which the header information can be obtained.
req ipc Indicates the message body, from which data can be obtained.
reply Indicates the output parameter, which is used to respond to the message. The value can contain a maximum of five objects and 200 bytes.

Returns:

Returns EC_SUCCESS if the unmarshalling is successful; returns other error codes if the unmarshalling fails.

1
https://gitee.com/fork_ohos_wj/docs.git
git@gitee.com:fork_ohos_wj/docs.git
fork_ohos_wj
docs
docs
master

Search

53164aa7 5694891 3bd8fe86 5694891