EMA C++ Developers Guide : 4 Consumer Classes : 4.1 OmmConsumer Class : 4.1.4 Example: Working with the OmmConsumer Class
 
4.1.4 Example: Working with the OmmConsumer Class
The following example illustrates the simplest application managing the OmmConsumer Class.
 
 
try {
AppClient client;
OmmConsumer consumer( OmmConsumerConfig().host( "localhost:14002" ).username( "user" ) );
consumer.registerClient( ReqMsg().serviceName( "DIRECT_FEED" ).name( "IBM.N" ), client );
sleep( 60000 );
} catch ( const OmmException& excp ) {
cout << excp << endl;
}