CBOE Emulator
1.0
|
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::LimitOrderBook & | get_book () |
Return the limit order book for this server. More... | |
A server that manages multiple client connections for direct market access.
|
inline |
Initialize a new order entry server.
context_ | the IO context to run the server with |
book_ | the book for the server |
port | the port to run the service at |
accounts | a vector of JSON objects, each containing account data |
|
inline |
Return the address the server is running at.
|
inline |
Return the authorizer associated with this server.
|
inline |
Return the limit order book for this server.
|
inline |
Return the port the server is running at.