proxygen
|
#include <FizzCommandCommon.h>
Public Member Functions | |
TerminalInputHandler (folly::EventBase *evb, InputHandlerCallback *cb) | |
void | handlerReady (uint16_t events) noexceptoverride |
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 Member Functions | |
void | hitEOF () |
Private Attributes | |
InputHandlerCallback * | cb_ |
folly::EventBase * | evb_ |
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 } |
Definition at line 70 of file FizzCommandCommon.h.
|
explicit |
Definition at line 49 of file FizzCommandCommon.cpp.
References folly::EventHandler::registerHandler().
|
overridevirtualnoexcept |
handlerReady() is invoked when the handler is ready.
events | A bitset indicating the events that are ready. |
Implements folly::EventHandler.
Definition at line 56 of file FizzCommandCommon.cpp.
References cb_, fizz::tool::InputHandlerCallback::connected(), folly::errnoStr(), hitEOF(), fizz::detail::read(), and fizz::tool::InputHandlerCallback::write().
|
private |
Definition at line 73 of file FizzCommandCommon.cpp.
References cb_, fizz::tool::InputHandlerCallback::close(), evb_, and folly::EventBase::runInLoop().
Referenced by handlerReady().
|
private |
Definition at line 80 of file FizzCommandCommon.h.
Referenced by handlerReady(), and hitEOF().
|
private |
Definition at line 81 of file FizzCommandCommon.h.
Referenced by hitEOF().