void start()
{
using namespace std; // For time_t, time and ctime.
time_t now = time(0);
shared_const_buffer buffer(ctime(&now));
boost::asio::async_write(socket_, buffer,
boost::bind(&session::handle_write, shared_from_this(),_1)); //ok
// boost::bind(&session::handle_write, shared_from_this()));
}
//lkj note: 2个参数的模版是标准版-
//void (boost::system::error_code, std::size_t))
//,少于 2 个参数( 1 个或者 0 个)也能跑起来, bind 机制内部支持缺省???void handle_write(boost::system::error_code ) //ok
// void handle_write()
{
}