fix:Update IPC-related information;

Signed-off-by: libaoping <libaoping1@huawei.com>
This commit is contained in:
libaoping 2022-08-25 11:30:34 +08:00
parent a8e3771d1b
commit 96a5b6c485
2 changed files with 6 additions and 4 deletions

View File

@ -208,12 +208,13 @@ int TestAbilityProxy::TestPingService(const std::u16string &dummy) {
Send a request synchronously or asynchronously. Send a request synchronously or asynchronously.
The **MessageOption** parameter for the **sendRequest\(\)** method can be set to **TF\_SYNC**, **TF\_ASYNC**, or **TF\_ACCEPT\_FDS** using the **MessageOption** constructor or **void SetFlags\(int flags\)**. The default value is **TF\_SYNC**. The **MessageOption** parameter for the **sendRequest\(\)** method can be set to **TF\_SYNC**, **TF\_ASYNC**, Using the **MessageOption** constructor or **void SetFlags\(int flags\)**. The default value is **TF\_SYNC**.
``` ```
int SendRequest(uint32_t code, MessageParcel &data, int SendRequest(uint32_t code, MessageParcel &data,
MessageParcel &reply, MessageOption &option) override; MessageParcel &reply, MessageOption &option) override;
MessageOption option = { MessageOption::TF_ASYNC }; MessageOption option;
option.setFlags(option.TF_ASYNC);
``` ```
Register and start an SA. Register and start an SA.

View File

@ -386,12 +386,13 @@ deps = [
5. 同步调用与异步调用 5. 同步调用与异步调用
essageOption作为发送接口原型如下的入参可设定同步TF\_SYNC、异步TF\_ASYNC、接收FDTF\_ACCEPT\_FDS默认情况下设定为同步其余可通过MessageOption构造方法或void SetFlags\(int flags\)设定。 MessageOption作为发送接口原型如下的入参可设定同步TF\_SYNC、异步TF\_ASYNC默认情况下设定为同步其余可通过MessageOption构造方法或void SetFlags\(int flags\)设定。
``` ```
int SendRequest(uint32_t code, MessageParcel &data, int SendRequest(uint32_t code, MessageParcel &data,
MessageParcel &reply, MessageOption &option) override; MessageParcel &reply, MessageOption &option) override;
MessageOption option = { MessageOption::TF_ASYNC }; MessageOption option;
option.setFlags(option.TF_ASYNC);
``` ```