OnixS CME Drop Copy Handler C++ library  5.7.1
API documentation
Adjusting Handler Settings

Handler Settings

OnixS::CME::DropCopy::Handler constructor accepts instance of the OnixS::CME::DropCopy::HandlerSettings class which defines values for various parameters which affect Handler's behavior. Below section describes role of the most important parameters used in usual cases.

Primary Settings

Directory for Log Files

By default, Handler logs all important aspects of its activity while processing market data. Therefore, it must know where on local filesystem it can store this kind of information. OnixS::CME::DropCopy::InitializationSettings::fixEngineLogDirectory parameter value must be defined to point the Handler in which directory it can place its log files.

Example

Following example demonstrates how to setup primary settings for the Handler:

using namespace OnixS::CME::DropCopy;
int main (int argc, char* argv[])
{
HandlerSettings settings;
// Logs will be stored in 'logs' local subfolder.
settings.logDirectory = "logs";
//Fix session settings.
settings.senderCompId = "Value from CME Support Team";
settings.targetCompId = "CME";
settings.senderSubId = "Value from CME Support Team";
settings.targetSubId = "G";
settings.senderLocationId = "EN,GB";
Handler handler (settings);
// ...
}