Shutdown messages and sigint handling.

This commit is contained in:
Ian Gulliver
2015-02-07 16:18:07 -08:00
parent 6fc6070d5f
commit 0e0a3eab8b
4 changed files with 23 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
#include <getopt.h>
#include <iostream>
#include "crypto.h"
static const struct option long_options[] = {
@@ -24,4 +26,6 @@ int main(int argc, char *argv[]) {
CryptoPubServer server(secret_key);
server.Loop();
std::cerr << "Shutting down" << std::endl;
}