13class ProtocolWebSocket final :
public Protocol
16 ProtocolWebSocket(
Server *wsgi);
17 virtual ~ProtocolWebSocket()
override;
19 Type type()
const override;
21 static QByteArray createWebsocketHeader(quint8 opcode, quint64 len);
22 static QByteArray createWebsocketCloseReply(
const QString &msg, quint16 closeCode);
33 bool websocket_parse_header(
Socket *sock,
const char *buf,
QIODevice *io)
const;
34 bool websocket_parse_size(
Socket *sock,
const char *buf,
int websockets_max_message_size)
const;
35 void websocket_parse_mask(
Socket *sock,
char *buf,
QIODevice *io)
const;
36 bool websocket_parse_payload(
Socket *sock,
char *buf,
int len,
QIODevice *io)
const;
38 int m_websockets_max_size;