OnixS C++ ICE Binary Order Entry Handler 1.0.0
API Documentation
Loading...
Searching...
No Matches
TcpStandardStack Class Referencefinal

Public Member Functions

 TcpStandardStack ()
 ~TcpStandardStack () override
ONIXS_ICEBOE_FORCEINLINE void dispatchEvents () override
ONIXS_ICEBOE_FORCEINLINE bool isQuiescent () const override
Threading::ThreadId workingThreadId () const noexcept override
ReactorType::Enum type () const noexcept override
Public Member Functions inherited from SessionReactor
virtual ~SessionReactor ()=default

Friends

class SessionImpl

Detailed Description

Definition at line 29 of file TcpStandardStack.h.

Constructor & Destructor Documentation

◆ TcpStandardStack()

Allocates a TCP stack.

◆ ~TcpStandardStack()

~TcpStandardStack ( )
override

Member Function Documentation

◆ dispatchEvents()

ONIXS_ICEBOE_FORCEINLINE void dispatchEvents ( )
inlineoverridevirtual

Processes events on a stack and performs the necessary handling.

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

Implements SessionReactor.

Definition at line 47 of file TcpStandardStack.h.

◆ isQuiescent()

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

This can be used to ensure that all connections have been closed gracefully before destroying a stack (or exiting the application). Destroying 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 SessionReactor.

Definition at line 61 of file TcpStandardStack.h.

◆ type()

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

Implements SessionReactor.

Definition at line 74 of file TcpStandardStack.h.

◆ workingThreadId()

Threading::ThreadId workingThreadId ( ) const
inlineoverridevirtualnoexcept
Returns
the ID of the thread that created the stack.

Implements SessionReactor.

Definition at line 69 of file TcpStandardStack.h.

◆ SessionImpl

friend class SessionImpl
friend

Definition at line 94 of file TcpStandardStack.h.