This file is indexed.

/usr/include/zmqpp/zmqpp.hpp is in libzmqpp-dev 3.2.0-0ubuntu3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
/**
 * \file
 *
 * \date   9 Aug 2011
 * \author Ben Gray (\@benjamg)
 *
 * License: http://www.opensource.org/licenses/MIT
 *
 * Copyright (C) 2011 by Ben Gray
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

#ifndef ZMQPP_ZMQPP_HPP_
#define ZMQPP_ZMQPP_HPP_

/**
 * \def ZMQPP_VERSION_MAJOR
 * zmqpp major version number, generated at compile time
 */
#define	ZMQPP_VERSION_MAJOR BUILD_VERSION_MAJOR

/**
 * \def ZMQPP_VERSION_MINOR
 * zmqpp minor version number, generated at compile time
 */
#define	ZMQPP_VERSION_MINOR BUILD_VERSION_MINOR

/**
 * \def ZMQPP_VERSION_REVISION
 * zmqpp version revision number, generated at compile time
 */
#define	ZMQPP_VERSION_REVISION BUILD_VERSION_REVISION

#include <zmq.h>

#include "compatibility.hpp"
#include "context.hpp"
#include "exception.hpp"
#include "message.hpp"
#include "poller.hpp"
#include "socket.hpp"

/*!
 * \brief C++ wrapper around zmq
 *
 * All zmq++ / zmqpp functions, constants and classes live within this namespace,
 */
namespace zmqpp
{

/*!
 * Returns the current major.minor.revision version number as a string.
 *
 * \return string version number.
 */
std::string version();

/*!
 * Retrieve the parts of the zmqpp version number.
 *
 * Set the three parameters to values representing the zmqpp version number.
 * These values are generated at library compile time.
 *
 * \param major an unsigned 8 bit reference to set to the major version.
 * \param minor an unsigned 8 bit reference to set to the minor version.
 * \param revision an unsigned 8 bit reference to set the current revision.
 */
void version(uint8_t& major, uint8_t& minor, uint8_t& revision);

/*!
 * Retrieve the parts of the 0mq version this library was built against.
 *
 * Because sections of the library are optionally compiled in or ignored
 * depending on the version of 0mq it was compiled against this method is
 * provided to allow sanity checking for usage.
 *
 * Set the three parameters to values representing the 0mq version number.
 * These values are generated at library compile time.
 *
 * \param major an unsigned 8 bit reference to set to the major version.
 * \param minor an unsigned 8 bit reference to set to the minor version.
 * \param revision an unsigned 8 bit reference to set the current revision.
 */
void zmq_version(uint8_t& major, uint8_t& minor, uint8_t& patch);

typedef context     context_t;   /*!< \brief context type */
typedef std::string endpoint_t;  /*!< \brief endpoint type */
typedef message     message_t;   /*!< \brief message type */
typedef poller      poller_t;    /*!< \brief poller type */
typedef socket      socket_t;    /*!< \brief socket type */

}

#endif /* ZMQPP_ZMQPP_HPP_ */