proxygen
TelnetServer.cpp File Reference

Go to the source code of this file.

Classes

class  TelnetHandler
 
class  TelnetPipelineFactory
 

Typedefs

typedef Pipeline< IOBufQueue &, std::stringTelnetPipeline
 

Functions

 DEFINE_int32 (port, 23,"test telnet server port")
 
int main (int argc, char **argv)
 

Typedef Documentation

Definition at line 30 of file TelnetServer.cpp.

Function Documentation

DEFINE_int32 ( port  ,
23  ,
"test telnet server port"   
)
int main ( int  argc,
char **  argv 
)

Definition at line 70 of file TelnetServer.cpp.

References wangle::ServerBootstrap< Pipeline >::bind(), wangle::ServerBootstrap< Pipeline >::childPipeline(), folly::init(), and wangle::ServerBootstrap< Pipeline >::waitForStop().

70  {
71  folly::Init init(&argc, &argv);
72 
74  server.childPipeline(std::make_shared<TelnetPipelineFactory>());
75  server.bind(FLAGS_port);
76  server.waitForStop();
77 
78  return 0;
79 }
void bind(folly::AsyncServerSocket::UniquePtr s)
void init()
ServerBootstrap * childPipeline(std::shared_ptr< PipelineFactory< Pipeline >> factory)
char ** argv