
ASIO
lingedeng
海纳百川有容乃大,壁立千仞无欲则刚!
展开
-
asio乱写——io_service之post方法
#include #include #include #include using namespace boost::asio; void PrintSomething(const std::string& msg) { std::cout << msg << '\n'; } void PrintHello() { std::cout << "Hello\n"; }原创 2014-01-20 16:40:37 · 10484 阅读 · 2 评论 -
asio乱写——异步timer
ASIO(1.4.3) Tutorial : Timer.2 - Using a timer asynchronously // // timer.cpp // ~~~~~~~~~ // // Copyright (c) 2003-2008 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under原创 2014-01-20 16:29:41 · 1911 阅读 · 0 评论