Call the following method to create a session:
After the session is created use void B2BITS_Session_ConnectAcceptor() to connect to it as an acceptor.
For example:
FIX Antenna automatically creates a session acceptor when a logon message is received and the corresponding pre-created session acceptor is not found. There are two ways to control this behavior:
According to the FIX protocol standard it is not the acceptor's responsibility to reconnect. When a connection is unexpectedly terminated, the acceptor is moved to "Wait for logon" state persisting its state. When a correct logon is received the acceptor completes reconnection process and continues working exactly from the point of termination.
You can use the following method to disconnect the acceptor (the process can also be called "terminate", "delete", "close"):
aMarkAsTerminated parameter is used to set the desired state after disconnection. If it is set to "true" the acceptor tries to disconnect gracefully (i.e. execute a logout procedure). If it is set to "false" the acceptor moves to the non-gracefully terminated state.
Use the B2BITS_Session_Release(B2BITS_Session sn) method to release the allocated resources.
It is vital to call B2BITS_Session_RegisterApplication(pSA, NULL, NULL, 1, 0) before calling the release method.
It is vital to call the B2BITS_Session_Release(B2BITS_Session sn) method only once for the given session.
To send outgoing application-level messages, use the B2BITS_Session_Put(B2BITS_FIXMessage msg) method.
All session level messages are send automatically when needed.