zmqpp  4.1.2
C++ bindings for 0mq (libzmq)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
signal.hpp
Go to the documentation of this file.
1 /*
2  * This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5  *
6  * This file is part of zmqpp.
7  * Copyright (c) 2011-2015 Contributors as noted in the AUTHORS file.
8  */
9 
10 #pragma once
11 
12 #include <cstdint>
13 #include <iostream>
14 #include "compatibility.hpp"
15 
16 namespace zmqpp
17 {
18 
23  ZMQPP_COMPARABLE_ENUM signal : int64_t
24  {
28  header = 0x0077665544332211L,
32  ok = (header << 8) | 0x00,
36  ko = (header << 8) | 0x01,
40  stop = (header << 8) | 0x02,
41 
42  test = (header << 8) | 0xFF
43  };
44 
45 }
46 
47 
48 namespace std
49 {
53  ostream &operator<<(ostream &s, const zmqpp::signal &sig);
54 }
Only 7 bytes matter here.
C++ wrapper around zmq.
Definition: actor.cpp:29
STL namespace.
Indicates a success.
Indicates an error.
signal
Signal is a 8 bytes integer.
Definition: signal.hpp:23
Indicates a request to stop.