proxygen
ServerPipelineFactory Class Reference
Inheritance diagram for ServerPipelineFactory:
wangle::RoutingDataPipelineFactory< DefaultPipeline, char >

Public Member Functions

DefaultPipeline::Ptr newPipeline (std::shared_ptr< AsyncTransportWrapper > sock, const char &routingData, RoutingDataHandler< char > *, std::shared_ptr< TransportInfo > transportInfo) override
 
- Public Member Functions inherited from wangle::RoutingDataPipelineFactory< DefaultPipeline, char >
virtual ~RoutingDataPipelineFactory ()
 

Detailed Description

Definition at line 81 of file accept_steering_server.cpp.

Member Function Documentation

DefaultPipeline::Ptr ServerPipelineFactory::newPipeline ( std::shared_ptr< AsyncTransportWrapper sock,
const char &  routingData,
RoutingDataHandler< char > *  ,
std::shared_ptr< TransportInfo transportInfo 
)
inlineoverridevirtual

Implements wangle::RoutingDataPipelineFactory< DefaultPipeline, char >.

Definition at line 84 of file accept_steering_server.cpp.

References folly::INFO.

88  {
89  auto pipeline = DefaultPipeline::create();
90  pipeline->addBack(AsyncSocketHandler(sock));
91  pipeline->addBack(ThreadPrintingHandler(routingData));
92  pipeline->finalize();
93 
94  pipeline->setTransportInfo(transportInfo);
95 
96  LOG(INFO) << "Created new server pipeline. Local address = "
97  << *(transportInfo->localAddr)
98  << ", remote address = " << *(transportInfo->remoteAddr);
99 
100  return pipeline;
101  }

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