forked from boostorg/beast
Tidy up error types:
* Restructure header material * Clean up namespace type injections * Remove extraneous 'success' constants
This commit is contained in:
1 parent
f2a283ed10
commit
6b0b016b21
23 files changed
+260
-292
No files matched your search
@@ -16,10 +16,8 @@ namespace websocket {
|
||||
/// Error codes returned from @ref stream operations.
|
||||
enum class error
|
||||
{
|
||||
success = 0,
|
||||
|
||||
/// Both sides performed a WebSocket close
|
||||
closed,
|
||||
closed = 1,
|
||||
|
||||
/// WebSocket connection failed, protocol violation
|
||||
failed,
|
||||
@@ -52,11 +50,6 @@ enum class error
|
||||
general
|
||||
};
|
||||
|
||||
#if ! GENERATING_DOCS
|
||||
error_code
|
||||
make_error_code(error e);
|
||||
#endif
|
||||
|
||||
} // websocket
|
||||
} // beast
|
||||
|
||||
|
||||
Reference in new issue
Block a user