NETSIM  1.0.0
Hardware-in-the-loopacousticnetworksimulator
netsim::tcp_client Class Reference

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

Inheritance diagram for netsim::tcp_client:
Collaboration diagram for netsim::tcp_client:

Public Member Functions

void connect (const std::string &server, unsigned short port)
 
- Public Member Functions inherited from netsim::tcp_session
 tcp_session (std::unique_ptr< boost::asio::ip::tcp::socket > socket)
 
void start ()
 
void read_callback (typename ReceiveUnparsed::CallbackType f)
 
template<typename ProtobufMessage >
void read_callback (typename Receive< ProtobufMessage >::CallbackType f)
 
void write (const google::protobuf::Message &message)
 
void disconnect ()
 
bool connected ()
 
boost::asio::ip::tcp::endpoint remote_endpoint ()
 

Static Public Member Functions

static std::shared_ptr< tcp_clientcreate (boost::asio::io_service &io_service)
 

Additional Inherited Members

- Protected Member Functions inherited from netsim::tcp_session
std::unique_ptr< boost::asio::ip::tcp::socket > & socket ()
 

Detailed Description

Definition at line 30 of file tcp_client.h.

Member Function Documentation

◆ connect()

void netsim::tcp_client::connect ( const std::string &  server,
unsigned short  port 
)

◆ create()

static std::shared_ptr<tcp_client> netsim::tcp_client::create ( boost::asio::io_service &  io_service)
static

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