Google format

This commit is contained in:
Ian Gulliver
2019-05-18 12:15:11 -07:00
parent a39ef8e25d
commit 690c9ab8bd
13 changed files with 605 additions and 444 deletions

View File

@@ -6,18 +6,21 @@
DEFINE_int32(port, 9000, "TCP port to bind");
DEFINE_int32(threads, 1, "Number of server threads");
int main(int argc, char *argv[]) {
google::InitGoogleLogging(argv[0]);
gflags::ParseCommandLineFlags(&argc, &argv, true);
int main(int argc, char* argv[]) {
google::InitGoogleLogging(argv[0]);
gflags::ParseCommandLineFlags(&argc, &argv, true);
firecgi::Server server(FLAGS_port, [](firecgi::Request* request) {
request->WriteHeader("Content-Type", "text/plain");
request->WriteBody("Hello world");
request->End();
}, FLAGS_threads);
server.RegisterSignalHandlers();
server.Serve();
firecgi::Server server(
FLAGS_port,
[](firecgi::Request* request) {
request->WriteHeader("Content-Type", "text/plain");
request->WriteBody("Hello world");
request->End();
},
FLAGS_threads);
server.RegisterSignalHandlers();
server.Serve();
gflags::ShutDownCommandLineFlags();
google::ShutdownGoogleLogging();
gflags::ShutDownCommandLineFlags();
google::ShutdownGoogleLogging();
}