Re: [Quickfix-developers] Unable to connect to Server using QuickFixfor .Net
Brought to you by:
orenmnero
From: Romman, G. <GR...@ep...> - 2009-01-21 16:00:38
|
Hi Nikhil, Is it possible the server requires logon credentials such as userid and password? The documention FAQ provides a sample of how to add fields to a logon message. Here also is a working snippet: class YourApplication : Application public void toAdmin(QuickFix.Message message, SessionID sessionID) { // Add custom fields if this is a logon message QuickFix.Message.Header hdr = message.getHeader(); if (hdr.getField(MsgType.FIELD).Equals(MsgType.LOGON)) { message.setField(new Username("userid")); message.setField(new Password("password")); } } Regards, Greg -----Original Message----- From: Nikhil Chitnis [mailto:nik...@gm...] Sent: Wednesday, January 21, 2009 4:20 AM To: qui...@li... Subject: [Quickfix-developers] Unable to connect to Server using QuickFixfor .Net QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX Support: http://www.quickfixengine.org/services.html This email contains confidential information that is proprietary to EPCOR and its subsidiary companies in all respects. This information is intended only for the person(s) named in the destination address. Unauthorized distribution, copying or disclosure is strictly prohibited. If you receive this e-mail in error please delete it immediately. |