/* 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 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 void Send(const std::wstring& data)
	{
		client_connection_->send(std::wstring(data));
	}