proxygen
TestHandlerPipeline Class Reference
Inheritance diagram for TestHandlerPipeline:
wangle::InboundHandler< AcceptPipelineType > wangle::HandlerBase< InboundHandlerContext< AcceptPipelineType > >

Public Member Functions

void read (Context *ctx, AcceptPipelineType conn) override
 
- Public Member Functions inherited from wangle::InboundHandler< AcceptPipelineType >
 ~InboundHandler () override=default
 
virtual void readEOF (Context *ctx)
 
virtual void readException (Context *ctx, folly::exception_wrapper e)
 
virtual void transportActive (Context *ctx)
 
virtual void transportInactive (Context *ctx)
 
- Public Member Functions inherited from wangle::HandlerBase< InboundHandlerContext< AcceptPipelineType > >
virtual ~HandlerBase ()=default
 
virtual void attachPipeline (InboundHandlerContext< AcceptPipelineType > *)
 
virtual void detachPipeline (InboundHandlerContext< AcceptPipelineType > *)
 
InboundHandlerContext< AcceptPipelineType > * getContext ()
 

Additional Inherited Members

- Public Types inherited from wangle::InboundHandler< AcceptPipelineType >
typedef AcceptPipelineType rin
 
typedef AcceptPipelineType rout
 
typedef folly::Unit win
 
typedef folly::Unit wout
 
typedef InboundHandlerContext< AcceptPipelineTypeContext
 
- Static Public Attributes inherited from wangle::InboundHandler< AcceptPipelineType >
static const HandlerDir dir
 

Detailed Description

Definition at line 287 of file BootstrapTest.cpp.

Member Function Documentation

void TestHandlerPipeline::read ( Context ctx,
AcceptPipelineType  conn 
)
inlineoverridevirtual

Implements wangle::InboundHandler< AcceptPipelineType >.

Definition at line 289 of file BootstrapTest.cpp.

References wangle::CONN_ADDED, connections, and wangle::InboundHandlerContext< In >::fireRead().

289  {
290  if (conn.type() == typeid(ConnEvent)) {
291  auto connEvent = boost::get<ConnEvent>(conn);
292  if (connEvent == ConnEvent::CONN_ADDED) {
293  connections++;
294  }
295  }
296  return ctx->fireRead(conn);
297  }
std::atomic< int > connections
ConnEvent
Definition: Pipeline.h:266

The documentation for this class was generated from the following file: