proxygen
wangle::ClientPipelineFactory< Req, Resp > Class Template Reference
Inheritance diagram for wangle::ClientPipelineFactory< Req, Resp >:
wangle::PipelineFactory< ServicePipeline >

Public Member Functions

ServicePipeline::Ptr newPipeline (std::shared_ptr< AsyncTransportWrapper > socket) override
 
- Public Member Functions inherited from wangle::PipelineFactory< ServicePipeline >
virtual ServicePipeline::Ptr newPipeline (std::shared_ptr< folly::AsyncUDPSocket >, const folly::SocketAddress &)
 
virtual ~PipelineFactory ()=default
 

Detailed Description

template<typename Req, typename Resp>
class wangle::ClientPipelineFactory< Req, Resp >

Definition at line 78 of file ServiceTest.cpp.

Member Function Documentation

template<typename Req , typename Resp >
ServicePipeline::Ptr wangle::ClientPipelineFactory< Req, Resp >::newPipeline ( std::shared_ptr< AsyncTransportWrapper socket)
inlineoverridevirtual

Implements wangle::PipelineFactory< ServicePipeline >.

Definition at line 81 of file ServiceTest.cpp.

References wangle::Pipeline< R, W >::create().

82  {
83  auto pipeline = ServicePipeline::create();
84  pipeline->addBack(AsyncSocketHandler(socket));
85  pipeline->addBack(SimpleDecode());
86  pipeline->addBack(StringCodec());
87  pipeline->finalize();
88  return pipeline;
89  }
NetworkSocket socket(int af, int type, int protocol)
Definition: NetOps.cpp:412
static Ptr create()
Definition: Pipeline.h:174

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