|
Boost Users : |
Subject: Re: [Boost-users] basic_socket.hpp line 1421
From: Jim Wilburn (jwilburn_at_[hidden])
Date: 2013-07-01 19:37:16
If you take a look at 'boost\asio\detail\throw_error.hpp' you can see that boost::system::error_code is checked prior to the throw.
10054 is most likely a Windows API error. In Visual Studio run 'Tools->Error Lookup'. Results:
Value: 10054
Error Message: An existing connection was forcibly closed by the remote host.
-----Original Message-----
From: Boost-users [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Christopher Pisz
Sent: Monday, 01 July 2013 04:13 PM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] basic_socket.hpp line 1421
On 7/1/2013 6:08 PM, Christopher Pisz wrote:
> in boost's header basic_socket.hpp:
>
> void shutdown(shutdown_type what)
> {
> boost::system::error_code ec;
> this->get_service().shutdown(this->get_implementation(), what, ec);
> boost::asio::detail::throw_error(ec, "shutdown");
> }
>
> I don't see how this would not throw? It looks like it _always_ throws?
> What's the deal here?
The ec value is 10054 btw. I'm not sure where I can look those up. Where to look?
_______________________________________________
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