[Quickfix-users] connecting without DataDictionary on files
Brought to you by:
orenmnero
From: Emanuele R. <roc...@ho...> - 2008-10-23 13:28:38
|
hi all I am trying to use quickfix without using a DataDictionary stored on xml file, but using a FIX::DataDictionary object to pass to application. How to do that? FIX::Session has setDictionary but how to retrieve this starting from a FIX::SocketInitiator? The GetSession returns the FIX::Session provided of a FIX::SessionID and FIX::Responder? How to get this second class in my application? I usually start a connection using FIX::SocketInitiator::start method only Regards mn Exmaple FIX::SessionID id; FIX::Dictionary dictioanry; // setup dictionary... FIX::SessionSettings settings; settings.set( id, dictionary ); FIX::FileStoreFactory storeFactory( settings ); FIX::ScreenLogFactory logFactory( true, true, true ); FixLogInApplication application; FIX::SocketInitiator* connection = new FIX::SocketInitiator ( application, storeFactory, settings, logFactory ) ); // connection->start() to connect // here i want to set my FIX::DataDictionary object // but I need a FIX::Session* FIX::Session* session = connection->getSession( id, ????where I get this ??? ); _________________________________________________________________ Screensaver e sfondi… Scaricali dallo Spaces di Doretta! https://cid-97b0d995232b954a.skydrive.live.com/home.aspx |