NETSIM  1.0.1
Hardware-in-the-loopacousticnetworksimulator
netsim::Receive< ProtobufMessage > Class Template Reference

#include </root/netsim/obj-x86_64-linux-gnu/include/netsim/tcp/tcp_session.h>

Inheritance diagram for netsim::Receive< ProtobufMessage >:
Collaboration diagram for netsim::Receive< ProtobufMessage >:

Public Types

using CallbackType = std::function< void(const ProtobufMessage &msg, const boost::asio::ip::tcp::endpoint &remote)>
 

Public Member Functions

 Receive (CallbackType f)
 
void post (const std::string &pb_name, const std::string &bytes, const boost::asio::ip::tcp::endpoint &remote)
 
- Public Member Functions inherited from netsim::ReceiveBase
 ReceiveBase ()=default
 
virtual ~ReceiveBase ()=default
 

Detailed Description

template<typename ProtobufMessage>
class netsim::Receive< ProtobufMessage >

Definition at line 54 of file tcp_session.h.

Member Typedef Documentation

◆ CallbackType

template<typename ProtobufMessage >
using netsim::Receive< ProtobufMessage >::CallbackType = std::function<void(const ProtobufMessage& msg, const boost::asio::ip::tcp::endpoint& remote)>

Definition at line 58 of file tcp_session.h.

Constructor & Destructor Documentation

◆ Receive()

template<typename ProtobufMessage >
netsim::Receive< ProtobufMessage >::Receive ( CallbackType  f)
inline

Definition at line 60 of file tcp_session.h.

Member Function Documentation

◆ post()

template<typename ProtobufMessage >
void netsim::Receive< ProtobufMessage >::post ( const std::string &  pb_name,
const std::string &  bytes,
const boost::asio::ip::tcp::endpoint &  remote 
)
inlinevirtual

Implements netsim::ReceiveBase.

Definition at line 61 of file tcp_session.h.


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