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

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

Public Member Functions

 tcp_server (boost::asio::io_service &io_service, short port)
 
void write (const google::protobuf::Message &message, const boost::asio::ip::tcp::endpoint &ep)
 
template<typename ProtobufMessage >
void read_callback (typename Receive< ProtobufMessage >::CallbackType f)
 

Detailed Description

Definition at line 32 of file tcp_server.h.

Constructor & Destructor Documentation

◆ tcp_server()

netsim::tcp_server::tcp_server ( boost::asio::io_service &  io_service,
short  port 
)

Member Function Documentation

◆ read_callback()

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

Definition at line 39 of file tcp_server.h.

◆ write()

void netsim::tcp_server::write ( const google::protobuf::Message &  message,
const boost::asio::ip::tcp::endpoint &  ep 
)

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