NET_SDK_LoginEx¶
Interface Definition¶
1 2 3 4 5 6 7 8 | |
1 2 3 4 5 6 7 8 | |
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.