|
Boost Users : |
Subject: Re: [Boost-users] Boost::asio, set tcp_nodelay, bad file descriptor?
From: Alex Black (alex_at_[hidden])
Date: 2009-08-05 15:18:33
I created the acceptor like this:
m_pAcceptor = shared_ptr<tcp::acceptor>( new tcp::acceptor(m_IoService, tcp::endpoint(tcp::v4(), port)) );
> -----Original Message-----
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Igor R
> Sent: Wednesday, August 05, 2009 3:10 PM
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] Boost::asio, set tcp_nodelay, bad
> file descriptor?
>
> > m_pAcceptor->async_accept(*pSocket,
> > bind(&CBaseWebServer::HandleAccept, this, pSocket,
> > boost::asio::placeholders::error));
>
> Did you open() the acceptor (or created it with the "opening"
> constructor)?
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
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