[Quickfix-developers] Multiple acceptor withing single process
Brought to you by:
orenmnero
From: Nilesh G. <gaj...@gm...> - 2008-05-14 15:07:50
|
Hi I am working on QF on server side. I am thinking of having two acceptors runing in a single process space. One to handle the order request and another to handle the market data request. I have modified the ordermatch/tradeclient sample to test out if this is possible, happy know it is working. To run this we need two cfg file: which can looks like: I can see the logon and heartbeat message exchanged between tradeclient and ordermatch. I would like to know if this is the right approch, any pointed would be appreciated. CFG-1 [DEFAULT] ConnectionType=acceptor SocketAcceptPort=5001 SocketReuseAddress=Y FileStorePath=store FileLogPath=log StartTime=00:00:00 EndTime=00:00:00 DataDictionary=..\..\..\spec\FIX42.xml [SESSION] BeginString=FIX.4.2 SenderCompID=ORDERMATCH TargetCompID=CLIENT1 [SESSION] BeginString=FIX.4.2 SenderCompID=ORDERMATCH TargetCompID=CLIENT2 CFG-2 [DEFAULT] ConnectionType=acceptor SocketAcceptPort=5002 SocketReuseAddress=Y FileStorePath=store FileLogPath=log StartTime=00:00:00 EndTime=00:00:00 DataDictionary=..\..\..\spec\FIX42.xml [SESSION] BeginString=FIX.4.2 SenderCompID=MRKTDATA TargetCompID=CLIENT1 [SESSION] BeginString=FIX.4.2 SenderCompID=MRKTDATA TargetCompID=CLIENT2 Thanks -Nilesh |