Add close_socket, beast_close_socket customization:

This algorithm allows a socket-like object to be closed in
a generic context. The customization point enables user-defined
types to define the close algorithm to use with `close_socket`.
This commit is contained in:
Vinnie Falco
2019-02-01 14:05:07 -08:00
parent 6a658b5c3a
commit 49deee4a69
15 changed files with 361 additions and 62 deletions
-9
View File
@@ -35,15 +35,6 @@ public:
is_mutable_dynamic_buffer<
static_buffer_base>::value);
#if ! defined( BOOST_LIBSTDCXX_VERSION ) || BOOST_LIBSTDCXX_VERSION >= 50000
# ifndef BOOST_ASIO_ENABLE_BUFFER_DEBUGGING
BOOST_STATIC_ASSERT(std::is_trivially_copyable<
static_buffer_base::const_buffers_type>::value);
BOOST_STATIC_ASSERT(std::is_trivially_copyable<
static_buffer_base::mutable_data_type>::value);
# endif
#endif
void
testDynamicBuffer()
{