/* Put-to operator for client_connection::send(). Throws the same exceptions as * client_connection::send(). */ void operator<< (client_connection& cc, string& str) { try { cc.send(str); } catch(...) { throw; } // Rethrows exceptions }
virtual std::wstring print() const { return client_->print(); }
virtual void disconnect() { client_->disconnect(); }
virtual void send(std::basic_string<wchar_t>&& data) { auto str = boost::locale::conv::from_utf<wchar_t>(std::move(data), codepage_); client_->send(std::move(str)); }
virtual std::wstring print() const { return client_connection_->print(); }
virtual void Send(const std::wstring& data) { client_connection_->send(std::wstring(data)); }
virtual void Disconnect() { client_connection_->disconnect(); }