proxygen
|
#include <RoutingDataHandler.h>
Classes | |
class | Callback |
struct | RoutingData |
Private Attributes | |
uint64_t | connId_ |
Callback * | cob_ {nullptr} |
Additional Inherited Members | |
![]() | |
typedef Handler< R, R, W, W >::Context | Context |
![]() | |
typedef R | rin |
typedef R | rout |
typedef W | win |
typedef W | wout |
typedef HandlerContext< R, W > | Context |
![]() | |
static const HandlerDir | dir |
Definition at line 23 of file RoutingDataHandler.h.
wangle::RoutingDataHandler< R >::RoutingDataHandler | ( | uint64_t | connId, |
Callback * | cob | ||
) |
Definition at line 21 of file RoutingDataHandler-inl.h.
Referenced by wangle::RoutingDataHandler< R >::Callback::~Callback().
|
inlineoverride |
Definition at line 40 of file RoutingDataHandler.h.
|
pure virtual |
Parse the routing data from bufQueue into routingData. This will be used to compute the hash for choosing the worker thread.
Bytes that need to be passed into the child pipeline (such as additional bytes left in bufQueue not used for parsing) should be moved into RoutingData::bufQueue.
Implemented in ClientIPRoutingDataHandler, and NaiveRoutingDataHandler.
Referenced by wangle::RoutingDataHandler< R >::read(), and wangle::RoutingDataHandler< char >::~RoutingDataHandler().
|
override |
Definition at line 25 of file RoutingDataHandler-inl.h.
References wangle::RoutingDataHandler< R >::cob_, wangle::RoutingDataHandler< R >::connId_, wangle::RoutingDataHandler< R >::Callback::onRoutingData(), and wangle::RoutingDataHandler< R >::parseRoutingData().
Referenced by wangle::RoutingDataHandler< char >::~RoutingDataHandler().
|
override |
Definition at line 33 of file RoutingDataHandler-inl.h.
References wangle::RoutingDataHandler< R >::cob_, wangle::RoutingDataHandler< R >::connId_, folly::AsyncSocketException::END_OF_FILE, and wangle::RoutingDataHandler< R >::Callback::onError().
Referenced by wangle::RoutingDataHandler< char >::~RoutingDataHandler().
|
override |
Definition at line 41 of file RoutingDataHandler-inl.h.
References wangle::RoutingDataHandler< R >::cob_, wangle::RoutingDataHandler< R >::connId_, and wangle::RoutingDataHandler< R >::Callback::onError().
Referenced by wangle::RoutingDataHandler< char >::~RoutingDataHandler().
|
private |
Definition at line 63 of file RoutingDataHandler.h.
Referenced by wangle::RoutingDataHandler< R >::read(), wangle::RoutingDataHandler< R >::readEOF(), and wangle::RoutingDataHandler< R >::readException().
|
private |
Definition at line 62 of file RoutingDataHandler.h.
Referenced by wangle::RoutingDataHandler< R >::read(), wangle::RoutingDataHandler< R >::readEOF(), and wangle::RoutingDataHandler< R >::readException().