[Quickfix-developers] Logon Works (Was Re: Logon passwords)
Brought to you by:
orenmnero
From: Vincent P. <vpr...@ph...> - 2008-06-19 20:05:28
|
On Jun 19, 2008, at 8:31 AM, or...@qu... wrote: > Have you turned on logging? The Logon message might be being rejected > for other reasons. I got this to work in the server: void QFApplication::fromAdmin( const FIX::Message& m, const FIX::SessionID& id) t { Username u; m.getField(u); Password pwd; m.getField(pwd); cout << "fromAdmin: " << id << endl; cout << "\tUsername: " << u.getString() << ", Password: " << pwd.getString() } and this in the client: void QFApplication::fromAdmin( const FIX::Message& m, const FIX::SessionID& id) t { Username u; m.getField(u); Password pwd; m.getField(pwd); cout << "fromAdmin: " << id << endl; cout << "\tUsername: " << u.getString() << ", Password: " << pwd.getString() } I thought I tried this, but whatever … it works now. If someone has the time explain how the Logon variant of MessageCracker::onMessage works, I would be interested to know, but I have the logons working, so The ScreenLogFactory is set up and I also tried to enable server side postgreSQL logging in the config file, which is not working for me. [DEFAULT] ConnectionType=acceptor SocketAcceptPort=8003 SocketReuseAddress=Y StartTime=00:00:00 EndTime=00:00:00 PostgreSQLStoreDatabase=log PostgreSQLStoreUser=vpredoehl and file logging on the client side: [DEFAULT] ConnectionType=initiator HeartBtInt=30 ReconnectInterval=1 FileStorePath=store FileLogPath=log StartTime=00:00:00 EndTime=00:00:00 UseDataDictionary=N SocketConnectHost=localhost There is apparently another hoop to jump through to get it to log, but I don't know what it is and I would like to know that too. > >> -------- Original Message -------- >> Subject: Re: [Quickfix-developers] Logon passwords >> From: Vincent Predoehl <vpr...@ph...> >> Date: Wed, June 18, 2008 7:36 pm >> To: qui...@li... >> >> >> QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/ >> html/index.html >> QuickFIX Support: http://www.quickfixengine.org/services.html<hr>I >> didn't get a response today, and I do need to get this figured out, >> so I will clarify exactly what I need to do: >> >> I'm writing an ecn engine that will accept logins from multiple user >> clients, so I need to handle both the sending and receiving of the >> Logon message. I'm still a little confused because I read on the >> forum that I could use the fromAdmin handler to verify the password. >> However, when I wrote code to do that, the fromAdmin handler never >> fired when the server app received the Logon message. >> >> Unfortunately, searching for "Logon message" and other variants turn >> up over 1,000 matches to scour through, so it's difficult to find the >> correct answer if this thread has already been touched upon. :) -- VP |