|
Boost Users : |
Subject: Re: [Boost-users] Boost::asio, set tcp_nodelay, bad file descriptor?
From: Igor R (boost.lists_at_[hidden])
Date: 2009-08-05 18:37:58
> 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/reference/basic_stream_socket/open.html
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