2008-12-19から1日間の記事一覧

boost::asio: echoサーバ

C++

う、動いてる… #include <iostream> #include <string> #define _WIN32_WINNT 0x0501 #include <boost/bind.hpp> #include <boost/asio.hpp> using namespace std; using boost::bind; using boost::asio::io_service; using boost::asio::ip::tcp; using boost::system::error_code; void echo(tcp::acceptor *</boost/asio.hpp></boost/bind.hpp></string></iostream>…