Re: [Quickfix-developers] Problem in creating multiple acceptor sessions
Brought to you by:
orenmnero
|
From: Oren M. <or...@qu...> - 2006-01-17 14:59:38
|
Please post your configuration files. --oren Ambreen Shahzadi wrote: > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > Sir, > > I have a problem regarding, creating multiple sessions. As i m > creating 2 acceptor sessions , writing this code : > > FIX::SessionSettings settings("test1.txt"); > Application myApplication; > FIX::FileStoreFactory storeFactory(settings); > FIX::ScreenLogFactory logFactory( true, true, true ); > FIX::SocketAcceptor > Acceptor1(myApplication,storeFactory,settings,logFactory); > > /*-----creating another acceptor session----*/ > > FIX::SessionSettings settings2("test2.txt"); > FIX::FileStoreFactory storeFactory2(settings2); > FIX::ScreenLogFactory logFactory2( true, true, true ); > FIX::SocketAcceptor > Acceptor2(myApplication,storeFactory2,settings2,logFactory2); > > > Acceptor1.start(); > Acceptor2.start(); > > The problem is when i execute this code and logon from client side for > the first acceptor's client , then it will display > Logon - FIX.4.2:MEM0040900->SVR > and for another client > Logoff - FIX.4.2:MEM0070000->SVR2 > > but when i call > Acceptor2.start(); > Acceptor1.start(); > then it allow logon in reverse order like > Logon - FIX.4.2:MEM0070000->SVR2 > Logoff - FIX.4.2:MEM0040900->SVR > > > Inshort, it allows that client (innitiator) to be login if which > acceptor session created first and logoff that client (initiator) of > which acceptor session was created later. > > Needing Ur Help............. > > waiting for ur reply. > > with Regards. > > _________________________________________________________________ > Express yourself instantly with MSN Messenger! Download today it's > FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > |