NETSIM  1.0.1
Hardware-in-the-loopacousticnetworksimulator
netsim::ReceiveUnparsed Class Reference

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

Inheritance diagram for netsim::ReceiveUnparsed:
Collaboration diagram for netsim::ReceiveUnparsed:

Public Types

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

Public Member Functions

 ReceiveUnparsed (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

Definition at line 73 of file tcp_session.h.

Member Typedef Documentation

◆ CallbackType

using netsim::ReceiveUnparsed::CallbackType = std::function<void(const std::string& pb_name, const std::string& bytes, const boost::asio::ip::tcp::endpoint& remote)>

Definition at line 77 of file tcp_session.h.

Constructor & Destructor Documentation

◆ ReceiveUnparsed()

netsim::ReceiveUnparsed::ReceiveUnparsed ( CallbackType  f)
inline

Definition at line 78 of file tcp_session.h.

Member Function Documentation

◆ post()

void netsim::ReceiveUnparsed::post ( const std::string &  pb_name,
const std::string &  bytes,
const boost::asio::ip::tcp::endpoint &  remote 
)
inlinevirtual

Implements netsim::ReceiveBase.

Definition at line 79 of file tcp_session.h.


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