proxygen
|
Public Member Functions | |
PartialReadHandler (EventBase *eventBase, int fd, size_t readLength) | |
void | handlerReady (uint16_t events) noexceptoverride |
Public Member Functions inherited from TestHandler | |
TestHandler (EventBase *eventBase, int fd) | |
Public Member Functions inherited from folly::EventHandler | |
EventHandler (EventBase *eventBase, int fd) | |
EventHandler (EventBase *eventBase=nullptr, NetworkSocket fd=NetworkSocket()) | |
virtual | ~EventHandler () |
bool | registerHandler (uint16_t events) |
void | unregisterHandler () |
bool | isHandlerRegistered () const |
void | attachEventBase (EventBase *eventBase) |
void | detachEventBase () |
void | changeHandlerFD (int fd) |
void | changeHandlerFD (NetworkSocket fd) |
void | initHandler (EventBase *eventBase, int fd) |
void | initHandler (EventBase *eventBase, NetworkSocket fd) |
uint16_t | getRegisteredEvents () const |
bool | registerInternalHandler (uint16_t events) |
bool | isPending () const |
Private Attributes | |
int | fd_ |
size_t | readLength_ |
Additional Inherited Members | |
Public Types inherited from folly::EventHandler | |
enum | EventFlags { NONE = 0, READ = EV_READ, WRITE = EV_WRITE, READ_WRITE = (READ | WRITE), PERSIST = EV_PERSIST } |
Public Attributes inherited from TestHandler | |
deque< EventRecord > | log |
Definition at line 648 of file EventBaseTest.cpp.
|
inline |
Definition at line 650 of file EventBaseTest.cpp.
|
inlineoverridevirtualnoexcept |
handlerReady() is invoked when the handler is ready.
events | A bitset indicating the events that are ready. |
Reimplemented from TestHandler.
Definition at line 653 of file EventBaseTest.cpp.
References readFromFD().
|
private |
Definition at line 660 of file EventBaseTest.cpp.
|
private |
Definition at line 661 of file EventBaseTest.cpp.