Re: [Quickfix-developers] Unable to login to my broker
Brought to you by:
orenmnero
|
From: Oren M. <or...@qu...> - 2007-10-11 14:53:48
|
It's sounds like they may not be responding to your connection, but =20 not actively refusing it. Do you ever get disconnected? Can you =20 have them monitor the port to see what is happening on their end? --oren On Oct 11, 2007, at 7:37 AM, abaraff wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/=20 > html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > I=92m in the process of building my first FIX application, but I=92m =20= > running in > to some trouble getting connectivity to my broker=92s system. I=92ve > implemented a pretty basic SocketInitiator C# application that =20 > looks like > this: > > public class Program > { > protected static QuickFix.SocketInitiator _initiator; > protected static QuickFix.Application _application; > protected static QuickFix.FileLogFactory _logFactory; > protected static QuickFix.MessageFactory _messageFactory; > protected static QuickFix.SessionSettings _settings; > protected static QuickFix.FileStoreFactory _storeFactory; > /// <summary> > /// The main entry point for the application. > /// </summary> > [STAThread] > static void Main() > { > _settings =3D new QuickFix.SessionSettings=20 > ("sessionsettings.txt"); > _application =3D new QuickFixApp(); > _storeFactory =3D new = QuickFix.FileStoreFactory(_settings); > _logFactory =3D new QuickFix.FileLogFactory(_settings); > _messageFactory =3D new QuickFix.DefaultMessageFactory(); > _initiator =3D new QuickFix.SocketInitiator(_application, > _storeFactory, _settings, _logFactory, _messageFactory ); > _initiator.start(); > for (int i =3D 0; i < 20; i++) > { > System.Threading.Thread.Sleep(1000); > > System.Diagnostics.Debug.WriteLine(_initiator.isLoggedOn().ToString=20 > ()); > } > _initiator.stop(); > } > > class QuickFixApp : QuickFix.Application > { > public void fromAdmin(Message p1, SessionID p2) > { > System.Diagnostics.Debug.WriteLine("fromAdmin\tMessage=20 > \t" + > p1.ToString()); > System.Diagnostics.Debug.WriteLine("fromAdmin\tSession=20 > \t" + > p2.ToString()); > } > > public void fromApp(Message p1, SessionID p2) > { > System.Diagnostics.Debug.WriteLine("fromApp\t" + =20 > p1.ToString()); > System.Diagnostics.Debug.WriteLine("fromApp\tSession\t" + > p2.ToString()); > } > > public void onCreate(SessionID p1) > { > System.Diagnostics.Debug.WriteLine("onCreate\t" + > p1.ToString()); > } > > public void onLogon(SessionID p1) > { > System.Diagnostics.Debug.WriteLine("onLogon\t" + =20 > p1.ToString()); > } > > public void onLogout(SessionID p1) > { > System.Diagnostics.Debug.WriteLine("onLogout\t" + > p1.ToString()); > } > > public void toAdmin(Message p1, SessionID p2) > { > System.Diagnostics.Debug.WriteLine("toAdmin\tMessage\t" + > p1.ToString()); > System.Diagnostics.Debug.WriteLine("toAdmin\tSession\t" + > p2.ToString()); > } > > public void toApp(Message p1, SessionID p2) > { > System.Diagnostics.Debug.WriteLine("toApp\t" + =20 > p1.ToString()); > System.Diagnostics.Debug.WriteLine("toApp\tSession\t" + > p2.ToString()); > } > } > > When I run it I get an onCreate event that prints out my > BeginString:SenderCompID->TargetCompID. Then I never get another =20 > event, nor > does isLoggedOn() return true at any point. My event log file has =20 > three > lines: > > 20071010-22:32:28 : Created session > 20071010-22:32:28 : Connecting to <Remote Machine's IP> on port =20 > <Remote > Machine's Port> > 20071010-22:40:53 : Created session > > That's it. Is my app ever getting a connection to the remote =20 > computer? At > what point is this stuff breaking down? I'd like to be able to =20 > tell the > guys at the brokerage exactly where I'm stuck but it's tough with =20 > so little > experience. > > Thanks, > > Anthony > --=20 > View this message in context: http://www.nabble.com/Unable-to-login-=20= > to-my-broker-tf4606959.html#a13154906 > Sent from the QuickFIX - Dev mailing list archive at Nabble.com. > > > ----------------------------------------------------------------------=20= > --- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a =20 > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers |