fix: Add a constraint on Session

Signed-off-by: baiyuxin <baiyuxin3@huawei.com>
This commit is contained in:
baiyuxin 2023-10-23 22:16:40 +08:00
parent 42b28c2d35
commit eafaac1317
2 changed files with 3 additions and 1 deletions

View File

@ -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>

View File

@ -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
// 创建会话