{{Quickfixn}} Does Logon message support username and password ?
Ervin MARGUČ
ervin at enteralpha.com
Thu Sep 6 00:01:02 PDT 2012
Hi
I see that many of you asking about >How to login with QuickFIXn<. Here is
example for initiator site how to do it:
#region Implementation of Application
/// <summary>
/// This callback provides you with a peek at the administrative
messages
/// that are being sent from your FIX engine to the counter party.
This is
/// normally not useful for an application however it is provided
for any
/// logging you may wish to do. You may add fields in an
adminstrative
/// message before it is sent.
/// </summary>
/// <param name="message"></param>
/// <param name="sessionID"></param>
public void ToAdmin(Message message, SessionID sessionID)
{
// Check message type
if (message.Header.GetField(Tags.MsgType) == MsgType.LOGON)
{
// Yes it is logon message
// Check if local variables YourUserName and YourPassword
are set
if (!string.IsNullOrEmpty(YourUserName) &&
!string.IsNullOrEmpty(YourPassword))
{
// Add Username and Password fields to logon message
((Logon) message).Set(new Username(YourUserName));
((Logon) message).Set(new Password(YourPassword));
}
}
}
..
I hope that this will help you and others that have similar questions.
best regards
Ervin MARGUC
GSM: +386 (0)40 897 170
<http://www.enteralpha.com/> Opis: EnterAlpha
From: quickfixn-bounces at lists.quickfixn.com
[mailto:quickfixn-bounces at lists.quickfixn.com] On Behalf Of neeraj kaushik
Sent: Tuesday, September 04, 2012 7:33 PM
To: quickfixn at lists.quickfixn.com
Subject: {{Quickfixn}} Does Logon message support username and password ?
Hi,
I have username and password to connect to FIX acceptor but I found that it
is not connecting with FIX server. I also found that there is no
implementation for username and password in logon message. Is it known bug
or Am I doing something wrong?
Thanks & Regards,
Neeraj
Ph: +91-9717380006
Gtalk: neerajkaushi at gmail.com
Skype: neerajkaushik_123
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20120906/59a4e0b4/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 4105 bytes
Desc: not available
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20120906/59a4e0b4/attachment-0002.png>
More information about the Quickfixn
mailing list