|Manipulating Message Fields||Table of Content||Establishing FIX Connection|
A FIX session is defined as a bi-directional stream of ordered messages between two parties within a continuous sequence number series. It is represented by the Session class.
To create a session, the Session(String, String, ProtocolVersion) constructors have to be used.
A Session can participate in FIX connection in one of two roles: as an Acceptor or as an Initiator.
Acceptor is the receiving party of the FIX session. It listens for the incoming connection on the pre-defined port. The Acceptor has responsibility to perform first level authentication and formally declares the connection request "accepted" through transmission of an acknowledgment Logon message.
Initiator establishes the telecommunications link and initiates the session via transmission of the initial Logon message.
To determine the role of the session, the Role property can be used.
To terminate the session gracefully, the Dispose() method must be used.