OnixS C++ FIX Engine  4.12.0
API Documentation
Stack Class Reference

#include <OnixS/FIXEngine/FIX/TcpStandardStack.h>

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 ( )

Allocates a TCP stack.

~Stack ( )

Member Function Documentation

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.

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.

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.

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

Implements ISessionReactor.

Definition at line 90 of file TcpStandardStack.h.

Friends And Related Function Documentation

friend class FIX::ReactorOperator
friend

Definition at line 109 of file TcpStandardStack.h.


The documentation for this class was generated from the following file: