Boost logo

Boost Users :

Subject: Re: [Boost-users] Error closing an asio::socket
From: Claude (clros_at_[hidden])
Date: 2011-05-14 09:44:12


    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-tp3521153p3522246.html
Sent from the Boost - Users mailing list archive at Nabble.com.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net