Boost ASIO客户端断线。

2620阅读 0评论2015-05-18 fender0107401
分类:Html/Css

如果发现:
what(): remote_endpoint: Transport endpoint is not connected

那么试试:
try
{
    // Do your job here.           
}
catch(boost::system::system_error &ec)
{
    // Show your warning message or do something else here.    
}

上一篇:C++获取当前时间
下一篇:Debian 8.0 aliyun source.list