Click or drag to resize

Session Class

FIX Session.
Inheritance Hierarchy
SystemObject
  com.b2bits.FIXAntennaSession

Namespace: com.b2bits.FIXAntenna
Assembly: FIXAntenna_net4.8 (in FIXAntenna_net4.8.dll) Version: 2.32.0.0
Syntax
public class Session : IDisposable

The Session type exposes the following members.

Properties
 NameDescription
Public propertyAppVersion Returns the FIX Application level protocol base version.
Public propertyEncryption Returns the encryption method.
Public propertyHeartBtInt Returns Heartbeat interval (HeartBtInt) in seconds.
Public propertyInSeqNum Returns the incoming sequence numbers for this FIX session (the expected MsgSeqNum of the next incoming message).
Public propertyIsSSL Returns true if SSL Context created for session.
Public propertyOutSeqNum Returns the outgoing sequence numbers for this FIX session. (MsgSeqNum of the next outgoing message).
Public propertyParserID Returns unique parser identifier of the session.
Public propertyProtocolID Returns unique parser identifier of the session. deprecated, use ParserID
Public propertyRemoteHost Returns the remote FIX Engine's host name.
Public propertyRemoteHostIP Returns the remote FIX Engine's host name.
Public propertyRemotePort Returns the remote FIX Engine's port number.
Public propertyRole Returns session's role.
Public propertySenderCompID Returns SenderCompID
Public propertySenderSubID Returns SenderSubID.
Public propertySessionID Returns Session Identifier.
Public propertyState Returns session's state;
Public propertyStorageCreationTime Returns storage creation UTC time. If no storage is assigned with Session, method returns 0
Public propertyTargetCompID Returns TargetCompID.
Public propertyTargetSubID Returns TargetSubID.
Public propertyVersion Returns the FIX protocol version.
Top
Methods
 NameDescription
Public methodConnect Establishes the FIX session.
Public methodConnectAsAcceptor Establishes the FIX session as Acceptor.
Public methodConnectAsInitiator(String, Int32, Int32) Establishes the FIX session as Initiator.
Public methodConnectAsInitiator(String, Int32, Int32, FixMessage) Establishes the FIX session as Initiator using the custom Logon message.
Public methodCreateMessage(String) Creates new FixMessage
Public methodCreateMessage(String, FixVersion) Creates new FixMessage
Public methodDisconnect Closes the session.
Public methodDisconnect(Boolean) Closes session.
Public methodDisconnect(String, Boolean) Closes session with the given logout text.
Public methodDisconnectNonGracefully Closes the telecommunication link and switches the session into the NON_GRACEFULLY_TERMINATED state.
Public methodDisconnectSync Closes the session synchronously.
Public methodDisconnectSync(Boolean) Closes session synchronously.
Public methodDisconnectSync(String, Boolean) Synchronously closes session with the given logout text.
Public methodDisposeReleases all resources used by the Session
Protected methodDispose(Boolean)Releases the unmanaged resources used by the Session and optionally releases the managed resources
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize
(Overrides ObjectFinalize)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetReceivedMessages 
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInflate(FixMessage, Int32) Sets static session level fields in the message and reserves space for volatile session level fields.
Public methodInflate(FixMessage, Int32, PutMessageOptions) Sets static session level fields in the message and reserves space for volatile session level fields.
Public methodIsDisposed Checks if Session is disposed (whether Dispose() was called or not). If session is disposed then although the object exists all it's component are destroyed. So further working with it may cause failure.
Public methodLocateSentMessage Restores sent message by given message sequence number. If message is not found, method returns .
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodPing Sends the Test Request message.
Public methodPing(String) Sends the Test Request message with the given TestReqID.
Public methodPut(FixMessage) Sends the given message to the remote FIX engine. After method is return, message can be destroyed by user.
Public methodPut(PreparedMessage) Sends the given message to the remote FIX engine. After method is return, message can be destroyed by user.
Public methodPut(FixMessage, PutMessageOptions) Sends the given message to the remote FIX engine. After method is return, message can be destroyed by user.
Public methodResetSeqNum Sends the Logon message with the ResetSeqNumFlag flag that indicates both sides of a FIX session should reset sequence numbers.
Public methodResetSeqNum(SeqNumResetStrategy) Sends the Logon message with the ResetSeqNumFlag flag that indicates both sides of a FIX session should reset sequence numbers.
Public methodToString Returns string representation.
(Overrides ObjectToString)
Top
Events
 NameDescription
Public eventAfterMessageIsParsedEvent Fired after incoming message is parsed and stored in storage. Before any message validation.
Public eventAfterMessageIsReceivedEvent Occurs when the incoming message is just received from the wire.
Public eventBeforeMessageIsSentEvent Occurs when the incoming message is about to be sent to the wire.
Public eventBeforeMessageIsSerializedEvent Fired after outgoing message is validated and before it is stored in the storage and sent to socket.
Public eventHeartbeatWithTestReqIDEvent Occurs when a Heartbeat message (MsgType = 0) with the TestReqID field (tag = 112) has been received.
Public eventIncomingMessageEvent Occurs when the incoming messages received.
Public eventInvalidResendRequestEvent Occurs when a ill-formed Resend Request (MsgType = 2) has been received.
Public eventLogonEvent Occurs when the Logon message has been received from the counterpart.
Public eventLogoutEvent Occurs when the Logout message has been received from the counterpart or the session was disconnected.
Public eventMsgRejectEvent Occurs when a message have to be rejected.
Public eventNewStateEvent Occurs when the session has changed its state.
Public eventReconnectTryEvent This call-back method is called each time session tries to reconnect.
Public eventResendEvent Occurs when an outgoing message is about to be resent as a reply to the incoming ResendRequest message.
Public eventResendRequestEvent Occurs when a Resend Request (MsgType = 2) has been received.
Public eventResendRequestLoopEvent This call-back method is called when #DuplicateResendRequestLimit ResendRequest messages are received.
Public eventSequenceGapEvent Occurs when a message gap is detected in incoming messages.
Public eventSessionLevelRejectEvent Occurs when a session-level Reject message (MsgType = 3) is received.
Public eventSessionLevelRejectWithSeqNumTooHighEvent Fired when Session Level Reject message is received with the sequence number too high. If message is processed, user should set IncomingMessageEventHandler.Processed = true. In this case Resend Request message will not be sent.
Public eventUnableToRouteMessageEvent Occurs when the message has to be routed to the session, which does not exist.
Public eventUnexpectedMessageEvent Occurs when unexpected message is received. For example - when first message in session is not a Logon.
Top
See Also