跳转至

NET_SDK_SetConnectTime

接口定义

1
2
3
BOOL NET_SDK_SetConnectTime(
    DWORD dwWaitTime = 5000,
    DWORD dwTryTimes = 3);
1
2
3
public static extern bool NET_SDK_SetConnectTime(
    UInt32 dwWaitTime = 5000,
    UInt32 dwTryTimes = 3);

功能描述

设置SDK连接参数。

参数说明

参数 类型 说明
dwWaitTimein DWORD 超时时间,单位毫秒,取值需大于300。实际最大超时时间为connect超时时间(connect超时时间因系统的不同而不同),超出部分无效。默认值为5000
dwTryTimesin DWORD 连接尝试次数(保留),参数默认值为3。

返回值

  • 类型:BOOL

  • 说明:成功返回TRUE,失败返回FALSE。

备注

错误码