mqtt_cpp
Public Member Functions | List of all members
MQTT_NS::socket Class Referenceabstract

#include <type_erased_socket.hpp>

Inheritance diagram for MQTT_NS::socket:
Inheritance graph
[legend]

Public Member Functions

virtual ~socket ()=default
 
virtual void async_read (as::mutable_buffer, std::function< void(error_code, std::size_t)>)=0
 
virtual void async_write (std::vector< as::const_buffer >, std::function< void(error_code, std::size_t)>)=0
 
virtual std::size_t write (std::vector< as::const_buffer >, boost::system::error_code &)=0
 
virtual void post (std::function< void()>)=0
 
virtual as::ip::tcp::socket::lowest_layer_type & lowest_layer ()=0
 
virtual any native_handle ()=0
 
virtual void close (boost::system::error_code &)=0
 
virtual as::executor get_executor ()=0
 

Constructor & Destructor Documentation

◆ ~socket()

virtual MQTT_NS::socket::~socket ( )
virtualdefault

Member Function Documentation

◆ async_read()

virtual void MQTT_NS::socket::async_read ( as::mutable_buffer  ,
std::function< void(error_code, std::size_t)>   
)
pure virtual

◆ async_write()

virtual void MQTT_NS::socket::async_write ( std::vector< as::const_buffer >  ,
std::function< void(error_code, std::size_t)>   
)
pure virtual

◆ close()

virtual void MQTT_NS::socket::close ( boost::system::error_code &  )
pure virtual

◆ get_executor()

virtual as::executor MQTT_NS::socket::get_executor ( )
pure virtual

◆ lowest_layer()

virtual as::ip::tcp::socket::lowest_layer_type& MQTT_NS::socket::lowest_layer ( )
pure virtual

◆ native_handle()

virtual any MQTT_NS::socket::native_handle ( )
pure virtual

◆ post()

virtual void MQTT_NS::socket::post ( std::function< void()>  )
pure virtual

◆ write()

virtual std::size_t MQTT_NS::socket::write ( std::vector< as::const_buffer >  ,
boost::system::error_code &   
)
pure virtual

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