mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-23 16:59:54 +00:00
fix: Add a constraint on Session
Signed-off-by: baiyuxin <baiyuxin3@huawei.com>
This commit is contained in:
parent
42b28c2d35
commit
eafaac1317
@ -54,6 +54,7 @@ The main code directory structure of DSoftBus is as follows:
|
||||
|
||||
- The devices between which you want to set up a connection must be in the same LAN.
|
||||
- Before setting up a connection between two devices, you must bind the devices. For details about the binding process, see relevant descriptions in the Security subsystem readme file.
|
||||
- After the data transmission is complete, the service should actively close the session and release resources.
|
||||
|
||||
## Usage<a name="section1312121216216"></a>
|
||||
|
||||
|
@ -55,6 +55,7 @@
|
||||
|
||||
- 组网设备需在同一局域网中 或者 距离相近的近场设备间。
|
||||
- 组网之前,需先完成设备绑定,绑定流程参见安全子系统中说明。
|
||||
- 传输完成数据收发之后,业务要主动关闭会话,释放资源。
|
||||
|
||||
## 说明<a name="section1312121216216"></a>
|
||||
|
||||
@ -245,7 +246,7 @@
|
||||
int SetFileReceiveListener(const char *pkgName, const char *sessionName,const IFileReceiveListener *recvListener, const char *rootDir);
|
||||
```
|
||||
|
||||
3. 创建会话 ,用于收发数据。
|
||||
3. 创建会话,用于收发数据。
|
||||
|
||||
```C
|
||||
// 创建会话
|
||||
|
Loading…
Reference in New Issue
Block a user