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

Construct the specified output message-type from the input message and send it to the client socket. More...

#include <processing_rules.hpp>

Public Types

using src_msg_t = InMsg
 
using dest_msg_t = OutMsg
 

Public Member Functions

template<class ... Args>
constexpr convert_then_send (Args &&...) noexcept(true)
 
template<auto state, auto next>
decltype(next) operator() (typename src_msg_details_t::msg_buffer_t const &buff, socket_t &, socket_t &client_skt) const
 

Detailed Description

template<class SrcMsgDetails, class DestMsgDetails, class Derived, class FlowMsgTypes, class SktT>
template<class InMsg, class OutMsg>
struct isimud::exchanges::common::message_responses< SrcMsgDetails, DestMsgDetails, Derived, FlowMsgTypes, SktT >::convert_then_send< InMsg, OutMsg >

Construct the specified output message-type from the input message and send it to the client socket.

Definition at line 136 of file processing_rules.hpp.

Member Typedef Documentation

◆ dest_msg_t

template<class SrcMsgDetails, class DestMsgDetails, class Derived, class FlowMsgTypes, class SktT>
template<class InMsg , class OutMsg >
using isimud::exchanges::common::message_responses< SrcMsgDetails, DestMsgDetails, Derived, FlowMsgTypes, SktT >::convert_then_send< InMsg, OutMsg >::dest_msg_t = OutMsg

Definition at line 138 of file processing_rules.hpp.

◆ src_msg_t

template<class SrcMsgDetails, class DestMsgDetails, class Derived, class FlowMsgTypes, class SktT>
template<class InMsg , class OutMsg >
using isimud::exchanges::common::message_responses< SrcMsgDetails, DestMsgDetails, Derived, FlowMsgTypes, SktT >::convert_then_send< InMsg, OutMsg >::src_msg_t = InMsg

Definition at line 137 of file processing_rules.hpp.

Constructor & Destructor Documentation

◆ convert_then_send()

template<class SrcMsgDetails, class DestMsgDetails, class Derived, class FlowMsgTypes, class SktT>
template<class InMsg , class OutMsg >
template<class ... Args>
constexpr isimud::exchanges::common::message_responses< SrcMsgDetails, DestMsgDetails, Derived, FlowMsgTypes, SktT >::convert_then_send< InMsg, OutMsg >::convert_then_send ( Args &&  ...)
inlineexplicitconstexprnoexcept

Definition at line 141 of file processing_rules.hpp.

Member Function Documentation

◆ operator()()

template<class SrcMsgDetails, class DestMsgDetails, class Derived, class FlowMsgTypes, class SktT>
template<class InMsg , class OutMsg >
template<auto state, auto next>
decltype(next) isimud::exchanges::common::message_responses< SrcMsgDetails, DestMsgDetails, Derived, FlowMsgTypes, SktT >::convert_then_send< InMsg, OutMsg >::operator() ( typename src_msg_details_t::msg_buffer_t const &  buff,
socket_t ,
socket_t client_skt 
) const
inline
Parameters
buffThe message that was received, that shall be processed.
client_sktThe socket to which any responses should be written.
Returns
The next state from the declaration of the table.

Definition at line 150 of file processing_rules.hpp.


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