0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
PollEvent.h
Go to the documentation of this file.
1 /* -*- c++ -*-
2  * Copyright (C) 2007-2015 Hypertable, Inc.
3  *
4  * This file is part of Hypertable.
5  *
6  * Hypertable is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 3
9  * of the License, or any later version.
10  *
11  * Hypertable is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301, USA.
20  */
21 
27 
28 #ifndef AsyncComm_PollEvent_h
29 #define AsyncComm_PollEvent_h
30 
31 namespace Hypertable {
32 
35 
37  namespace PollEvent {
38 
40  enum Flags {
42  READ = 0x01,
44  PRI = 0x02,
46  WRITE = 0x04,
48  ERROR = 0x08,
50  HUP = 0x10,
51  REMOVE = 0x1000,
53  RDHUP = 0x2000
54  };
55 
59  std::string to_string(int events);
60 
61  }
63 
64 } // namespace Hypertable
65 
66 #endif // AsyncComm_PollEvent_h
Error condition
Definition: PollEvent.h:48
Data available to read.
Definition: PollEvent.h:42
std::string to_string(int events)
Returns a string representation of polling events.
Definition: PollEvent.cc:36
Stream socket peer closed connection.
Definition: PollEvent.h:53
Urgent data available to read.
Definition: PollEvent.h:44
Hypertable definitions
Writing can be performed without blocking.
Definition: PollEvent.h:46
Flags
Enumeration for poll interest constants.
Definition: PollEvent.h:40