libzmq
src
ws_encoder.hpp
Go to the documentation of this file.
1
/* SPDX-License-Identifier: MPL-2.0 */
2
3
#ifndef __ZMQ_WS_ENCODER_HPP_INCLUDED__
4
#define __ZMQ_WS_ENCODER_HPP_INCLUDED__
5
6
#include "
encoder.hpp
"
7
8
namespace
zmq
9
{
10
// Encoder for web socket framing protocol. Converts messages into data stream.
11
12
class
ws_encoder_t
ZMQ_FINAL
:
public
encoder_base_t<ws_encoder_t>
13
{
14
public
:
15
ws_encoder_t (
size_t
bufsize_,
bool
must_mask_);
16
~ws_encoder_t ();
17
18
private
:
19
void
size_ready ();
20
void
message_ready ();
21
22
unsigned
char
_tmp_buf[16];
23
bool
_must_mask
;
24
unsigned
char
_mask[4];
25
msg_t
_masked_msg
;
26
bool
_is_binary
;
27
28
ZMQ_NON_COPYABLE_NOR_MOVABLE
(ws_encoder_t)
29
};
30
}
31
32
#endif
zmq::ZMQ_FINAL::_must_mask
bool _must_mask
Definition:
ws_encoder.hpp:23
zmq
Definition:
zmq.hpp:229
ZMQ_NON_COPYABLE_NOR_MOVABLE
#define ZMQ_NON_COPYABLE_NOR_MOVABLE(classname)
Definition:
macros.hpp:58
zmq::ZMQ_FINAL::_is_binary
bool _is_binary
Definition:
ws_encoder.hpp:26
encoder.hpp
zmq::ZMQ_FINAL::_masked_msg
msg_t _masked_msg
Definition:
ws_encoder.hpp:25
ZMQ_FINAL
Definition:
unittest_ip_resolver.cpp:26
zmq::msg_t
Definition:
msg.hpp:33
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:02