v2_encoder.hpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: MPL-2.0 */
2 
3 #ifndef __ZMQ_V2_ENCODER_HPP_INCLUDED__
4 #define __ZMQ_V2_ENCODER_HPP_INCLUDED__
5 
6 #include "encoder.hpp"
7 
8 namespace zmq
9 {
10 // Encoder for 0MQ framing protocol. Converts messages into data stream.
11 
12 class v2_encoder_t ZMQ_FINAL : public encoder_base_t<v2_encoder_t>
13 {
14  public:
15  v2_encoder_t (size_t bufsize_);
16  ~v2_encoder_t ();
17 
18  private:
19  void size_ready ();
20  void message_ready ();
21 
22  // flags byte + size byte (or 8 bytes) + sub/cancel byte
23  unsigned char _tmp_buf[10];
24 
25  ZMQ_NON_COPYABLE_NOR_MOVABLE (v2_encoder_t)
26 };
27 }
28 
29 #endif
zmq
Definition: zmq.hpp:229
ZMQ_NON_COPYABLE_NOR_MOVABLE
#define ZMQ_NON_COPYABLE_NOR_MOVABLE(classname)
Definition: macros.hpp:58
encoder.hpp
ZMQ_FINAL
Definition: unittest_ip_resolver.cpp:26


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:01