libDwm-0.9.45
Dwm::ASIOWritable Class Referenceabstract

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

#include <DwmASIOCapable.hh>

Inheritance diagram for Dwm::ASIOWritable:

Public Member Functions

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

Detailed Description

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

Member Function Documentation

◆ Write() [1/2]

virtual bool Dwm::ASIOWritable::Write ( boost::asio::ip::tcp::socket & s,
boost::system::error_code & ec ) const
pure virtual

Should write the class to the given socket s and return true on success, false on failure.

Should set ec to the correct error code on failure.

◆ Write() [2/2]

virtual bool Dwm::ASIOWritable::Write ( boost::asio::local::stream_protocol::socket & s,
boost::system::error_code & ec ) const
pure virtual

Should write the class to 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: