{{Quickfixn}} Username in Acceptor/OnLogon

Grant Birchmeier gbirchmeier at connamara.com
Wed May 2 21:02:20 PDT 2018


Whatever you want to do, you want to do it in FromAdmin().

The OnLogon() function doesn't give you access to the incoming message.

(If there is a problem with the logon message such that a logon will not
occur, I'm 85% sure that FromAdmin won't even be called.)

On Wed, May 2, 2018 at 5:12 PM, Pavel Karasev <pavka1799 at gmail.com> wrote:

> Hello!
>
> In "acceptor" I need to store additional information for a session after
> successful logon of a client, e.g. a username provided in logon message.
> From QF/n documentation it seems the proper place to do this is
> "IApplication.OnLogon()", as "OnLogon - notifies when a successful logon
> has completed."
> The issue is that I cannot find how to recover the username in "OnLogon".
> It was available in "FromAdmin", and seems to be lost by the time OnLogon
> is called.
>
> Is it indeed so?
>
> How would you recommend to solve this?
> I can see few options:
> Option 1. Store the username already in "FromAdmin" after validating
> username/password (assuming the rest of logon process will be successful).
> Option 2. Maintain additional dictionary <SessionID> -> <username>, add to
> it in FromAdmin (on logon messages) and read from it in "OnLogon".
>
> However not sure is Option 1 is completely valid / safe?
> And Option 2 seems to be over-complication...
>
> Thank you!
>
> Best regards
> Pavel
>
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
>
>


-- 
Grant Birchmeier
*Connamara Systems, LLC*
*Made-To-Measure Trading Solutions.*
Exactly what you need. No more. No less.
http://connamara.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20180502/f329f3e1/attachment.htm>


More information about the Quickfixn mailing list