Help Center/ Meeting/ Client SDK Reference/ Windows SDK/ API Reference/ Basic Settings/ Setting Guaranteed IP Addresses for Meeting Control
Updated on 2024-07-30 GMT+08:00

Setting Guaranteed IP Addresses for Meeting Control

SetGuaranteedIpAddresses

API Description

This API is used to set the guaranteed IP addresses for meeting control. Up to four IP addresses are supported. They are separated by semicolons (;).

Precautions

  1. This API is optional. If it is not called, the default IP address is used.
  2. This API is a synchronous API. The return value only indicates whether the API is successfully called.

Method Definition

HWM_SDK_AGENT_API hwmsdk::HwmErrCode SetGuaranteedIpAddresses(const char* guaranteedIpAddresses);

Parameter Description

Table 1 Parameter description

Parameter

Mandatory

Type

Description

guaranteedIpAddresses

Yes

char[]

Guaranteed IP addresses.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
/**
*  Set guaranteed IP addresses for meeting control.
*/
void demoSetGuaranteedIpAddressesDlg::SetGuaranteedIpAddresses()
{
    std::string address = GetIpAddress();
    int ret = hwmsdkagent::SetGuaranteedIpAddresses(address.c_str());
    if (hwmsdk::HWM_COMMON_SUCCESS != ret)
    {
        AfxMessageBox(_T("set guaranteed Ip addresses error"));
        return;
    }
    CDialogEx::OnOK();
}