libDwm-0.9.45
Dwm::ASIO Class Reference

A collection of functions for reading from and writing to Boost ASIO stream sockets. More...

#include <DwmASIO.hh>

Static Public Member Functions

static bool Read (boost::asio::ip::tcp::socket &s, uint8_t &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::ip::tcp::socket &s, uint8_t value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::local::stream_protocol::socket &s, uint8_t &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::local::stream_protocol::socket &s, uint8_t value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::generic::stream_protocol::socket &s, uint8_t &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::generic::stream_protocol::socket &s, uint8_t value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::ip::tcp::socket &s, bool &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::ip::tcp::socket &s, bool value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::local::stream_protocol::socket &s, bool &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::local::stream_protocol::socket &s, bool value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::generic::stream_protocol::socket &s, bool &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::generic::stream_protocol::socket &s, bool value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::ip::tcp::socket &s, uint16_t &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::ip::tcp::socket &s, uint16_t value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::local::stream_protocol::socket &s, uint16_t &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::local::stream_protocol::socket &s, uint16_t value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::generic::stream_protocol::socket &s, uint16_t &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::generic::stream_protocol::socket &s, uint16_t value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::ip::tcp::socket &s, uint32_t &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::ip::tcp::socket &s, uint32_t value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::local::stream_protocol::socket &s, uint32_t &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::local::stream_protocol::socket &s, uint32_t value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::generic::stream_protocol::socket &s, uint32_t &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::generic::stream_protocol::socket &s, uint32_t value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::ip::tcp::socket &s, uint64_t &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::ip::tcp::socket &s, uint64_t value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::local::stream_protocol::socket &s, uint64_t &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::local::stream_protocol::socket &s, uint64_t value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::generic::stream_protocol::socket &s, uint64_t &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::generic::stream_protocol::socket &s, uint64_t value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::ip::tcp::socket &s, int8_t &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::ip::tcp::socket &s, int8_t value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::local::stream_protocol::socket &s, int8_t &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::local::stream_protocol::socket &s, int8_t value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::generic::stream_protocol::socket &s, int8_t &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::generic::stream_protocol::socket &s, int8_t value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::ip::tcp::socket &s, int16_t &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::ip::tcp::socket &s, int16_t value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::local::stream_protocol::socket &s, int16_t &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::local::stream_protocol::socket &s, int16_t value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::generic::stream_protocol::socket &s, int16_t &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::generic::stream_protocol::socket &s, int16_t value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::ip::tcp::socket &s, int32_t &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::ip::tcp::socket &s, int32_t value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::local::stream_protocol::socket &s, int32_t &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::local::stream_protocol::socket &s, int32_t value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::generic::stream_protocol::socket &s, int32_t &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::generic::stream_protocol::socket &s, int32_t value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::ip::tcp::socket &s, int64_t &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::ip::tcp::socket &s, int64_t value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::local::stream_protocol::socket &s, int64_t &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::local::stream_protocol::socket &s, int64_t value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::generic::stream_protocol::socket &s, int64_t &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::generic::stream_protocol::socket &s, int64_t value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::ip::tcp::socket &s, std::string &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::ip::tcp::socket &s, const std::string &value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::local::stream_protocol::socket &s, std::string &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::local::stream_protocol::socket &s, const std::string &value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static bool Read (boost::asio::generic::stream_protocol::socket &s, std::string &value, boost::system::error_code &ec)
 Reads value from the given socket s.
 
static bool Write (boost::asio::generic::stream_protocol::socket &s, const std::string &value, boost::system::error_code &ec)
 Write value to the given socket s.
 
static uint64_t StreamedLength (const std::string &s)
 Returns the number of bytes that should be written if we call the Write() member for a string.
 
static bool Read (boost::asio::ip::tcp::socket &s, float &val, boost::system::error_code &ec)
 Reads val from s, in IEEE format (see RFC 1832 and/or ANSI/IEEE Standard 754-1985).
 
static bool Write (boost::asio::ip::tcp::socket &s, float val, boost::system::error_code &ec)
 Writes val to s, in IEEE format (see RFC 1832 and/or ANSI/IEEE Standard 754-1985).
 
static bool Read (boost::asio::local::stream_protocol::socket &s, float &val, boost::system::error_code &ec)
 Reads val from s, in IEEE format (see RFC 1832 and/or ANSI/IEEE Standard 754-1985).
 
static bool Write (boost::asio::local::stream_protocol::socket &s, float val, boost::system::error_code &ec)
 Writes val to s, in IEEE format (see RFC 1832 and/or ANSI/IEEE Standard 754-1985).
 
static bool Read (boost::asio::generic::stream_protocol::socket &s, float &val, boost::system::error_code &ec)
 Reads val from s, in IEEE format (see RFC 1832 and/or ANSI/IEEE Standard 754-1985).
 
static bool Write (boost::asio::generic::stream_protocol::socket &s, float val, boost::system::error_code &ec)
 Writes val to s, in IEEE format (see RFC 1832 and/or ANSI/IEEE Standard 754-1985).
 
static bool Read (boost::asio::ip::tcp::socket &s, double &val, boost::system::error_code &ec)
 Reads val from s, in IEEE format (see RFC 1832 and/or ANSI/IEEE Standard 754-1985).
 
static bool Write (boost::asio::ip::tcp::socket &s, double val, boost::system::error_code &ec)
 Writes val to s, in IEEE format (see RFC 1832 and/or ANSI/IEEE Standard 754-1985).
 
static bool Read (boost::asio::local::stream_protocol::socket &s, double &val, boost::system::error_code &ec)
 Reads val from s, in IEEE format (see RFC 1832 and/or ANSI/IEEE Standard 754-1985).
 
static bool Write (boost::asio::local::stream_protocol::socket &s, double val, boost::system::error_code &ec)
 Writes val to s, in IEEE format (see RFC 1832 and/or ANSI/IEEE Standard 754-1985).
 
static bool Read (boost::asio::generic::stream_protocol::socket &s, double &val, boost::system::error_code &ec)
 Reads val from s, in IEEE format (see RFC 1832 and/or ANSI/IEEE Standard 754-1985).
 
static bool Write (boost::asio::generic::stream_protocol::socket &s, double val, boost::system::error_code &ec)
 Writes val to s, in IEEE format (see RFC 1832 and/or ANSI/IEEE Standard 754-1985).
 
template<typename S , typename _firstT , typename _secondT >
requires IsSupportedASIOSocket<S>
static bool Read (S &s, std::pair< _firstT, _secondT > &p, boost::system::error_code &ec)
 Reads a pair<_firstT,_secondT> from s.
 
template<typename S , typename _firstT , typename _secondT >
requires IsSupportedASIOSocket<S>
static bool Write (S &s, const std::pair< _firstT, _secondT > &p, boost::system::error_code &ec)
 Writes a pair<_firstT,_secondT> to s.
 
template<typename S , typename... Args>
requires IsSupportedASIOSocket<S>
static bool Read (S &s, std::tuple< Args... > &t, boost::system::error_code &ec)
 Reads a tuple from s.
 
template<typename S , typename... Args>
requires IsSupportedASIOSocket<S>
static bool Write (S &s, const std::tuple< Args... > &t, boost::system::error_code &ec)
 Writes a tuple to s.
 
template<typename S , typename... Ts>
requires IsSupportedASIOSocket<S>
static bool Read (S &s, std::variant< Ts... > &v, boost::system::error_code &ec)
 Reads a variant \C V from s.
 
template<typename S , typename... Ts>
requires IsSupportedASIOSocket<S>
static bool Write (S &s, const std::variant< Ts... > &v, boost::system::error_code &ec)
 Writes a variant v to s.
 
template<typename S , typename _valueT , size_t N>
requires IsSupportedASIOSocket<S>
static bool Read (S &s, std::array< _valueT, N > &a, boost::system::error_code &ec)
 Reads an array<_valueT,N> v from s.
 
template<typename S , typename _valueT , size_t N>
requires IsSupportedASIOSocket<S>
static bool Write (S &s, const std::array< _valueT, N > &a, boost::system::error_code &ec)
 Writes an array<_valueT.N> v to s.
 
template<typename S , typename _valueT , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Read (S &s, std::vector< _valueT, _Alloc > &v, boost::system::error_code &ec)
 Reads a vector<_valueT> v from s.
 
template<typename S , typename _valueT , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Write (S &s, const std::vector< _valueT, _Alloc > &v, boost::system::error_code &ec)
 Writes a vector<_valueT> v to s.
 
template<typename S , typename _valueT , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Read (S &s, std::deque< _valueT, _Alloc > &d, boost::system::error_code &ec)
 Reads a deque<_valueT> d from s.
 
template<typename S , typename _valueT , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Write (S &s, const std::deque< _valueT, _Alloc > &d, boost::system::error_code &ec)
 Writes a deque<_valueT> d to s.
 
template<typename S , typename _valueT , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Read (S &s, std::list< _valueT, _Alloc > &l, boost::system::error_code &ec)
 Reads a list<_valueT> l from s.
 
template<typename S , typename _valueT , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Write (S &s, const std::list< _valueT, _Alloc > &l, boost::system::error_code &ec)
 Writes a list<_valueT> l to s.
 
template<typename S , typename _keyT , typename _valueT , typename _Compare , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Read (S &s, std::map< _keyT, _valueT, _Compare, _Alloc > &m, boost::system::error_code &ec)
 Reads a map<_keyT,_valueT> m from s.
 
template<typename S , typename _keyT , typename _valueT , typename _Compare , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Write (S &s, const std::map< _keyT, _valueT, _Compare, _Alloc > &m, boost::system::error_code &ec)
 Writes a map<_keyT,_valueT> m to s.
 
template<typename S , typename _keyT , typename _valueT , typename _Compare , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Read (S &s, std::multimap< _keyT, _valueT, _Compare, _Alloc > &m, boost::system::error_code &ec)
 Reads a multimap<_keyT,_valueT> m from s.
 
template<typename S , typename _keyT , typename _valueT , typename _Compare , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Write (S &s, const std::multimap< _keyT, _valueT, _Compare, _Alloc > &m, boost::system::error_code &ec)
 Writes a multimap<_keyT,_valueT> m to s.
 
template<typename S , typename _keyT , typename _valueT , typename _Hash , typename _Pred , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Read (S &s, std::unordered_map< _keyT, _valueT, _Hash, _Pred, _Alloc > &m, boost::system::error_code &ec)
 Reads an unordered_map<_keyT,_valueT> m from s.
 
template<typename S , typename _keyT , typename _valueT , typename _Hash , typename _Pred , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Write (S &s, const std::unordered_map< _keyT, _valueT, _Hash, _Pred, _Alloc > &m, boost::system::error_code &ec)
 Writes a unordered_map<_keyT,_valueT> m to s.
 
template<typename S , typename _valueT , typename _Compare , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Read (S &s, std::set< _valueT, _Compare, _Alloc > &m, boost::system::error_code &ec)
 Reads a set<_valueT> m from s.
 
template<typename S , typename _valueT , typename _Compare , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Write (S &s, const std::set< _valueT, _Compare, _Alloc > &m, boost::system::error_code &ec)
 Writes a set<_valueT> m to s.
 
template<typename S , typename _valueT , typename _Compare , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Read (S &s, std::multiset< _valueT, _Compare, _Alloc > &m, boost::system::error_code &ec)
 Reads a multiset<_valueT> m from s.
 
template<typename S , typename _valueT , typename _Compare , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Write (S &s, const std::multiset< _valueT, _Compare, _Alloc > &m, boost::system::error_code &ec)
 Writes a multiset<_valueT> m to s.
 
template<typename S , typename _valueT , typename _Hash , typename _Pred , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Read (S &s, std::unordered_set< _valueT, _Hash, _Pred, _Alloc > &m, boost::system::error_code &ec)
 Reads an unordered_set<_valueT> m from s.
 
template<typename S , typename _valueT , typename _Hash , typename _Pred , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Write (S &s, const std::unordered_set< _valueT, _Hash, _Pred, _Alloc > &m, boost::system::error_code &ec)
 Writes a unordered_set<_valueT> m to s.
 
template<typename S >
requires IsSupportedASIOSocket<S>
static bool Read (S &s, ASIOReadable &val, boost::system::error_code &ec)
 Reads val from s. Returns true on success, false on failure.
 
template<typename S >
requires IsSupportedASIOSocket<S>
static bool Read (S &s, HasAsioRead auto &val, boost::system::error_code &ec)
 Reads val from s. Returns true on success, false on failure.
 
template<typename S >
requires IsSupportedASIOSocket<S>
static bool Write (S &s, const ASIOWritable &val, boost::system::error_code &ec)
 Writes val to s. Returns true on success, false on failure.
 
template<typename S >
requires IsSupportedASIOSocket<S>
static bool Write (S &s, const HasAsioWrite auto &val, boost::system::error_code &ec)
 Writes val to s. Returns true on success, false on failure.
 
template<typename S , typename... Args>
requires IsSupportedASIOSocket<S>
static bool ReadV (S &s, boost::system::error_code &ec, Args &...args)
 Reads args from s. Returns true on success, false on failure.
 
template<typename S , typename... Args>
requires IsSupportedASIOSocket<S>
static bool WriteV (S &s, boost::system::error_code &ec, const Args &...args)
 Writes args to s. Returns true on success, false on failure.
 

Detailed Description

A collection of functions for reading from and writing to Boost ASIO stream sockets.

TODO: I should probably redesign this. Initially I was only using sockets of type boost::asio::ip::tcp::socket. Once I needed support for boost::asio::local::stream_protocol::socket, things got messy. boost::asio doesn't have a class heirarchy here, it's all templatized. At the moment I don't have time to templatize or switch to only supporting generic::stream_protocol.

Member Function Documentation

◆ Read() [1/49]

static bool Dwm::ASIO::Read ( boost::asio::generic::stream_protocol::socket & s,
bool & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [2/49]

static bool Dwm::ASIO::Read ( boost::asio::generic::stream_protocol::socket & s,
double & val,
boost::system::error_code & ec )
static

Reads val from s, in IEEE format (see RFC 1832 and/or ANSI/IEEE Standard 754-1985).

Returns true on success, false on failure.

◆ Read() [3/49]

static bool Dwm::ASIO::Read ( boost::asio::generic::stream_protocol::socket & s,
float & val,
boost::system::error_code & ec )
static

Reads val from s, in IEEE format (see RFC 1832 and/or ANSI/IEEE Standard 754-1985).

Returns true on success, false on failure.

◆ Read() [4/49]

static bool Dwm::ASIO::Read ( boost::asio::generic::stream_protocol::socket & s,
int16_t & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [5/49]

static bool Dwm::ASIO::Read ( boost::asio::generic::stream_protocol::socket & s,
int32_t & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [6/49]

static bool Dwm::ASIO::Read ( boost::asio::generic::stream_protocol::socket & s,
int64_t & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [7/49]

static bool Dwm::ASIO::Read ( boost::asio::generic::stream_protocol::socket & s,
int8_t & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [8/49]

static bool Dwm::ASIO::Read ( boost::asio::generic::stream_protocol::socket & s,
std::string & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [9/49]

static bool Dwm::ASIO::Read ( boost::asio::generic::stream_protocol::socket & s,
uint16_t & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [10/49]

static bool Dwm::ASIO::Read ( boost::asio::generic::stream_protocol::socket & s,
uint32_t & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [11/49]

static bool Dwm::ASIO::Read ( boost::asio::generic::stream_protocol::socket & s,
uint64_t & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [12/49]

static bool Dwm::ASIO::Read ( boost::asio::generic::stream_protocol::socket & s,
uint8_t & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [13/49]

static bool Dwm::ASIO::Read ( boost::asio::ip::tcp::socket & s,
bool & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [14/49]

static bool Dwm::ASIO::Read ( boost::asio::ip::tcp::socket & s,
double & val,
boost::system::error_code & ec )
static

Reads val from s, in IEEE format (see RFC 1832 and/or ANSI/IEEE Standard 754-1985).

Returns true on success, false on failure.

◆ Read() [15/49]

static bool Dwm::ASIO::Read ( boost::asio::ip::tcp::socket & s,
float & val,
boost::system::error_code & ec )
static

Reads val from s, in IEEE format (see RFC 1832 and/or ANSI/IEEE Standard 754-1985).

Returns true on success, false on failure.

◆ Read() [16/49]

static bool Dwm::ASIO::Read ( boost::asio::ip::tcp::socket & s,
int16_t & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [17/49]

static bool Dwm::ASIO::Read ( boost::asio::ip::tcp::socket & s,
int32_t & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [18/49]

static bool Dwm::ASIO::Read ( boost::asio::ip::tcp::socket & s,
int64_t & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [19/49]

static bool Dwm::ASIO::Read ( boost::asio::ip::tcp::socket & s,
int8_t & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [20/49]

static bool Dwm::ASIO::Read ( boost::asio::ip::tcp::socket & s,
std::string & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [21/49]

static bool Dwm::ASIO::Read ( boost::asio::ip::tcp::socket & s,
uint16_t & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [22/49]

static bool Dwm::ASIO::Read ( boost::asio::ip::tcp::socket & s,
uint32_t & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [23/49]

static bool Dwm::ASIO::Read ( boost::asio::ip::tcp::socket & s,
uint64_t & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [24/49]

static bool Dwm::ASIO::Read ( boost::asio::ip::tcp::socket & s,
uint8_t & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [25/49]

static bool Dwm::ASIO::Read ( boost::asio::local::stream_protocol::socket & s,
bool & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [26/49]

static bool Dwm::ASIO::Read ( boost::asio::local::stream_protocol::socket & s,
double & val,
boost::system::error_code & ec )
static

Reads val from s, in IEEE format (see RFC 1832 and/or ANSI/IEEE Standard 754-1985).

Returns true on success, false on failure.

◆ Read() [27/49]

static bool Dwm::ASIO::Read ( boost::asio::local::stream_protocol::socket & s,
float & val,
boost::system::error_code & ec )
static

Reads val from s, in IEEE format (see RFC 1832 and/or ANSI/IEEE Standard 754-1985).

Returns true on success, false on failure.

◆ Read() [28/49]

static bool Dwm::ASIO::Read ( boost::asio::local::stream_protocol::socket & s,
int16_t & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [29/49]

static bool Dwm::ASIO::Read ( boost::asio::local::stream_protocol::socket & s,
int32_t & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [30/49]

static bool Dwm::ASIO::Read ( boost::asio::local::stream_protocol::socket & s,
int64_t & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [31/49]

static bool Dwm::ASIO::Read ( boost::asio::local::stream_protocol::socket & s,
int8_t & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [32/49]

static bool Dwm::ASIO::Read ( boost::asio::local::stream_protocol::socket & s,
std::string & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [33/49]

static bool Dwm::ASIO::Read ( boost::asio::local::stream_protocol::socket & s,
uint16_t & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [34/49]

static bool Dwm::ASIO::Read ( boost::asio::local::stream_protocol::socket & s,
uint32_t & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [35/49]

static bool Dwm::ASIO::Read ( boost::asio::local::stream_protocol::socket & s,
uint64_t & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [36/49]

static bool Dwm::ASIO::Read ( boost::asio::local::stream_protocol::socket & s,
uint8_t & value,
boost::system::error_code & ec )
static

Reads value from the given socket s.

Returns true on success, false on failure.

◆ Read() [37/49]

template<typename S , typename _valueT , size_t N>
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Read ( S & s,
std::array< _valueT, N > & a,
boost::system::error_code & ec )
inlinestatic

Reads an array<_valueT,N> v from s.

Returns true on success, false on failure.

Here is the call graph for this function:

◆ Read() [38/49]

template<typename S , typename _valueT , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Read ( S & s,
std::deque< _valueT, _Alloc > & d,
boost::system::error_code & ec )
inlinestatic

Reads a deque<_valueT> d from s.

Returns true on success, false on failure.

◆ Read() [39/49]

template<typename S , typename _valueT , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Read ( S & s,
std::list< _valueT, _Alloc > & l,
boost::system::error_code & ec )
inlinestatic

Reads a list<_valueT> l from s.

Returns true on success, false on failure.

◆ Read() [40/49]

template<typename S , typename _keyT , typename _valueT , typename _Compare , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Read ( S & s,
std::map< _keyT, _valueT, _Compare, _Alloc > & m,
boost::system::error_code & ec )
inlinestatic

Reads a map<_keyT,_valueT> m from s.

Returns true on success, false on failure.

◆ Read() [41/49]

template<typename S , typename _keyT , typename _valueT , typename _Compare , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Read ( S & s,
std::multimap< _keyT, _valueT, _Compare, _Alloc > & m,
boost::system::error_code & ec )
inlinestatic

Reads a multimap<_keyT,_valueT> m from s.

Returns true on success, false on failure.

◆ Read() [42/49]

template<typename S , typename _valueT , typename _Compare , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Read ( S & s,
std::multiset< _valueT, _Compare, _Alloc > & m,
boost::system::error_code & ec )
inlinestatic

Reads a multiset<_valueT> m from s.

Returns true on success, false on failure.

◆ Read() [43/49]

template<typename S , typename _firstT , typename _secondT >
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Read ( S & s,
std::pair< _firstT, _secondT > & p,
boost::system::error_code & ec )
inlinestatic

Reads a pair<_firstT,_secondT> from s.

Returns true on success, false on failure.

Here is the call graph for this function:

◆ Read() [44/49]

template<typename S , typename _valueT , typename _Compare , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Read ( S & s,
std::set< _valueT, _Compare, _Alloc > & m,
boost::system::error_code & ec )
inlinestatic

Reads a set<_valueT> m from s.

Returns true on success, false on failure.

◆ Read() [45/49]

template<typename S , typename... Args>
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Read ( S & s,
std::tuple< Args... > & t,
boost::system::error_code & ec )
inlinestatic

Reads a tuple from s.

Returns true on success, false on failure.

Here is the call graph for this function:

◆ Read() [46/49]

template<typename S , typename _keyT , typename _valueT , typename _Hash , typename _Pred , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Read ( S & s,
std::unordered_map< _keyT, _valueT, _Hash, _Pred, _Alloc > & m,
boost::system::error_code & ec )
inlinestatic

Reads an unordered_map<_keyT,_valueT> m from s.

Returns true on success, false on failure.

◆ Read() [47/49]

template<typename S , typename _valueT , typename _Hash , typename _Pred , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Read ( S & s,
std::unordered_set< _valueT, _Hash, _Pred, _Alloc > & m,
boost::system::error_code & ec )
inlinestatic

Reads an unordered_set<_valueT> m from s.

Returns true on success, false on failure.

◆ Read() [48/49]

template<typename S , typename... Ts>
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Read ( S & s,
std::variant< Ts... > & v,
boost::system::error_code & ec )
inlinestatic

Reads a variant \C V from s.

Returns true on success, false on failure.

Here is the call graph for this function:

◆ Read() [49/49]

template<typename S , typename _valueT , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Read ( S & s,
std::vector< _valueT, _Alloc > & v,
boost::system::error_code & ec )
inlinestatic

Reads a vector<_valueT> v from s.

Returns true on success, false on failure.

◆ Write() [1/49]

static bool Dwm::ASIO::Write ( boost::asio::generic::stream_protocol::socket & s,
bool value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [2/49]

static bool Dwm::ASIO::Write ( boost::asio::generic::stream_protocol::socket & s,
const std::string & value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [3/49]

static bool Dwm::ASIO::Write ( boost::asio::generic::stream_protocol::socket & s,
double val,
boost::system::error_code & ec )
static

Writes val to s, in IEEE format (see RFC 1832 and/or ANSI/IEEE Standard 754-1985).

Returns true on success, false on failure.

◆ Write() [4/49]

static bool Dwm::ASIO::Write ( boost::asio::generic::stream_protocol::socket & s,
float val,
boost::system::error_code & ec )
static

Writes val to s, in IEEE format (see RFC 1832 and/or ANSI/IEEE Standard 754-1985).

Returns true on success, false on failure.

◆ Write() [5/49]

static bool Dwm::ASIO::Write ( boost::asio::generic::stream_protocol::socket & s,
int16_t value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [6/49]

static bool Dwm::ASIO::Write ( boost::asio::generic::stream_protocol::socket & s,
int32_t value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [7/49]

static bool Dwm::ASIO::Write ( boost::asio::generic::stream_protocol::socket & s,
int64_t value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [8/49]

static bool Dwm::ASIO::Write ( boost::asio::generic::stream_protocol::socket & s,
int8_t value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [9/49]

static bool Dwm::ASIO::Write ( boost::asio::generic::stream_protocol::socket & s,
uint16_t value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [10/49]

static bool Dwm::ASIO::Write ( boost::asio::generic::stream_protocol::socket & s,
uint32_t value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [11/49]

static bool Dwm::ASIO::Write ( boost::asio::generic::stream_protocol::socket & s,
uint64_t value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [12/49]

static bool Dwm::ASIO::Write ( boost::asio::generic::stream_protocol::socket & s,
uint8_t value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [13/49]

static bool Dwm::ASIO::Write ( boost::asio::ip::tcp::socket & s,
bool value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [14/49]

static bool Dwm::ASIO::Write ( boost::asio::ip::tcp::socket & s,
const std::string & value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [15/49]

static bool Dwm::ASIO::Write ( boost::asio::ip::tcp::socket & s,
double val,
boost::system::error_code & ec )
static

Writes val to s, in IEEE format (see RFC 1832 and/or ANSI/IEEE Standard 754-1985).

Returns true on success, false on failure.

◆ Write() [16/49]

static bool Dwm::ASIO::Write ( boost::asio::ip::tcp::socket & s,
float val,
boost::system::error_code & ec )
static

Writes val to s, in IEEE format (see RFC 1832 and/or ANSI/IEEE Standard 754-1985).

Returns true on success, false on failure.

◆ Write() [17/49]

static bool Dwm::ASIO::Write ( boost::asio::ip::tcp::socket & s,
int16_t value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [18/49]

static bool Dwm::ASIO::Write ( boost::asio::ip::tcp::socket & s,
int32_t value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [19/49]

static bool Dwm::ASIO::Write ( boost::asio::ip::tcp::socket & s,
int64_t value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [20/49]

static bool Dwm::ASIO::Write ( boost::asio::ip::tcp::socket & s,
int8_t value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [21/49]

static bool Dwm::ASIO::Write ( boost::asio::ip::tcp::socket & s,
uint16_t value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [22/49]

static bool Dwm::ASIO::Write ( boost::asio::ip::tcp::socket & s,
uint32_t value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [23/49]

static bool Dwm::ASIO::Write ( boost::asio::ip::tcp::socket & s,
uint64_t value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [24/49]

static bool Dwm::ASIO::Write ( boost::asio::ip::tcp::socket & s,
uint8_t value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [25/49]

static bool Dwm::ASIO::Write ( boost::asio::local::stream_protocol::socket & s,
bool value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [26/49]

static bool Dwm::ASIO::Write ( boost::asio::local::stream_protocol::socket & s,
const std::string & value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [27/49]

static bool Dwm::ASIO::Write ( boost::asio::local::stream_protocol::socket & s,
double val,
boost::system::error_code & ec )
static

Writes val to s, in IEEE format (see RFC 1832 and/or ANSI/IEEE Standard 754-1985).

Returns true on success, false on failure.

◆ Write() [28/49]

static bool Dwm::ASIO::Write ( boost::asio::local::stream_protocol::socket & s,
float val,
boost::system::error_code & ec )
static

Writes val to s, in IEEE format (see RFC 1832 and/or ANSI/IEEE Standard 754-1985).

Returns true on success, false on failure.

◆ Write() [29/49]

static bool Dwm::ASIO::Write ( boost::asio::local::stream_protocol::socket & s,
int16_t value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [30/49]

static bool Dwm::ASIO::Write ( boost::asio::local::stream_protocol::socket & s,
int32_t value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [31/49]

static bool Dwm::ASIO::Write ( boost::asio::local::stream_protocol::socket & s,
int64_t value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [32/49]

static bool Dwm::ASIO::Write ( boost::asio::local::stream_protocol::socket & s,
int8_t value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [33/49]

static bool Dwm::ASIO::Write ( boost::asio::local::stream_protocol::socket & s,
uint16_t value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [34/49]

static bool Dwm::ASIO::Write ( boost::asio::local::stream_protocol::socket & s,
uint32_t value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [35/49]

static bool Dwm::ASIO::Write ( boost::asio::local::stream_protocol::socket & s,
uint64_t value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [36/49]

static bool Dwm::ASIO::Write ( boost::asio::local::stream_protocol::socket & s,
uint8_t value,
boost::system::error_code & ec )
static

Write value to the given socket s.

Returns true on success, false on failure.

◆ Write() [37/49]

template<typename S , typename _valueT , size_t N>
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Write ( S & s,
const std::array< _valueT, N > & a,
boost::system::error_code & ec )
inlinestatic

Writes an array<_valueT.N> v to s.

Returns true on success, false on failure.

Here is the call graph for this function:

◆ Write() [38/49]

template<typename S , typename _valueT , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Write ( S & s,
const std::deque< _valueT, _Alloc > & d,
boost::system::error_code & ec )
inlinestatic

Writes a deque<_valueT> d to s.

Returns true on success, false on failure.

◆ Write() [39/49]

template<typename S , typename _valueT , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Write ( S & s,
const std::list< _valueT, _Alloc > & l,
boost::system::error_code & ec )
inlinestatic

Writes a list<_valueT> l to s.

Returns true on success, false on failure.

◆ Write() [40/49]

template<typename S , typename _keyT , typename _valueT , typename _Compare , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Write ( S & s,
const std::map< _keyT, _valueT, _Compare, _Alloc > & m,
boost::system::error_code & ec )
inlinestatic

Writes a map<_keyT,_valueT> m to s.

Returns true on success, false on failure.

◆ Write() [41/49]

template<typename S , typename _keyT , typename _valueT , typename _Compare , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Write ( S & s,
const std::multimap< _keyT, _valueT, _Compare, _Alloc > & m,
boost::system::error_code & ec )
inlinestatic

Writes a multimap<_keyT,_valueT> m to s.

Returns true on success, false on failure.

◆ Write() [42/49]

template<typename S , typename _valueT , typename _Compare , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Write ( S & s,
const std::multiset< _valueT, _Compare, _Alloc > & m,
boost::system::error_code & ec )
inlinestatic

Writes a multiset<_valueT> m to s.

Returns true on success, false on failure.

◆ Write() [43/49]

template<typename S , typename _firstT , typename _secondT >
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Write ( S & s,
const std::pair< _firstT, _secondT > & p,
boost::system::error_code & ec )
inlinestatic

Writes a pair<_firstT,_secondT> to s.

Returns true on success, false on failure.

Here is the call graph for this function:

◆ Write() [44/49]

template<typename S , typename _valueT , typename _Compare , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Write ( S & s,
const std::set< _valueT, _Compare, _Alloc > & m,
boost::system::error_code & ec )
inlinestatic

Writes a set<_valueT> m to s.

Returns true on success, false on failure.

◆ Write() [45/49]

template<typename S , typename... Args>
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Write ( S & s,
const std::tuple< Args... > & t,
boost::system::error_code & ec )
inlinestatic

Writes a tuple to s.

Returns true on success, false on failure.

Here is the call graph for this function:

◆ Write() [46/49]

template<typename S , typename _keyT , typename _valueT , typename _Hash , typename _Pred , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Write ( S & s,
const std::unordered_map< _keyT, _valueT, _Hash, _Pred, _Alloc > & m,
boost::system::error_code & ec )
inlinestatic

Writes a unordered_map<_keyT,_valueT> m to s.

Returns true on success, false on failure.

◆ Write() [47/49]

template<typename S , typename _valueT , typename _Hash , typename _Pred , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Write ( S & s,
const std::unordered_set< _valueT, _Hash, _Pred, _Alloc > & m,
boost::system::error_code & ec )
inlinestatic

Writes a unordered_set<_valueT> m to s.

Returns true on success, false on failure.

◆ Write() [48/49]

template<typename S , typename... Ts>
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Write ( S & s,
const std::variant< Ts... > & v,
boost::system::error_code & ec )
inlinestatic

Writes a variant v to s.

Returns true on sucess, false on failure.

Here is the call graph for this function:

◆ Write() [49/49]

template<typename S , typename _valueT , typename _Alloc >
requires IsSupportedASIOSocket<S>
static bool Dwm::ASIO::Write ( S & s,
const std::vector< _valueT, _Alloc > & v,
boost::system::error_code & ec )
inlinestatic

Writes a vector<_valueT> v to s.

Returns true on success, false on failure.


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