[Quickfix-developers] Logon question
Brought to you by:
orenmnero
From: Franssen, R. <Ron...@ko...> - 2009-07-08 14:56:20
|
I have a question about adding additional information to the logon message. Using an example application as a guide, we are currently adding the username/password combination to the logon message by the following means: In the toAdmin event handler, we are checking for the message type to be equal to "A" (logon). If the message type is a logon message, then we cast it to a logon message type and then proceed to perform: logonMessage.setField(username) logonMessage.setField(password) where username and password are QuickFix type objects. This whole process seems to be working, but is feels sloppy to me. Is there a better way of hooking the logon event without subjecting every single message to an interrogation to determine if it is a logon message type. Thanks, Ron Franssen Koch Supply & Trading |