Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost::asio, set tcp_nodelay, bad file descriptor?
From: Alex Black (alex_at_[hidden])
Date: 2009-08-06 08:41:12


Thanks Igor. I'm trying out calling set_option in my HandleAccept function (because the socket is open by that point), does that make sense?

- Alex

> -----Original Message-----
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Igor R
> Sent: Wednesday, August 05, 2009 6:38 PM
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] Boost::asio, set tcp_nodelay, bad
> file descriptor?
>
> > I created the acceptor like this:
> >
> >        m_pAcceptor = shared_ptr<tcp::acceptor>( new
> > tcp::acceptor(m_IoService, tcp::endpoint(tcp::v4(), port)) );
> >
>
> Sorry, I didn't pay attention that the exception was at
> set_option() line. You try to set_option() on a new
> "unopened" socket. Try and open it using one of these overloads:
> http://www.boost.org/doc/libs/1_39_0/doc/html/boost_asio/refer
> ence/basic_stream_socket/open.html
> _______________________________________________
> 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