37 template <
typename InputPacket,
typename OutputPacket >
54 template <
typename Container >
57 seq_.insert( std::forward< Container >(
data ) );
60 std::variant< std::size_t, input_value, error_record >
get_value()
62 using return_type = std::variant< std::size_t, input_value, error_record >;
71 return match( handler::extract( msg ), convert_to< return_type >{} );
Definition: endpoint.h:39
typename OutputPacket::message_type output_message
Definition: endpoint.h:43
output_message serialize(output_value const &val)
Definition: endpoint.h:48
void insert(Container &&data)
Definition: endpoint.h:55
typename InputPacket::sequencer_type sequencer_type
Definition: endpoint.h:42
typename InputPacket::value_type input_value
Definition: endpoint.h:46
typename OutputPacket::value_type output_value
Definition: endpoint.h:45
std::variant< std::size_t, input_value, error_record > get_value()
Definition: endpoint.h:60
typename InputPacket::message_type input_message
Definition: endpoint.h:44
MIT License.
Definition: multiplexer.h:33
std::variant< error_record, endpoint_load_error > endpoint_error
Definition: endpoint.h:35
Definition: endpoint.h:32
std::variant< int64_t, float, bool, string_buffer > value_type
Definition: base.h:51
constexpr pointer data() noexcept
Returns pointer to first item of the storage.
Definition: static_storage.h:108
decltype(auto) match(Variant &&var, Callables &&... cals)
Definition: match.h:55
handler< T > should be used to execute actual serialization and deserealization of protocol definitio...
Definition: handler.h:39
static message_type serialize(value_type const &val)
Definition: handler.h:45
Definition: packet_handler.h:36
Definition: sequencer.h:36