summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys/Poller.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/sys/Poller.h')
-rw-r--r--cpp/src/qpid/sys/Poller.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/cpp/src/qpid/sys/Poller.h b/cpp/src/qpid/sys/Poller.h
index 6fedd669a0..55fead55aa 100644
--- a/cpp/src/qpid/sys/Poller.h
+++ b/cpp/src/qpid/sys/Poller.h
@@ -61,20 +61,29 @@ public:
typedef boost::shared_ptr<Poller> shared_ptr;
enum Direction {
- NONE,
+ NONE = 0,
IN,
OUT,
- INOUT,
- SHUTDOWN
+ INOUT
+ };
+
+ enum EventType {
+ INVALID = 0,
+ READABLE,
+ WRITABLE,
+ READ_WRITABLE,
+ DISCONNECTED,
+ SHUTDOWN,
+ TIMEOUT
};
struct Event {
PollerHandle* handle;
- Direction dir;
+ EventType type;
- Event(PollerHandle* handle0, Direction dir0) :
+ Event(PollerHandle* handle0, EventType type0) :
handle(handle0),
- dir(dir0) {
+ type(type0) {
}
};