Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# NET_SDK_SetConnectTime

### Interface Definition

C++C#

    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);

### Function Description

Set SDK connection parameters.

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
dwWaitTimein | DWORD | Timeout, in milliseconds, must be greater than 300. The actual maximum timeout is the connect timeout (which varies from system to system), and any time exceeding it is invalid. The default value is 5000
dwTryTimesin | DWORD | The default value of the connection attempt number is 3.

### Return Value

- Type：BOOL

- Remark：Returns TRUE if successful, FALSE if failed.

### Remarks

None

Error Code