Click here to Skip to main content
15,879,474 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I want to create per session a thread that initiate connection to the acceptor and send the different version FIX order to the defined acceptor,
i.e. `Acceptor1`: accepting the FIX 4.4 order on Computer having `SocketConnectHost` (IP address) 198.168.1.xx on SocketConnectPort (accepting port) 5001 has one thread that create connection to the acceptor1.
Similarly `Acceptor2` : accepting FIX4.3 order on anothe computer having different `SocketConnectHost` (IP address), `SocketConnectPort`and different thread.
The `initiator` is containing the session for each `acceptor`. Thread is created when the specified FIX version order gets created. Is it possible? and how to achive this functionality.
Posted

1 solution

You can use ThreadedSocketInitiator and use 2 dfferent setting files to construct 2 different ThreadedSocketInitiator, you can use the same FixApplication object if you want or use different for different initiators.ThreadedSocketInitiator will ensure that all the FixApplication callbacks will be called via one thread only for particular initiator.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900