跳转至

NET_SDK_SetNat2Addr

接口定义

1
2
3
BOOL NET_SDK_SetNat2Addr(
    char* sServerAddr,
    WORD wDVRPort);
1
2
3
public static extern bool NET_SDK_SetNat2Addr(
    string sServerAddr,
    ushort wDVRPort);

功能描述

设置P2P2.0地址。

参数说明

参数 类型 说明
sServerAddrin char* IP地址(P2P模式时为P2P服务器地址(c2020.autonat.com,若用户的P2P服务器为自建,需填写对应的服务器地址))。
wDVRPortin WORD P2P端口号

返回值

  • 类型:BOOL

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

备注

错误码