mirror of
https://gitee.com/openharmony/communication_ipc
synced 2024-11-23 07:50:24 +00:00
fix:Update IPC-related information;
Signed-off-by: libaoping <libaoping1@huawei.com>
This commit is contained in:
parent
a8e3771d1b
commit
96a5b6c485
@ -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.
|
||||||
|
@ -386,12 +386,13 @@ deps = [
|
|||||||
|
|
||||||
5. 同步调用与异步调用
|
5. 同步调用与异步调用
|
||||||
|
|
||||||
essageOption作为发送接口(原型如下)的入参,可设定同步(TF\_SYNC)、异步(TF\_ASYNC)、接收FD(TF\_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);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user