Definition at line 35 of file TcpDirectStack.h.
Allocates a stack with the supplied attributes.
|attr||A set of properties to apply to the stack.|
A stack binds to a single network interface, specified by the
interface attribute in
Relevant attributes to set in
attr are those in the
zf_vi categories described in the attributes documentation.
|std::bad_alloc||Out of memory. N.B. Huge pages are required. |
|std::runtime_error||The TCPDirect library reported an error. |
|std::exception||A system call reported an error. |
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.
Please see the "Stack polling" section in the TCPDirect User Guide for further information.
- The event dispatching should be performed from the same thread that created the stack.
Definition at line 73 of file TcpDirectStack.h.
- 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.
Definition at line 90 of file TcpDirectStack.h.
Returns the ID of the thread that created the stack.
- the ID of the thread that created the stack.
Definition at line 101 of file TcpDirectStack.h.
|friend class FIX::ReactorOperator
The documentation for this class was generated from the following file: