27 Jul
2011
27 Jul
'11
7:48 a.m.
Hi, I found this example for use the async_accept() method: void accept_handler(const boost::system::error_code& error) { if (!error) { // Accept succeeded. } } ... boost::asio::ip::tcp::acceptor acceptor(io_service); ... boost::asio::ip::tcp::socket socket(io_service); acceptor.async_accept(socket, accept_handler); It is possible use the async_accept with a (c++0x) lambda function instead of the function accept_handler()? -- View this message in context: http://boost.2283326.n4.nabble.com/ASIO-async-accept-and-c-2011-lambas-tp369... Sent from the Boost - Users mailing list archive at Nabble.com.