Hi,
I am unable to connect to the server using QuickFix for .Net. Following is
the code I am using -
static void Main(string[] args)
{
try
{
SessionSettings settings = new SessionSettings(@"C:\TestFIX\Test.cfg");
Application application = new Application();
FileStoreFactory storeFactory = new FileStoreFactory( settings );
ScreenLogFactory logFactory = new ScreenLogFactory( settings );
MessageFactory messageFactory = new DefaultMessageFactory();
SocketInitiator testcos = new SocketInitiator(application, storeFactory,
settings, logFactory, messageFactory);
testcos.start();
bool bl = testcos.isLoggedOn();
Console.Clear();
Console.WriteLine("press <enter> to quit");
Console.Read();
testcos.stop();
}
catch (ConfigError e)
{
Console.WriteLine(e);
}
}
When I run the application, I am getting following on the console -
<20090121-10:38:52, FIX.4.2:LTINTTEST->ONYX, outgoing>
(8=FIX.4.2☺9=69☺35=A☺34=10☺49=LTINTTEST☺52=20090121-10:38:52.222☺56=ONYX☺98=0☺108=30☺10=068☺)
<20090121-10:38:52, FIX.4.2:LTINTTEST->ONYX, event>
(Initiated logon request)
<20090121-10:38:52, FIX.4.2:LTINTTEST->ONYX, event>
(Socket Error: Connection reset by peer.)
<20090121-10:38:52, FIX.4.2:LTINTTEST->ONYX, event>
(Disconnecting)
<20090121-10:38:52, FIX.4.2:LTINTTEST->ONYX, event>
(Connecting to 66.150.110.105 on port 4759)
<20090121-10:38:53, FIX.4.2:LTINTTEST->ONYX, outgoing>
(8=FIX.4.2☺9=69☺35=A☺34=11☺49=LTINTTEST☺52=20090121-10:38:53.222☺56=ONYX☺98=0☺108=30☺10=070☺)
<20090121-10:38:53, FIX.4.2:LTINTTEST->ONYX, event>
(Initiated logon request)
<20090121-10:38:56, FIX.4.2:LTINTTEST->ONYX, event>
(Socket Error: Connection reset by peer.)
<20090121-10:38:56, FIX.4.2:LTINTTEST->ONYX, event>
(Disconnecting)
Can anyone help me in this?
Thanks in advance.
Nikhil
|