fix8
version 1.4.0
Open Source C++ FIX Framework
|
Server session instance. More...
#include <sessionwrapper.hpp>
Public Types | |
using | SessionInstance_ptr = std::unique_ptr< SessionInstance< T >> |
Convenient scoped pointer for your session instance. More... | |
Public Member Functions | |
SessionInstance (ServerSession< T > &sf) | |
Ctor. Prepares session instance with inbound connection. More... | |
virtual | ~SessionInstance () |
Dtor. More... | |
virtual T * | session_ptr () override |
virtual void | start (bool wait, unsigned send_seqnum=0, unsigned recv_seqnum=0) override |
virtual void | stop () override |
Stop the session. Cleanup. More... | |
Public Member Functions inherited from FIX8::SessionInstanceBase | |
SessionInstanceBase ()=default | |
Ctor. Prepares session instance with inbound connection. More... | |
virtual | ~SessionInstanceBase () |
Dtor. More... | |
Private Attributes | |
ServerSession< T > & | _sf |
Poco::Net::SocketAddress | _claddr |
Poco::Net::StreamSocket * | _sock |
T * | _session |
ServerConnection * | _psc |
Server session instance.
T | specialised with your derived session class |
Definition at line 496 of file sessionwrapper.hpp.
using FIX8::SessionInstance< T >::SessionInstance_ptr = std::unique_ptr<SessionInstance<T>> |
Convenient scoped pointer for your session instance.
Definition at line 724 of file sessionwrapper.hpp.
|
inline |
|
inlinevirtual |
Dtor.
Definition at line 648 of file sessionwrapper.hpp.
References FIX8::SessionInstance< T >::_psc, FIX8::SessionInstance< T >::_session, FIX8::SessionInstance< T >::_sock, FIX8::Logger::Error, FIX8::Connection::stop(), and FIX8::f8Exception::what().
|
inlineoverridevirtual |
Get a pointer to the session
Implements FIX8::SessionInstanceBase.
Definition at line 711 of file sessionwrapper.hpp.
References FIX8::SessionInstance< T >::_session.
|
inlineoverridevirtual |
Start the session - accept the connection, logon and start heartbeating.
wait | if true wait till session finishes before returning |
send_seqnum | if supplied, override the send login sequence number, set next send to seqnum+1 |
recv_seqnum | if supplied, override the receive login sequence number, set next recv to seqnum+1 |
Reimplemented from FIX8::SessionInstanceBase.
Definition at line 717 of file sessionwrapper.hpp.
|
inlineoverridevirtual |
Stop the session. Cleanup.
Reimplemented from FIX8::SessionInstanceBase.
Definition at line 721 of file sessionwrapper.hpp.
|
private |
Definition at line 622 of file sessionwrapper.hpp.
|
private |
Definition at line 625 of file sessionwrapper.hpp.
Referenced by FIX8::SessionInstance< T >::~SessionInstance().
|
private |
Definition at line 624 of file sessionwrapper.hpp.
Referenced by FIX8::SessionInstance< T >::session_ptr(), and FIX8::SessionInstance< T >::~SessionInstance().
|
private |
Definition at line 621 of file sessionwrapper.hpp.
|
private |
Definition at line 623 of file sessionwrapper.hpp.
Referenced by FIX8::SessionInstance< T >::~SessionInstance().