This file is indexed.

/usr/include/Poco/Redis/AsyncReader.h is in libpoco-dev 1.8.0.1-1ubuntu4.

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
//
// AsyncReader.h
//
// Library: Redis
// Package: Redis
// Module:  AsyncReader
//
// Definition of the AsyncReader class.
//
// Copyright (c) 2015, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier:	BSL-1.0
//


#ifndef Redis_AsyncReader_INCLUDED
#define Redis_AsyncReader_INCLUDED


#include "Poco/Redis/Redis.h"
#include "Poco/Redis/Client.h"
#include "Poco/Redis/RedisEventArgs.h"
#include "Poco/Activity.h"


namespace Poco {
namespace Redis {


class Redis_API AsyncReader
	/// Wrapper around a Redis client to read messages asynchronously. Use this
	/// for publish/subscribe. The redisResponse event is used to notify that
	/// a message is received. When a reader is started for a Redis server,
	/// you should use execute<void>, because this class is responsible for
	/// reading all replies.
{
public:
	BasicEvent<RedisEventArgs> redisResponse;
		/// Event that is fired when a message is received.

	BasicEvent<RedisEventArgs> redisException;
		/// Event that is fired when an error occurred.

	AsyncReader(Client& client);
		/// Creates the AsyncReader using the given Client.

	virtual ~AsyncReader();
		/// Destroys the AsyncReader.

	bool isStopped();
		/// Returns true if the activity is not running, false when it is.

	void start();
		/// Starts the activity to read replies from the Redis server.

	void stop();
		/// Stops the read activity.

protected:
	void runActivity();

private:
	AsyncReader(const AsyncReader&);
	AsyncReader& operator = (const AsyncReader&);

	Client& _client;
	Activity<AsyncReader> _activity;
};


//
// inlines
//


inline bool AsyncReader::isStopped()
{
	return _activity.isStopped();
}


inline void AsyncReader::start()
{
	_activity.start();
}


inline void AsyncReader::stop()
{
	_activity.stop();
}


} } // namespace Poco::Redis


#endif //Redis_AsyncReader_INCLUDED