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 committed 2019-02-01 14:05:07 -08:00
1 parent 6a658b5c3a
commit 49deee4a69
15 files changed
+361 -62

No files matched your search

@@ -504,6 +504,15 @@ public:
#endif
};
#if ! BOOST_BEAST_DOXYGEN
inline
void
beast_close_socket(stream& s)
{
s.close();
}
#endif
#if BOOST_BEAST_DOXYGEN
/** Return a new stream connected to the given stream