proxygen
TelnetPipelineFactory Class Reference
Inheritance diagram for TelnetPipelineFactory:
wangle::PipelineFactory< TelnetPipeline > wangle::PipelineFactory< TelnetPipeline >

Public Member Functions

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

Detailed Description

Definition at line 51 of file TelnetClient.cpp.

Member Function Documentation

TelnetPipeline::Ptr TelnetPipelineFactory::newPipeline ( std::shared_ptr< AsyncTransportWrapper sock)
inlineoverridevirtual

Implements wangle::PipelineFactory< TelnetPipeline >.

Definition at line 53 of file TelnetClient.cpp.

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

54  {
55  auto pipeline = TelnetPipeline::create();
56  pipeline->addBack(AsyncSocketHandler(sock));
57  pipeline->addBack(EventBaseHandler()); // ensure we can write from any thread
58  pipeline->addBack(LineBasedFrameDecoder(8192, false));
59  pipeline->addBack(StringCodec());
60  pipeline->addBack(TelnetHandler());
61  pipeline->finalize();
62 
63  return pipeline;
64  }
static Ptr create()
Definition: Pipeline.h:174
TelnetPipeline::Ptr TelnetPipelineFactory::newPipeline ( std::shared_ptr< AsyncTransportWrapper sock)
inlineoverridevirtual

Implements wangle::PipelineFactory< TelnetPipeline >.

Definition at line 57 of file TelnetServer.cpp.

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

58  {
59  auto pipeline = TelnetPipeline::create();
60  pipeline->addBack(AsyncSocketHandler(sock));
61  pipeline->addBack(LineBasedFrameDecoder(8192));
62  pipeline->addBack(StringCodec());
63  pipeline->addBack(TelnetHandler());
64  pipeline->finalize();
65 
66  return pipeline;
67  }
static Ptr create()
Definition: Pipeline.h:174

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