28 #ifndef WEBSOCKETPP_TRANSPORT_IOSTREAM_BASE_HPP
29 #define WEBSOCKETPP_TRANSPORT_IOSTREAM_BASE_HPP
31 #include <websocketpp/common/system_error.hpp>
32 #include <websocketpp/common/cpp11.hpp>
67 char const * name()
const _WEBSOCKETPP_NOEXCEPT_TOKEN_ {
68 return "websocketpp.transport.iostream";
71 std::string message(
int value)
const {
74 return "Generic iostream transport policy error";
76 return "async_read_at_least call requested more bytes than buffer can store";
78 return "Async read already in progress";
80 return "An output stream to be set before async_write can be used";
82 return "A stream operation returned ios::bad";
97 return lib::error_code(static_cast<int>(e),
get_category());
104 _WEBSOCKETPP_ERROR_CODE_ENUM_NS_START_
107 static bool const value =
true;
109 _WEBSOCKETPP_ERROR_CODE_ENUM_NS_END_
111 #endif // WEBSOCKETPP_TRANSPORT_IOSTREAM_BASE_HPP
uint16_t value
The type of a close code value.
lib::error_code make_error_code(error::value e)
Get an error code with the given value and the iostream transport category.
async_read called while another async_read was in progress
lib::error_category const & get_category()
Get a reference to a static copy of the iostream transport error category.
async_read_at_least call requested more bytes than buffer can store
Namespace for the WebSocket++ project.
iostream transport error category