|
proxygen
|
#include <gflags/gflags.h>#include <folly/init/Init.h>#include <wangle/service/Service.h>#include <wangle/service/ExpiringFilter.h>#include <wangle/service/ClientDispatcher.h>#include <wangle/bootstrap/ClientBootstrap.h>#include <wangle/channel/AsyncSocketHandler.h>#include <wangle/codec/LengthFieldBasedFrameDecoder.h>#include <wangle/codec/LengthFieldPrepender.h>#include <wangle/channel/EventBaseHandler.h>#include <wangle/example/rpc/ClientSerializeHandler.h>Go to the source code of this file.
Classes | |
| class | RpcPipelineFactory |
| class | BonkMultiplexClientDispatcher |
Typedefs | |
| using | SerializePipeline = wangle::Pipeline< IOBufQueue &, Bonk > |
Functions | |
| DEFINE_int32 (port, 8080,"test server port") | |
| DEFINE_string (host,"::1","test server address") | |
| int | main (int argc, char **argv) |
| using SerializePipeline = wangle::Pipeline<IOBufQueue&, Bonk> |
Definition at line 37 of file RpcClient.cpp.
| DEFINE_int32 | ( | port | , |
| 8080 | , | ||
| "test server port" | |||
| ) |
| DEFINE_string | ( | host | , |
| "::1" | , | ||
| "test server address" | |||
| ) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
For specific protocols, all the following code would be wrapped in a protocol-specific ServiceFactories.
TODO: examples of ServiceFactoryFilters, for connection pooling, etc.
Definition at line 98 of file RpcClient.cpp.
References wangle::ClientBootstrap< Pipeline >::connect(), folly::exceptionStr(), wangle::ClientBootstrap< Pipeline >::group(), folly::init(), and wangle::BaseClientBootstrap< Pipeline >::pipelineFactory().