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

  1. IClientProxy::INHERIT_IUNKNOWN

Description:

Inherites the IUnknown base class.

Invoke

  1. int(* IClientProxy::Invoke) ([IClientProxy]($api-api-SmartVision-Devices-IClientProxy.md) *proxy, int funcId, IpcIo *request, IOwner owner, [INotify]($api-api-SmartVision-Devices-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.