|
Kyoto Tycoon
|
Interface of poolable I/O event. More...
#include <ktsocket.h>
Public Types | |
| enum | EventFlag { EVINPUT = 1 << 0, EVOUTPUT = 1 << 1, EVEXCEPT = 1 << 2 } |
| Event flags. More... | |
Public Member Functions | |
| Pollable () | |
| Default constructor. | |
| virtual | ~Pollable () |
| Destructor. | |
| virtual int32_t | descriptor ()=0 |
| Get the descriptor integer. | |
| virtual void | set_event_flags (uint32_t flags)=0 |
| Set event flags. | |
| virtual uint32_t | event_flags ()=0 |
| Get the current event flags. | |
Friends | |
| class | Poller |
Interface of poolable I/O event.
| kyototycoon::Pollable::Pollable | ( | ) | [explicit] |
Default constructor.
| virtual kyototycoon::Pollable::~Pollable | ( | ) | [virtual] |
Destructor.
| virtual int32_t kyototycoon::Pollable::descriptor | ( | ) | [pure virtual] |
Get the descriptor integer.
Implemented in kyototycoon::ServerSocket, and kyototycoon::Socket.
| virtual void kyototycoon::Pollable::set_event_flags | ( | uint32_t | flags | ) | [pure virtual] |
Set event flags.
| flags | specifies the event mode. The following may be added by bitwise-or: Pollable::EVINPUT for input events, Pollable::EVOUTPUT for output events, Pollable::EVEXCEPT for exception events. |
Implemented in kyototycoon::ServerSocket, and kyototycoon::Socket.
| virtual uint32_t kyototycoon::Pollable::event_flags | ( | ) | [pure virtual] |
Get the current event flags.
Implemented in kyototycoon::ServerSocket, and kyototycoon::Socket.
1.7.6.1