Skip to content

NET_SDK_SetNat2Addr

Interface Definition

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);

Function Description

Set the P2P2.0 address.

Parameter Description

Parameters Type Remark
sServerAddrin char* IP address (in P2P mode, it is the P2P server address (c2020.autonat.com; if the user's P2P server is self-built, the corresponding server address must be filled in)).
wDVRPortin WORD P2P port number

Return Value

  • type:BOOL

  • remark:Returns TRUE if successful, FALSE if failed.

Remarks

None

Error Code