
14 May
2011
14 May
'11
1:44 p.m.
This is the code: boost::asio::io_service io_service; tcp::acceptor acceptor(io_service,tcp::endpoint(tcp::v4(),3211)); while(1) { tcp::socket *socket = new tcp::socket(io_service); // acceptor.accept(*socket); //make a new thread... std::thread *t = new std::thread(std::bind(threadSocket,socket)); }//endwhile -- View this message in context: http://boost.2283326.n4.nabble.com/Error-closing-an-asio-socket-tp3521153p35... Sent from the Boost - Users mailing list archive at Nabble.com.