BetaTrader
A HFT Eco-System
Loading...
Searching...
No Matches
fix::FixServer Class Reference

#include <FixServer.h>

Collaboration diagram for fix::FixServer:
Collaboration graph

Public Member Functions

 FixServer (asio::io_context &ioContext, short port, trading_core::TradingCore &tradingCore)
 
void onExecutionReport (const ExecutionReport &report)
 
void onMarketDataIncrementalRefresh (const MarketDataIncrementalRefresh &refresh)
 
void onMarketDataSnapshotFullRefresh (const MarketDataSnapshotFullRefresh &snapshot)
 
void registerSession (const std::shared_ptr< FixSession > &session)
 
void unregisterSession (uint32_t sessionId)
 

Private Member Functions

void doAccept ()
 

Private Attributes

asio::ip::tcp::acceptor mAcceptor
 
std::map< std::string, std::vector< std::weak_ptr< FixSession > > > mMarketDataSubscriptions
 
uint32_t mNextSessionId = 1
 
std::map< uint32_t, std::shared_ptr< FixSession > > mSessions
 
asio::ip::tcp::socket mSocket
 
trading_core::TradingCoremTradingCore
 

Constructor & Destructor Documentation

◆ FixServer()

fix::FixServer::FixServer ( asio::io_context &  ioContext,
short  port,
trading_core::TradingCore tradingCore 
)
Here is the call graph for this function:

Member Function Documentation

◆ doAccept()

void fix::FixServer::doAccept ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onExecutionReport()

void fix::FixServer::onExecutionReport ( const ExecutionReport report)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onMarketDataIncrementalRefresh()

void fix::FixServer::onMarketDataIncrementalRefresh ( const MarketDataIncrementalRefresh refresh)
Here is the caller graph for this function:

◆ onMarketDataSnapshotFullRefresh()

void fix::FixServer::onMarketDataSnapshotFullRefresh ( const MarketDataSnapshotFullRefresh snapshot)
Here is the caller graph for this function:

◆ registerSession()

void fix::FixServer::registerSession ( const std::shared_ptr< FixSession > &  session)
Here is the caller graph for this function:

◆ unregisterSession()

void fix::FixServer::unregisterSession ( uint32_t  sessionId)
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ mAcceptor

asio::ip::tcp::acceptor fix::FixServer::mAcceptor
private

◆ mMarketDataSubscriptions

std::map<std::string, std::vector<std::weak_ptr<FixSession> > > fix::FixServer::mMarketDataSubscriptions
private

◆ mNextSessionId

uint32_t fix::FixServer::mNextSessionId = 1
private

◆ mSessions

std::map<uint32_t, std::shared_ptr<FixSession> > fix::FixServer::mSessions
private

◆ mSocket

asio::ip::tcp::socket fix::FixServer::mSocket
private

◆ mTradingCore

trading_core::TradingCore& fix::FixServer::mTradingCore
private

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