plain_server.hpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: MPL-2.0 */
2 
3 #ifndef __ZMQ_PLAIN_SERVER_HPP_INCLUDED__
4 #define __ZMQ_PLAIN_SERVER_HPP_INCLUDED__
5 
6 #include "options.hpp"
7 #include "zap_client.hpp"
8 
9 namespace zmq
10 {
11 class msg_t;
12 class session_base_t;
13 
14 class plain_server_t ZMQ_FINAL : public zap_client_common_handshake_t
15 {
16  public:
17  plain_server_t (session_base_t *session_,
18  const std::string &peer_address_,
19  const options_t &options_);
20  ~plain_server_t ();
21 
22  // mechanism implementation
23  int next_handshake_command (msg_t *msg_);
24  int process_handshake_command (msg_t *msg_);
25 
26  private:
27  static void produce_welcome (msg_t *msg_);
28  void produce_ready (msg_t *msg_) const;
29  void produce_error (msg_t *msg_) const;
30 
31  int process_hello (msg_t *msg_);
32  int process_initiate (msg_t *msg_);
33 
34  void send_zap_request (const std::string &username_,
35  const std::string &password_);
36 };
37 }
38 
39 #endif
string
GLsizei const GLchar *const * string
Definition: glcorearb.h:3083
zmq
Definition: zmq.hpp:229
zap_client.hpp
options.hpp
ZMQ_FINAL
Definition: unittest_ip_resolver.cpp:26
options_
DebugStringOptions options_
Definition: src/google/protobuf/descriptor.cc:2410


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:57