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_SetRegisterCallback

### Interface Definition

C++C#

    1
    2
    3
    BOOL NET_SDK_SetRegisterCallback(
        ACCEPT_REGISTER_CALLBACK fRegisterCBFun,
        void* pUser);

    1
    2
    3
    public static extern bool NET_SDK_SetRegisterCallback(
        ACCEPT_REGISTER_CALLBACK fRegisterCBFun,
        IntPtr pUser);

### Function Description

The device receives the callback function of the local platform port number actively registered by the DVR.

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
fRegisterCBFunin | `ACCEPT_REGISTER_CALLBACK` | The device receives the callback information of the local platform port number actively registered by the DVR.
pUserin | void* | Custom parameters passed in by the user.

### Return Value

- Type：BOOL

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

### Remarks

None

Error Code