From 8330f075f4f5c2973cdfa2757725d5487ba8ce23 Mon Sep 17 00:00:00 2001 From: Astabol Date: Sat, 28 Dec 2024 10:31:29 +0000 Subject: [PATCH 1/7] Introduced iostream; migrated to std::cout except formatted float value; --- src/quicreach.cpp | 70 +++++++++++++++++++++++------------------------ 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/src/quicreach.cpp b/src/quicreach.cpp index 4f0fd99..756a5ec 100644 --- a/src/quicreach.cpp +++ b/src/quicreach.cpp @@ -10,6 +10,7 @@ #define QUICREACH_VERSION_ONLY 1 #include +#include #include #include #include @@ -121,23 +122,22 @@ void AddHostName(char* arg) { bool ParseConfig(int argc, char **argv) { if (argc < 2 || !strcmp(argv[1], "-?") || !strcmp(argv[1], "-h") || !strcmp(argv[1], "--help")) { - printf("usage: quicreach [options...]\n" - " -a, --alpn The ALPN to use for the handshake (def=h3)\n" - " -b, --built-in-val Use built-in TLS validation logic\n" - " -c, --csv Writes CSV results to the given file\n" - " -h, --help Prints this help text\n" - " -i, --ip
The IP address to use\n" - " -l, --parallel The numer of parallel hosts to test at once (def=1)\n" - " -m, --mtu The initial (IPv6) MTU to use (def=1288)\n" - " -p, --port The UDP port to use (def=443)\n" - " -r, --req-all Require all hostnames to succeed\n" - " -R, --repeat