Thread: [Quickfix-developers] Getting an acceptor to accept multiple clients
Brought to you by:
orenmnero
From: Hayyan R. <hay...@ho...> - 2011-06-20 12:15:09
|
Hi I jsut wrote an acceptor in c++ using quick fix and a C# initiator connects to the acceptor and places an order. Thats all well and good. However i have a problem. the acceptor depends on a config file such as the one below [DEFAULT] ConnectionType=acceptor SocketAcceptPort=5001 SocketReuseAddress=Y StartTime=00:00:00 EndTime=00:00:00 FileLogPath=log FileStorePath=c:\fixfiles [SESSION] BeginString=FIX.4.2 SenderCompID=EXECUTOR TargetCompID=CLIENT1 DataDictionary=c:\fixfiles\FIX42.xml the acceptor has to know the name of the initiator in advance before it makes a connection. IS there any way by which we can add multiple clients in this file currently the above file expects Client1 to connect since it has "TargetCompID=CLIENT1" how can i make my acceptor accept connections from CLIENT2 and CLIENT 3?? |
From: Kenny S. <ks...@co...> - 2011-06-20 13:58:40
|
You can have multiple sessions in your config file, but you must know them in advance. [DEFAULT] ConnectionType=acceptor SocketAcceptPort=5001 SocketReuseAddress=Y StartTime=00:00:00 EndTime=00:00:00 FileLogPath=log FileStorePath=c:\fixfiles BeginString=FIX.4.2 SenderCompID=EXECUTOR DataDictionary=c:\fixfiles\FIX42.xml [SESSION] TargetCompID=CLIENT1 [SESSION] TargetCompID=CLIENT2 [SESSION] TargetCompID=CLIENT3 -- Kenny Stone Connamara Systems, LLC On Mon, Jun 20, 2011 at 7:15 AM, Hayyan Rafiq <hay...@ho...> wrote: > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > Hi I jsut wrote an acceptor in c++ using quick fix and a C# initiator > connects to the acceptor and places an order. Thats all well and good. > However i have a problem. the acceptor depends on a config file such as the > one below > > [DEFAULT] > ConnectionType=acceptor > SocketAcceptPort=5001 > SocketReuseAddress=Y > StartTime=00:00:00 > EndTime=00:00:00 > FileLogPath=log > FileStorePath=c:\fixfiles > [SESSION] > BeginString=FIX.4.2 > SenderCompID=EXECUTOR > TargetCompID=CLIENT1 > DataDictionary=c:\fixfiles\FIX42.xml > > the acceptor has to know the name of the initiator in advance before it > makes a connection. IS there any way by which we can add multiple clients in > this file currently the above file expects Client1 to connect since it has > "TargetCompID=CLIENT1" how can i make my acceptor accept connections from > CLIENT2 and CLIENT 3?? > > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |
From: Hayyan R. <hay...@ho...> - 2011-06-21 06:47:56
|
Thanks Kenny this would definitely help me out.. :) From: ks...@co... Date: Mon, 20 Jun 2011 08:50:46 -0500 Subject: Re: [Quickfix-developers] Getting an acceptor to accept multiple clients To: hay...@ho... CC: qui...@li... You can have multiple sessions in your config file, but you must know them in advance. [DEFAULT] ConnectionType=acceptor SocketAcceptPort=5001 SocketReuseAddress=Y StartTime=00:00:00 EndTime=00:00:00 FileLogPath=log FileStorePath=c:\fixfiles BeginString=FIX.4.2 SenderCompID=EXECUTOR DataDictionary=c:\fixfiles\FIX42.xml [SESSION] TargetCompID=CLIENT1 [SESSION] TargetCompID=CLIENT2 [SESSION] TargetCompID=CLIENT3 -- Kenny Stone Connamara Systems, LLC On Mon, Jun 20, 2011 at 7:15 AM, Hayyan Rafiq <hay...@ho...> wrote: QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX Support: http://www.quickfixengine.org/services.html Hi I jsut wrote an acceptor in c++ using quick fix and a C# initiator connects to the acceptor and places an order. Thats all well and good. However i have a problem. the acceptor depends on a config file such as the one below [DEFAULT] ConnectionType=acceptor SocketAcceptPort=5001 SocketReuseAddress=Y StartTime=00:00:00 EndTime=00:00:00 FileLogPath=log FileStorePath=c:\fixfiles [SESSION] BeginString=FIX.4.2 SenderCompID=EXECUTOR TargetCompID=CLIENT1 DataDictionary=c:\fixfiles\FIX42.xml the acceptor has to know the name of the initiator in advance before it makes a connection. IS there any way by which we can add multiple clients in this file currently the above file expects Client1 to connect since it has "TargetCompID=CLIENT1" how can i make my acceptor accept connections from CLIENT2 and CLIENT 3?? ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers |