Go to the source code of this file.
DEFINE_int32 |
( |
port |
, |
|
|
8080 |
, |
|
|
"Broadcast proxy port" |
|
|
) |
| |
DEFINE_int32 |
( |
upstream_port |
, |
|
|
8081 |
, |
|
|
"Upstream server port" |
|
|
) |
| |
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 212 of file BroadcastProxy.cpp.
References folly::init().
215 auto serverPool = std::make_shared<SimpleServerPool>();
219 auto broadcastPipelineFactory =
220 std::make_shared<SimpleBroadcastPipelineFactory>();
224 auto observingPipelineFactory =
225 std::make_shared<SimpleObservingPipelineFactory>(
226 serverPool, broadcastPipelineFactory);
230 auto routingHandlerFactory =
231 std::make_shared<ClientIPRoutingDataHandlerFactory>();
237 auto acceptPipelineFactory = std::make_shared<
239 &server, routingHandlerFactory, observingPipelineFactory);
241 server.pipeline(acceptPipelineFactory);
242 server.bind(FLAGS_port);
243 server.waitForStop();