Re: [Quickfix-developers] How we will can invoke two sessions Qftrade and Qfstream in an applicatio
Brought to you by:
orenmnero
From: vbgargote <vbg...@gm...> - 2009-10-23 12:31:47
|
Yes you can do it. You need to add the entries in the config file. A session is created using a combination of senderID and targetID and stored in a collection. When you send a message using a "Session::Send(fix message) , the session gets the senderIS and targetID from the fix message and searches for it in the collection.If it finds a matching session data is send on that session. So as many targetIDs in your config file you will have that many sessions.At runtime you have to choose the targetID,that targetID will be set in the fix message and do a "Send". Hope this is what you are looking for. -- View this message in context: http://www.nabble.com/How-we-will-can-invoke-two-sessions-Qftrade-and-Qfstream-in-an-application-tp26023357p26025284.html Sent from the QuickFIX - Dev mailing list archive at Nabble.com. |