跳转至

NET_SDK_SetRegisterPort

接口定义

1
2
3
4
BOOL NET_SDK_SetRegisterPort(
    WORD wRegisterPort,
    REG_LOGIN_INFO* pLoginInfo = NULL,
    unsigned int deviceNum = 0);
1
2
3
4
public static extern bool NET_SDK_SetRegisterPort(
    UInt16 wRegisterPort,
    IntPtr ptr,
    int num);

功能描述

设备接收DVR主动注册的本地平台端口号。

参数说明

参数 类型 说明
wRegisterPortin WORD 设备接收DVR主动注册的本地平台端口号。
pLoginInfoin REG_LOGIN_INFO* 要主动注册连接SDK的设备的信息,需传入一个数组数组。
deviceNumin unsigned int pLoginInfo的长度。

返回值

  • 类型:BOOL

  • 说明:成功返回TRUE,失败返回FALSE。

备注

错误码