/usr/include/Eris-1.3/Eris/Poll.h is in liberis-1.3-dev 1.3.23-6ubuntu1.
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 | #ifndef ERIS_POLL_H
#define ERIS_POLL_H
#include <sigc++/signal.h>
// Forward declaration from skstream
class basic_socket;
namespace Eris {
class PollData
{
public:
PollData() {}
virtual ~PollData() {}
virtual bool isReady(const basic_socket*) = 0;
};
class Poll
{
public:
Poll() {}
virtual ~Poll() {}
static const int
READ = 1,
WRITE = 2,
EXCEPT = 4,
MASK = READ | WRITE | EXCEPT;
typedef int Check;
virtual int maxStreams() const = 0;
virtual int maxConnectingStreams() const = 0;
virtual void addStream(const basic_socket*, Check = READ) = 0;
virtual void changeStream(const basic_socket*, Check) = 0;
virtual void removeStream(const basic_socket*) = 0;
static Poll& instance();
static void setInstance(Poll*);
static void newTimedEvent() {new_timeout_ = true;}
sigc::signal<void, PollData&> Ready;
private:
Poll(const Poll&);
static Poll *_inst;
protected:
static bool new_timeout_;
};
} // namespace Eris
#endif // ERIS_POLL_H
|