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; |
} |