[Quickfix-developers] newbie question - logging on to server
Brought to you by:
orenmnero
|
From: RL <ric...@gm...> - 2007-11-08 17:09:04
|
Greetings. I am just beginning development using QuickFix (.NET c#) and
my first step is to try to successfully log into the server.
Unfortunately, the exchange I'm using doesn't conform entirely to the
FIX standard, and so I'm trying to diagnose why I'm currently unable to
log on and it may have something to do with the extra fields the
exchange requires. I was hoping someone could just tell me if I have
the correct methodology here:
1) I create a SocketInitiator, passing in the settings file which
specifies the ip_address and port of the server
2) I then call start() on the initiator
3) In *toAdmin*() I put the following check, because my exchange
requires additional fields for logon messages:
public void toAdmin(QuickFix.Message __p1, SessionID __p2)
{
if (__p1 is Logon) {
__p1.setField(new IntField(95, m_SessionPassword.Length)); //
RawDataLength
__p1.setField(new StringField(96, m_SessionPassword)); //
RawData
}
AddCustomHeaderFields(__p1);
AddCustomTailFields(__p1);
}
I also have functions that add header/tail fields that my exchange
requires. Here's where I'm uncertain of what I *should* be seeing
versus what I'm actually seeing. About 2 seconds after this message is
sent, *onLogout *is called (but *fromAdmin *or *fromApp *is NEVER
called). Does this mean that there is something fundamentally wrong
with my setup (and so it's never even establishing the physical
connection to the server)? I would think if I was forgetting a field,
or misusing an exchange-specific field, I would get a message in
*fromAdmin *or *fromApp *-- but these are never called, only *onLogout
*is called. Any thoughts?
Thanks in advance
|