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,6 +1,8 @@
#include <getopt.h>
#include <stdlib.h>
#include <iostream>
#include "crypto.h"
static const struct option long_options[] = {
@@ -52,4 +54,6 @@ int main(int argc, char *argv[]) {
auto client = CryptoPubClient::FromHostname(server_address, server_port, secret_key, server_public_key, channel_bitrates);
client->Loop();
std::cerr << "Shutting down" << std::endl;
}