libjmmcg  build_2783
A C++ library containing an eclectic mix of useful, advanced components.
isimud::exchanges::common::message_responses< SrcMsgDetails, DestMsgDetails, Derived, FlowMsgTypes, SktT > Class Template Referenceabstract

A simple, MIT-protocol exchange simulator. More...

#include <processing_rules.hpp>

Classes

struct  convert_then_send
 Construct the specified output message-type from the input message and send it to the client socket. More...
 
class  convert_then_send_ref_data
 Construct the specified output message-type from the input message plus reference data and send it to the client socket. More...
 
class  convert_then_send_seq_num
 Construct the specified output message-type from the input message plus reference data and send it to the client socket. More...
 
struct  just_send_to_exchg
 Just default-construct the specified message-type and send it to the exchange socket. More...
 
struct  send_reject
 

Public Types

using src_msg_details_t = SrcMsgDetails
 A type containing the details of the messages that will be received from the client. More...
 
using dest_msg_details_t = DestMsgDetails
 A type containing the details of the messages that will be sent to the exchange. More...
 
using derived_t = Derived
 
using flow_msg_types = FlowMsgTypes
 
using socket_t = SktT
 

Protected Member Functions

virtual bool process_msg (typename src_msg_details_t::msg_buffer_t const &buff, socket_t &exchg_skt, socket_t &client_skt)=0
 

Detailed Description

template<class SrcMsgDetails, class DestMsgDetails, class Derived, class FlowMsgTypes, class SktT>
class isimud::exchanges::common::message_responses< SrcMsgDetails, DestMsgDetails, Derived, FlowMsgTypes, SktT >

A simple, MIT-protocol exchange simulator.

The behaviour of this simulator is a simplification derived from the specification in [1]. [1] "MIT203 - MILLENNIUM EXCHANGE Native Trading Gateway"

Definition at line 87 of file processing_rules.hpp.

Member Typedef Documentation

◆ derived_t

template<class SrcMsgDetails, class DestMsgDetails, class Derived, class FlowMsgTypes, class SktT>
using isimud::exchanges::common::message_responses< SrcMsgDetails, DestMsgDetails, Derived, FlowMsgTypes, SktT >::derived_t = Derived

Definition at line 110 of file processing_rules.hpp.

◆ dest_msg_details_t

template<class SrcMsgDetails, class DestMsgDetails, class Derived, class FlowMsgTypes, class SktT>
using isimud::exchanges::common::message_responses< SrcMsgDetails, DestMsgDetails, Derived, FlowMsgTypes, SktT >::dest_msg_details_t = DestMsgDetails

A type containing the details of the messages that will be sent to the exchange.

Definition at line 109 of file processing_rules.hpp.

◆ flow_msg_types

template<class SrcMsgDetails, class DestMsgDetails, class Derived, class FlowMsgTypes, class SktT>
using isimud::exchanges::common::message_responses< SrcMsgDetails, DestMsgDetails, Derived, FlowMsgTypes, SktT >::flow_msg_types = FlowMsgTypes

Definition at line 111 of file processing_rules.hpp.

◆ socket_t

template<class SrcMsgDetails, class DestMsgDetails, class Derived, class FlowMsgTypes, class SktT>
using isimud::exchanges::common::message_responses< SrcMsgDetails, DestMsgDetails, Derived, FlowMsgTypes, SktT >::socket_t = SktT

Definition at line 112 of file processing_rules.hpp.

◆ src_msg_details_t

template<class SrcMsgDetails, class DestMsgDetails, class Derived, class FlowMsgTypes, class SktT>
using isimud::exchanges::common::message_responses< SrcMsgDetails, DestMsgDetails, Derived, FlowMsgTypes, SktT >::src_msg_details_t = SrcMsgDetails

A type containing the details of the messages that will be received from the client.

Definition at line 107 of file processing_rules.hpp.

Member Function Documentation

◆ process_msg()

template<class SrcMsgDetails, class DestMsgDetails, class Derived, class FlowMsgTypes, class SktT>
virtual bool isimud::exchanges::common::message_responses< SrcMsgDetails, DestMsgDetails, Derived, FlowMsgTypes, SktT >::process_msg ( typename src_msg_details_t::msg_buffer_t const &  buff,
socket_t exchg_skt,
socket_t client_skt 
)
protectedpure virtual
Returns
False to continue processing messages, true otherwise.

Implemented in isimud::exchanges::common::simulator_responses< SrcMsgDetails, simulator_responses< SrcMsgDetails, SktT >, SktT >.


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