{{Quickfixn}} Please Help in changing logon message

Øyvind Sævareid Ellefsen oyvind at ssc.no
Thu Nov 28 05:36:38 PST 2013


Hi, you can have something like this in your class;

public void ToAdmin(Message message, SessionID sessionID)
        {
            Header header = message.Header;

            if (header.GetField(Tags.MsgType) == MsgType.LOGON)
            {
  message.SetField(new Password("<your-password-goes-here"));
                message.SetField(new EncryptMethod(EncryptMethod.NONE));
                             message.SetField(new HeartBtInt(30));

            }

        }

It will then apply your password to the message sent to your counterpart.

I have seen this as very undocumented, so I had to spend some time finding out myself.

Mvh / Brgds
Oeyvind Ellefsen


From: quickfixn-bounces at lists.quickfixn.com [mailto:quickfixn-bounces at lists.quickfixn.com] On Behalf Of Nirjhar Jain
Sent: 28. november 2013 14:34
To: 'Mailing list for QuickFIX/n'
Subject: {{Quickfixn}} Please Help in changing logon message

Hi All,

If I want to add 2 field in Logon message to be sent to the acceptor server, that are Account and Password, then what changes I have to do in QuickFix code.


Thanks & Regards,
Nirjhar Jain
Software Engineer

COMMDEL
Commdel Consulting Services P Ltd,
H-134, Sector-63, Noida - U.P. (India)

www.commdel.net<http://www.commdel.net/>
A n   I S O     9 0 0 1 : 2 0 0 8      C e r t i f i e d     C o m p a n y
Payment           Enterprise            Mobility            Internet

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20131128/8f7ceb06/attachment-0002.htm>


More information about the Quickfixn mailing list