proxygen
|
#include <folly/init/Init.h>
#include <folly/io/async/AsyncSSLSocket.h>
#include <folly/portability/GFlags.h>
#include <folly/ssl/Init.h>
#include <wangle/acceptor/Acceptor.h>
#include <wangle/bootstrap/ServerBootstrap.h>
#include <wangle/channel/AsyncSocketHandler.h>
#include <wangle/codec/LineBasedFrameDecoder.h>
#include <wangle/codec/StringCodec.h>
#include <wangle/ssl/TLSCredProcessor.h>
Go to the source code of this file.
Typedefs | |
typedef Pipeline< IOBufQueue &, std::string > | EchoPipeline |
Functions | |
DEFINE_string (cert_path,"","Path to cert pem") | |
DEFINE_string (key_path,"","Path to cert key") | |
DEFINE_string (ca_path,"","Path to trusted CA file") | |
DEFINE_int32 (port, 8080,"Listen port") | |
DEFINE_string (tickets_path,"","Path for ticket seeds") | |
DEFINE_uint32 (num_workers, 2,"Number of worker threads") | |
int | main (int argc, char **argv) |
typedef Pipeline<IOBufQueue&, std::string> EchoPipeline |
Definition at line 46 of file Server.cpp.
DEFINE_int32 | ( | port | , |
8080 | , | ||
"Listen port" | |||
) |
DEFINE_string | ( | cert_path | , |
"" | , | ||
"Path to cert pem" | |||
) |
DEFINE_string | ( | key_path | , |
"" | , | ||
"Path to cert key" | |||
) |
DEFINE_string | ( | ca_path | , |
"" | , | ||
"Path to trusted CA file" | |||
) |
DEFINE_string | ( | tickets_path | , |
"" | , | ||
"Path for ticket seeds" | |||
) |
DEFINE_uint32 | ( | num_workers | , |
2 | , | ||
"Number of worker threads" | |||
) |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 117 of file Server.cpp.
References wangle::ServerBootstrap< Pipeline >::acceptorConfig(), wangle::SSLContextConfig::addCertificate(), wangle::ServerSocketConfig::allowInsecureConnectionsOnSecureServer, wangle::ServerBootstrap< Pipeline >::bind(), wangle::ServerBootstrap< Pipeline >::childPipeline(), wangle::SSLContextConfig::clientCAFile, wangle::ServerBootstrap< Pipeline >::group(), folly::ssl::init(), bm::init(), wangle::ServerSocketConfig::initialTicketSeeds, wangle::SSLContextConfig::isDefault, folly::gen::move, wangle::TLSCredProcessor::processTLSTickets(), wangle::TLSCredProcessor::setCertPathsToWatch(), wangle::TLSCredProcessor::setTicketPathToWatch(), wangle::ServerSocketConfig::sslContextConfigs, and wangle::ServerBootstrap< Pipeline >::waitForStop().