[Quickfix-developers] Problem in creating multiple acceptor sessions
Brought to you by:
orenmnero
|
From: Ambreen S. <sha...@ho...> - 2006-01-17 12:36:05
|
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/
|