i_mailbox.hpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: MPL-2.0 */
2 
3 #ifndef __ZMQ_I_MAILBOX_HPP_INCLUDED__
4 #define __ZMQ_I_MAILBOX_HPP_INCLUDED__
5 
6 #include "macros.hpp"
7 #include "stdint.hpp"
8 
9 namespace zmq
10 {
11 // Interface to be implemented by mailbox.
12 
13 class i_mailbox
14 {
15  public:
16  virtual ~i_mailbox () ZMQ_DEFAULT;
17 
18  virtual void send (const command_t &cmd_) = 0;
19  virtual int recv (command_t *cmd_, int timeout_) = 0;
20 
21 
22 #ifdef HAVE_FORK
23  // close the file descriptors in the signaller. This is used in a forked
24  // child process to close the file descriptors so that they do not interfere
25  // with the context in the parent process.
26  virtual void forked () = 0;
27 #endif
28 };
29 }
30 
31 #endif
ZMQ_DEFAULT
#define ZMQ_DEFAULT
Definition: macros.hpp:43
zmq::i_mailbox::recv
virtual int recv(command_t *cmd_, int timeout_)=0
zmq
Definition: zmq.hpp:229
macros.hpp
stdint.hpp
zmq::i_mailbox::send
virtual void send(const command_t &cmd_)=0
zmq::i_mailbox
Definition: i_mailbox.hpp:13
zmq::command_t
Definition: command.hpp:21
zmq::i_mailbox::~i_mailbox
virtual ~i_mailbox() ZMQ_DEFAULT


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