2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
42#ifndef APPS_WEBSOCKET_SUBPROTOCOL_ECHO_SERVER_ECHO_H
43#define APPS_WEBSOCKET_SUBPROTOCOL_ECHO_SERVER_ECHO_H
45#include "web/websocket/client/SubProtocol.h"
51#ifndef DOXYGEN_SHOULD_SKIP_THIS
59namespace apps::websocket::subprotocol::echo::
client {
68 void onMessageData(
const char* chunk, std::size_t chunkLen)
override;
bool onSignal(int sig) override
void onMessageEnd() override
Echo(web::websocket::SubProtocolContext *socketContextUpgradeBase, const std::string &name)
void onDisconnected() override
void onConnected() override
void onMessageStart(int opCode) override
void onMessageError(uint16_t errnum) override
void onMessageData(const char *chunk, std::size_t chunkLen) override
void sendClose(uint16_t statusCode=1000, const char *reason=nullptr, std::size_t reasonLength=0)
std::string sigabbrev_np(int sig)