RESTinio
|
Go to the source code of this file.
Classes | |
class | restinio::websocket::basic::message_t |
WebSocket message. More... | |
Namespaces | |
namespace | restinio |
namespace | restinio::websocket |
namespace | restinio::websocket::basic |
Macros | |
#define | RESTINIO_WEBSOCKET_OPCODES_MAP(RESTINIO_GEN) |
#define | RESTINIO_WEBSOCKET_OPCODES_GEN(name, code) name = code, |
#define | RESTINIO_WEBSOCKET_OPCODES_GEN(name, code) case opcode_t::name: result = #name; break; |
#define | RESTINIO_WEBSOCKET_OPCODES_GEN(name, code) case opcode_t::name: break; |
Typedefs | |
using | restinio::websocket::basic::message_handle_t = std::shared_ptr< message_t > |
Request handler, that is the type for calling request handlers. More... | |
using | restinio::websocket::basic::default_message_handler_t = std::function< void(message_handle_t) > |
Functions | |
const char * | restinio::websocket::basic::opcode_to_string (opcode_t opcode) |
Helper sunction to get method string name. More... | |
bool | restinio::websocket::basic::is_valid_opcode (opcode_t opcode) |
std::string | restinio::websocket::basic::status_code_to_bin (status_code_t code) |
status_code_t | restinio::websocket::basic::status_code_from_bin (string_view_t data) |
Variables | |
constexpr final_frame_flag_t | restinio::websocket::basic::final_frame = final_frame_flag_t::final_frame |
constexpr final_frame_flag_t | restinio::websocket::basic::not_final_frame = final_frame_flag_t::not_final_frame |
Definition at line 38 of file message.hpp.
#define RESTINIO_WEBSOCKET_OPCODES_GEN | ( | name, | |
code | |||
) | case opcode_t::name: result = #name; break; |
Definition at line 38 of file message.hpp.
#define RESTINIO_WEBSOCKET_OPCODES_GEN | ( | name, | |
code | |||
) | case opcode_t::name: break; |
Definition at line 38 of file message.hpp.
#define RESTINIO_WEBSOCKET_OPCODES_MAP | ( | RESTINIO_GEN | ) |
Definition at line 24 of file message.hpp.