proxygen
RpcServer.cpp File Reference

Go to the source code of this file.

Classes

class  RpcService
 
class  RpcPipelineFactory
 

Typedefs

using SerializePipeline = wangle::Pipeline< IOBufQueue &, Xtruct >
 

Functions

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

Typedef Documentation

Definition at line 38 of file RpcServer.cpp.

Function Documentation

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

Definition at line 89 of file RpcServer.cpp.

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

89  {
90  folly::Init init(&argc, &argv);
91 
93  server.childPipeline(std::make_shared<RpcPipelineFactory>());
94  server.bind(FLAGS_port);
95  server.waitForStop();
96 
97  return 0;
98 }
void bind(folly::AsyncServerSocket::UniquePtr s)
void init()
ServerBootstrap * childPipeline(std::shared_ptr< PipelineFactory< Pipeline >> factory)
char ** argv