Function for calling back the persistent connection status and data to be transmitted.
void(CALLBACK *fRemoteConfigCallback)( DWORD dwType, void *lpBuffer, DWORD dwBufLen, void *pUserData );
[OUT] Connection statuses, see the macro definitions below:
enum _NET_SDK_CALLBACK_TYPE_{
NET_SDK_CALLBACK_TYPE_STATUS = 0,
NET_SDK_CALLBACK_TYPE_PROGRESS = 1,
NET_SDK_CALLBACK_TYPE_DATA = 2
}NET_SDK_CALLBACK_TYPE
[OUT] Pointer of buffer for saving progress, status, and related data to be called back, which relates to dwType, see details in the following table.
|
dwType |
lpBuffer |
|---|---|
|
NET_SDK_CALLBACK_TYPE_STATUS |
If dwBufLen is 4, lpBuffer is 4-byte connection status; if dwBufLen is 8, lpBuffer consists of 4-byte connection status and 4-byte error code. The connection status is enumerated in NET_SDK_CALLBACK_STATUS_NORMAL |
|
NET_SDK_CALLBACK_TYPE_PROGRESS |
Connection progress value. |
|
NET_SDK_CALLBACK_TYPE_DATA |
Data structures to be returned, which are different according to different commands (dwCommand) in NET_DVR_StartRemoteConfig. |
[OUT] Buffer size.
[OUT] User data.