OnixS C++ CME Market Data Handler  2.56.0.0
Licensing the Handler

Specifying License Location

Handler needs a license for successful execution. If the Handler is not able to find a valid license it will throw an exception at the initialization stage.

OnixS::CME::MarketData::HandlerSettings structure exposes OnixS::CME::MarketData::HandlerSettings::licenseStore parameter which allows to instruct the Handler where to look for a valid license. By default, the Handler looks for a license in the current directory for the application which uses the Handler. However, by using noted parameter, it's possible to specify another folder anywhere on file system.

Note
Handler looks for a valid license in the specified folder and selects the best one. If multiple license available, it will select most significant one (for example, production instead of trial if both are available).

Example

Following example demonstrates how supply license to the Handler:

using namespace OnixS::CME::MarketData;
// Connectivity is the only parameter with no default value.
HandlerSettings handlerSettings;
// By default, license is stored in license folder of the distribute
// package. Instead of copying license, let's use original location.
handlerSettings.licenseStore = "../license";
// Constructs handler with custom license path.
Handler handler(handlerSettings);