Re: [Quickfix-developers] multiple sessions/connections
Brought to you by:
orenmnero
From: azmat <mr...@gm...> - 2008-03-06 19:07:43
|
All, I've gotten over my difficulty with understanding how I should setup my config file to handle multiple sessions. Thanks to everyone that helped! What I want to do now is use 1 initiator with 2 sessions. Is this even possible? Basically we have a listening session that we need to keep open (different CompIDs, different port #) in order to listen for execution reports and allocation reports that the broker is sending to us. In addition to that we have a session dedicated to trades/orders via FIX that also handles exec reports, but those made via FIX. My code now is able to handle the various onMessages that would be returned, but I want 1 instance of my quickfix app to handle these two sessions, instead of instantiating two separate instances of the app. Is this possible? If not, then I will be resigned to using two instances. many thanks! azmat azmat wrote: > > All- > > I need to setup 3 connections (one for market data, one for orders, and > one for Drop Copies). Do I just need to setup the config file with three > connections with the appropriate information? Also, how do I call > Session.Logon() or Session.Logout()? > > I can't instantiate an instance of Session (it lacks a constructor) and > the logon/logout methods are not static. Is this how I would logout/logon > specific sessions, if I were able to use these functions? > > many thanks to all. > > thanks! > azmat > > -- View this message in context: http://www.nabble.com/multiple-sessions-connections-tp15834166p15881514.html Sent from the QuickFIX - Dev mailing list archive at Nabble.com. |