提交 ed4cd5a8 编写于 作者: Y Yangys

Update

Signed-off-by: NYangys <yangyousheng@huawei.com>
Change-Id: I4856265acdc35e7e0cc1a6b2af14fcb450dab71d
上级 1bba1792
...@@ -15,7 +15,7 @@ import connection from '@ohos.net.connection' ...@@ -15,7 +15,7 @@ import connection from '@ohos.net.connection'
createNetConnection(netSpecifier?: NetSpecifier, timeout?: number): NetConnection createNetConnection(netSpecifier?: NetSpecifier, timeout?: number): NetConnection
返回一个NetConnection对象,netSpecifier指定关注的网络的各项特征,undefined时关注默认网络;timeout是超时时间(单位是毫秒),undefined时默认值为0;netSpecifier是timeout的必要条件,两者都没有则表示关注默认网络。 返回一个NetConnection对象,netSpecifier指定关注的网络的各项特征;timeout是超时时间(单位是毫秒);netSpecifier是timeout的必要条件,两者都没有则表示关注默认网络。
**系统能力**:SystemCapability.Communication.NetManager.Core **系统能力**:SystemCapability.Communication.NetManager.Core
...@@ -23,8 +23,8 @@ createNetConnection(netSpecifier?: NetSpecifier, timeout?: number): NetConnectio ...@@ -23,8 +23,8 @@ createNetConnection(netSpecifier?: NetSpecifier, timeout?: number): NetConnectio
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| ------------ | ----------------------------- | ---- | ------------------------------------------------------------ | | ------------ | ----------------------------- | ---- | ------------------------------------------------------------ |
| netSpecifier | [NetSpecifier](#netspecifier) | 否 | 指定网络的各项特征,不指定关注默认网络。 | | netSpecifier | [NetSpecifier](#netspecifier) | 否 | 指定网络的各项特征,不指定或为undefined时关注默认网络。 |
| timeout | number | 否 | 获取netSpecifier指定的网络时的超时时间,仅netSpecifier存在时生效。 | | timeout | number | 否 | 获取netSpecifier指定的网络时的超时时间,仅netSpecifier存在时生效,undefined时默认值为0。 |
**返回值:** **返回值:**
...@@ -1840,7 +1840,7 @@ connection.getDefaultNet().then(function (netHandle) { ...@@ -1840,7 +1840,7 @@ connection.getDefaultNet().then(function (netHandle) {
| ------ | ------ | --- |------------------------- | | ------ | ------ | --- |------------------------- |
| host | string | 否 | 代理服务器主机名。 | | host | string | 否 | 代理服务器主机名。 |
| port | number | 否 | 主机端口。 | | port | number | 否 | 主机端口。 |
| exclusionList | Array<string> | 否 | 不使用代理服务器的屏蔽列表,列表内元素个数上限为128。 | | exclusionList | Array<string> | 否 | 不使用代理服务器的屏蔽列表,列表内元素拼接后长度不可超过96字节。<br>例如:“baidu.com,zhihu.com”为20字节。 |
## NetSpecifier ## NetSpecifier
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册