CBOE Emulator  1.0
Public Member Functions | List of all members
OrderEntry::Server Class Reference

A server that manages multiple client connections for direct market access. More...

#include <server.hpp>

Public Member Functions

 Server (asio::io_context &context_, LOB::LimitOrderBook &book_, uint16_t port, std::vector< nlohmann::json > accounts)
 Initialize a new order entry server. More...
 
asio::ip::address address () const
 Return the address the server is running at. More...
 
uint16_t port () const
 Return the port the server is running at. More...
 
const Authorizer< Connection > & get_authorizer ()
 Return the authorizer associated with this server. More...
 
const LOB::LimitOrderBookget_book ()
 Return the limit order book for this server. More...
 

Detailed Description

A server that manages multiple client connections for direct market access.

Constructor & Destructor Documentation

◆ Server()

OrderEntry::Server::Server ( asio::io_context &  context_,
LOB::LimitOrderBook book_,
uint16_t  port,
std::vector< nlohmann::json >  accounts 
)
inline

Initialize a new order entry server.

Parameters
context_the IO context to run the server with
book_the book for the server
portthe port to run the service at
accountsa vector of JSON objects, each containing account data

Member Function Documentation

◆ address()

asio::ip::address OrderEntry::Server::address ( ) const
inline

Return the address the server is running at.

Returns
the IP address for connecting to the service

◆ get_authorizer()

const Authorizer<Connection>& OrderEntry::Server::get_authorizer ( )
inline

Return the authorizer associated with this server.

Returns
the authorizer used to login client connections

◆ get_book()

const LOB::LimitOrderBook& OrderEntry::Server::get_book ( )
inline

Return the limit order book for this server.

Returns
the limit order book that this server is maintaining

◆ port()

uint16_t OrderEntry::Server::port ( ) const
inline

Return the port the server is running at.

Returns
the port for connecting to the service

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