Skip to content

NET_SDK_LoginEx

Interface Definition

1
2
3
4
5
6
7
8
LONG NET_SDK_LoginEx(
    char* sDVRIP,
    WORD wDVRPort,
    char* sUserName,
    char* sPassword,
    LPNET_SDK_DEVICEINFO lpDeviceInfo,
    NET_SDK_CONNECT_TYPE eConnectType,
    const char* sDevSN = NULL);
1
2
3
4
5
6
7
8
public static extern Int32 NET_SDK_LoginEx(
    String sDVRIP,
    UInt16 wDVRPort,
    String sUserName,
    String sPassword,
    ref NET_SDK_DEVICEINFO lpDeviceInfo,
    NET_SDK_CONNECT_TYPE eConnectType,
    String sDevSN);

Function Description

Extension interface of user registration device (NET_SDK_Login).

Parameter Description

Parameters Type Remark
sDVRIPin char* Device IP address or P2P server address (P2P server address in P2P mode).
wDVRPortin WORD Device port number (P2P server port number in P2P mode).
sUserNamein char* The user name for logging in.
sPasswordin char* User password.
lpDeviceInfoout LPNET_SDK_DEVICEINFO Device information NET_SDK_DEVICEINFO.
eConnectTypein NET_SDK_CONNECT_TYPE Device connection type, see below about NET_SDK_CONNECT_TYPE.
sDevSNin char* Device serial number in P2P mode. This parameter is ignored in TCP mode.

Return Value

  • type:LONG

  • remark:-1 indicates failure, and other values ​​indicate the returned user ID value. This user ID is unique, and all subsequent operations on the device must be performed using this ID.

Remarks

The device allows 32 registered user names and a maximum of 128 users to be registered at the same time.

Error Code