EMA C++ Configuration Guide : 4 Enterprise Message API Configuration Processing : 4.4 Configuring the Enterprise Message API Using Function Calls : 4.4.3 Service Discovery Configuration Using Function Calls
 
4.4.3 Service Discovery Configuration Using Function Calls
4.4.3.1 ServiceEndpointDiscovery
ServiceEndpointDiscovery class provides the functionality to query endpoints from RDP service discovery.
The application interacts with service discovery through the ServiceEndpointDiscovery interface methods.
The results of these interactions are communicated back to application through ServiceEndpointDiscoveryClient.
Please refer to the reference manual manual for more details on ServiceEndpointDiscovery and the classes it uses for functionality.
4.4.3.1.1 ServiceEndpointDiscoveryConfig
When creating a ServiceEndpointDiscovery object, configuration options can be set programmatically by passing a ServiceEndpointDiscoveryConfig object into the constructor.
The following table provides a list of configurations that can be specified in a ServiceEndpointDiscoveryConfig object.
 
Table 35: ServiceEndpointDiscoveryConfig Functions
function
description
libCurlName(const EmaString&)
Optional. Specifies a name to override the default for the curl shared library.
libCryptoName(const EmaString&)
Optional. Specifies a name to override the default for the OpenSSL libcrypto shared library.
libSslName(const EmaString&)
Optional. Specifies a name to override the default for the OpenSSL libssl shared library.
restEnableLog(bool)
Optional. Specifies whether to enable or disable REST logging. If set to true, REST logging is enabled. Defaults to false.
restLogOutputStream(FILE*)
Optional. Specifies file output location for REST Logs. If NULL, sends logs to stdout.
restVerboseMode(bool)
Optional. Specifies whether to enable or disable verbose REST logging. Defaults to false.
shouldInitializeCPUIDlib(bool)
Optional. Specifies whether to enable or disable the CpuId library initialization. Defaults to true.
serviceDiscoveryUrl(const EmaString&)
Optional. Specifies a URL to override the default for the RDP service discovery to get global endpoints
tokenServiceUrlV1(const EmaString&)
Optional. Specifies a URL to override the default for token service V1 Password Credentials to perform authentication to get access and refresh tokens.
tokenServiceUrlV2(const EmaString&)
Optional. Specifies a URL to override the default for token service V2 Password Credentials to perform authentication to get access and refresh tokens.