libDwm-0.9.45
Dwm::ASIOReadable Class Referenceabstract

Interface for classes that wish to be readable via Dwm::ASIO. More...

#include <DwmASIOCapable.hh>

Inheritance diagram for Dwm::ASIOReadable:

Public Member Functions

virtual bool Read (boost::asio::ip::tcp::socket &s, boost::system::error_code &ec)=0
 Should read the class from the given socket s and return true on success, false on failure.
 
virtual bool Read (boost::asio::local::stream_protocol::socket &s, boost::system::error_code &ec)=0
 Should read the class from the given socket s and return true on success, false on failure.
 
virtual bool Read (boost::asio::generic::stream_protocol::socket &s, boost::system::error_code &ec)=0
 

Detailed Description

Interface for classes that wish to be readable via Dwm::ASIO.

Pure virtual.

Member Function Documentation

◆ Read() [1/2]

virtual bool Dwm::ASIOReadable::Read ( boost::asio::ip::tcp::socket & s,
boost::system::error_code & ec )
pure virtual

Should read the class from the given socket s and return true on success, false on failure.

Should set ec to the correct error code on failure.

◆ Read() [2/2]

virtual bool Dwm::ASIOReadable::Read ( boost::asio::local::stream_protocol::socket & s,
boost::system::error_code & ec )
pure virtual

Should read the class from the given socket s and return true on success, false on failure.

Should set ec to the correct error code on failure.


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