OnixS C++ FIX Engine 4.13.0
API Documentation
Loading...
Searching...
No Matches
Stack Class Reference

Public Member Functions

 Stack ()
 ~Stack ()
void dispatchEvents () ONIXS_FIXENGINE_OVERRIDE
bool isQuiescent () const ONIXS_FIXENGINE_OVERRIDE
Threading::ThreadId threadId () const ONIXS_FIXENGINE_OVERRIDE
ReactorType::Enum type () const ONIXS_FIXENGINE_OVERRIDE
Public Member Functions inherited from ISessionReactor
virtual ~ISessionReactor () ONIXS_FIXENGINE_DEFAULT

Friends

class FIX::ReactorOperator

Detailed Description

Definition at line 34 of file TcpStandardStack.h.

Constructor & Destructor Documentation

◆ Stack()

Stack ( )

Allocates a TCP stack.

◆ ~Stack()

~Stack ( )

Member Function Documentation

◆ dispatchEvents()

void dispatchEvents ( )
inlinevirtual

Processes events on a stack and performs the necessary handling.

These events include transmit and receive events raised by the hardware, and also software events such as TCP and FIX protocol timers.

Warning
The event dispatching should be performed from the same thread that created the stack.

Implements ISessionReactor.

Definition at line 60 of file TcpStandardStack.h.

◆ isQuiescent()

bool isQuiescent ( ) const
inlinevirtual
Returns
a boolean value indicating whether a stack is quiescent.

This can be used to ensure that all connections have been closed gracefully before the destroying of a stack (or exiting the application). The destroying of a stack while it is not quiescent is permitted by the API, but when doing so there is no guarantee that sent data has been acknowledged by the peer or even transmitted, and there is the possibility that peers' connections will be reset.

Implements ISessionReactor.

Definition at line 77 of file TcpStandardStack.h.

◆ threadId()

Threading::ThreadId threadId ( ) const
inlinevirtual
Returns
the ID of the thread that created the stack.

Implements ISessionReactor.

Definition at line 86 of file TcpStandardStack.h.

◆ type()

ReactorType::Enum type ( ) const
inlinevirtual
Returns
The type of the stack.

Implements ISessionReactor.

Definition at line 90 of file TcpStandardStack.h.

◆ FIX::ReactorOperator

friend class FIX::ReactorOperator
friend

Definition at line 109 of file TcpStandardStack.h.