NET_DVR_USER_LOGIN_INFO

Structure About Login Parameters

Member

Data Type

Description

sDeviceAddress

char

Device IP address, or domain name.

byUseTransport

BYTE

Enable capability transmission or not: 0-no (default), 1-yes.

wPort

WORD

Device port number, e.g., 8000 (when login by private protocol), 80 (when login by text protocol).

sUserName

char

User name for logging in to device.

sPassword

char

Login password.

cbLoginResult

fLoginResultCallBack

Callback function used to return login status, it is valid only when bUseAsynLogin is "1".

pUser

void*

User data.

bUseAsynLogin

BOOL

Whether to enable asynchronous login: 0-no, 1-yes.

byProxyType

BYTE

Proxy server type: 0-no proxy, 1-standard proxy, 2-EHome proxy.

byUseUTCTime

BYTE

0-not convert (default), 1-input or output UTC time, 2-input or output local time.

byLoginMode

BYTE

Login mode: 0-login by private protocol, 1-login by text protocol, 2-self-adaptive (it is available when the protocol type supported by device is unknown, and this mode does not support asynchronous login).

byHttps

BYTE

Whether to enable TLS for login (by private protocol or by text protocol): 0-no, 1-yes, 2-self-adaptive (which is usually used when the protocol type supported by device is unknown. Both HTTP and HTTPS requests will be sent).

iProxyID

LONG

Proxy server No.

byVerifyMode

BYTE

Whether to enable verification mode: 0-no, 1-bidirectional verification (currently not available), 2-unidirectional verification (it is valid when byLoginMode is 0 and byHttps is 1); when byVerifyMode is 0, CA certificate is not required, when byVerifyMode is 2, you should call NET_DVR_SetSDKLocalCfg to load CA certificate, and the enumeration value is "NET_SDK_LOCAL_CFG_CERTIFICATION".

byRes3

BYTE[]

Reserved, the maximum length is 119 bytes.