1 Star 0 Fork 5K

黑_黑 / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
IClientProxy.md 5.23 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

IClientProxy

Overview

Related Modules:

Registry

Description:

Defines the client proxy object.

This object is used for the IPC with the server. If you want to use the same invocation mode as that on the server, create an object inherited from

and implement serialization.

Since:

1.0

Version:

1.0

Summary

Data Fields

Variable Name

Description

INHERIT_IUNKNOWN

 

Invoke )(IClientProxy *proxy, int funcId, IpcIo *request, IOwner owner, INotify notify)

int(* 

Sends an IPC message from the client to the IServerProxy.

Details

Field Documentation

INHERIT_IUNKNOWN

IClientProxy::INHERIT_IUNKNOWN

Description:

Inherites the IUnknown base class.

Invoke

int(* IClientProxy::Invoke) ([IClientProxy](IClientProxy.md) *proxy, int funcId, IpcIo *request, IOwner owner, [INotify](Registry.md#ga362a17c1bda1aace88d42dcbc88bdfac) notify)

Description:

Sends an IPC message from the client to the IServerProxy.

This function is used for IPC. The passed proxy is used to obtain the server information. Then, request carries the request message to be sent to the server and processed by the function specified by funcId. notify is a callback function used to process the response message.

Parameters:

Name

Description

proxy Indicates the pointer of the client proxy object.
funcId Indicates the ID of the function implemented on the server.
request Indicates the pointer to the serialized request message.
owner Indicates the receiver (generics type) of the response message.
notify Indicates the callback function that notifies the client of the response message.

Returns:

Returns EC_SUCCESS if the IPC message is sent successfully; returns other error codes if the message fails to be sent.

1
https://gitee.com/cxp.git.oschina.net/docs.git
git@gitee.com:cxp.git.oschina.net/docs.git
cxp.git.oschina.net
docs
docs
master

搜索帮助