示例#1
0
/* 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
}
示例#2
0
	virtual std::wstring print() const
	{
		return client_->print();
	}
示例#3
0
	virtual void disconnect()
	{
		client_->disconnect();
	}
示例#4
0
	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));
	}
示例#5
0
	virtual std::wstring print() const 
	{
		return client_connection_->print();
	}
示例#6
0
	virtual void Send(const std::wstring& data)
	{
		client_connection_->send(std::wstring(data));
	}
示例#7
0
	virtual void Disconnect()
	{
		client_connection_->disconnect();
	}