Re: [Quickfix-users] Application Terminated.........
Brought to you by:
orenmnero
From: Evans, J. <JF...@he...> - 2013-09-20 17:54:04
|
You may need to trap the "logon" message and supply the username and password (or anything else specific to the logon process). At least that's what I did. Sorry it's VB and a little noisy, I copied it directly from working code. Note I'm pulling the values from a config file. If TypeOf message Is QuickFix44.Logon Then Dim myMessage As QuickFix44.Logon = CType(message, QuickFix44.Logon) If sessionID.getSessionQualifier = "1" AndAlso _ sessionID.getSenderCompID = AppSettings.SenderCompID_1 AndAlso _ sessionID.getTargetCompID = AppSettings.TargetCompID_1 Then myMessage.setField(QuickFix.SenderSubID.FIELD, AppSettings.SenderSubID_1) 'SenderSubID myMessage.set(New QuickFix.Username(AppSettings.Username_1)) 'UserName myMessage.set(New QuickFix.Password(AppSettings.Password_1)) 'Password myMessage.set(New QuickFix.ResetSeqNumFlag(True)) WriteToLog(String.Format("LogonRequest: {0}", myMessage), LogMessageTypes.Verbose, False) End If -----Original Message----- From: Mohammed Jasind [mailto:jas...@ho...] Sent: Friday September 20, 2013 10:45 AM To: qui...@li... Cc: jas...@gm... Subject: [Quickfix-users] Application Terminated......... QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX Support: http://www.quickfixengine.org/services.html This e-mail and any attachments are for the sole use of the intended recipient(s) and may contain information that is confidential. If you are not the intended recipient(s) and have received this e-mail in error, please immediately notify the sender by return e-mail and delete this e-mail from your computer. Any distribution, disclosure or the taking of any other action by anyone other than the intended recipient(s) is strictly prohibited . |