proxygen
SignalHandler.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015-present, Facebook, Inc.
3  * All rights reserved.
4  *
5  * This source code is licensed under the BSD-style license found in the
6  * LICENSE file in the root directory of this source tree. An additional grant
7  * of patent rights can be found in the PATENTS file in the same directory.
8  *
9  */
10 #pragma once
11 
13 #include <vector>
14 
15 namespace proxygen {
16 
17 class HTTPServer;
18 
26  public:
27  explicit SignalHandler(HTTPServer* server);
28 
29  void install(const std::vector<int>& signals);
30  private:
31  // AsyncSignalHandler
32  void signalReceived(int signum) noexcept override;
33 
34  HTTPServer* const server_{nullptr};
35 };
36 
37 }
SignalHandler(HTTPServer *server)
HTTPServer *const server_
Definition: SignalHandler.h:34
void signalReceived(int signum) noexceptoverride
requires E e noexcept(noexcept(s.error(std::move(e))))
void install(const std::vector< int > &signals)