EMA C++ Configuration Guide : 4 Enterprise Message API Configuration Processing : 4.4 Configuring the Enterprise Message API Using Function Calls : 4.4.1 Configuration Function Calls : 4.4.1.2 OMMIProviderConfig Class Function Calls
 
4.4.1.2 OMMIProviderConfig Class Function Calls
You can use the following function calls in an Enterprise Message API IProvider application. For further details on variables, refer to the Enterprise Message API C++ RDM Usage Guide.
 
Table 33: OmmIProviderConfig Class Function Calls  
Function
Description
addAdminMsg( RefreshMsg)
Optional. Populates the entirety of the initial directory refresh message according to the specification discussed in the Enterprise Message API C++ Edition RDM Usage Guide. Supports Directory domain only.
adminControlDictionary( AdminControl
)
Optional. Specifies whether API or user controls responding to Dictionary requests. Default is ApiControlEnum.
adminControlDirectory( AdminControl
)
Specifies whether the API or the user controls the sending of Directory refresh messages. Default is ApiControlEnum.
apiThreadBind( const EmaString& cpuString )
Optional. Specifies the CPU core to bind for internal EMA thread that dispatches messages. Application may call multiple times prior to initialization. Specify the CPU core in string format (CPU core ID or “P:X C:Y T:Z” format). Works in conjunction with shouldInitializeCPUIDlib.
cipherSuite
Optional. Specifies the cipher suites used by the provider. This is an OpenSSL formatted string.
clear()
Clears existing content from the OmmIProviderConfig object.
config( const Data& )
Passes in the provider’s programmatic configuration.
dhParams(const EmaString& )
Optional. Specifies an optional DH Parameter file to be used with the Provider.
getProviderRole()
Retrieves Provider's role.
libCryptoName(const EmaString&)
Optional. Specifies the name of the libcrypto library for encrypted connections. See the Enterprise Message API C++ Edition Developers Guide for more details on default library name specific to each OpenSSL version and platform.
libCurlName (cons EmaString&)
Optional. Specifies the name of the libcurl library. This is not used for server-side connections, but this is required on first initialization for both REST and proxy connections.
libSslName (const EmaString&)
Optional. Specifies the name of the libSsl shared library for encrypted connections. See the Enterprise Message API C++ Edition Developers Guide for more details on default library names specific to each OpenSSL version and platform.
operationModel( OperationModel
)
Optional. Specifies the operation model. Default is API Dispatch: ApiDispatchEnum.
port(const EmaSttring &)
Optional. Specifies a port. Default is 14002.
providerName( const EmaString & )
This name identifies configuration section to be used by an OmmIProvider instance.
serverCert(const EmaString& )
Specifies the location of the server certificate file for encrypted providers.
serverPrivateKey(const EmaString& )
Specifies the location of the private key file for encrypted providers.