forked from boostorg/beast
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:
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
|
||||
|
||||
|
||||
Reference in new issue
Block a user