summaryrefslogtreecommitdiff
path: root/sockets.h
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-05-30 21:23:44 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-05-30 21:23:44 +0100
commit6d183c02a50a42743c3031532f458ab5cea0685d (patch)
treed1463e8f53df26ec5f8c3c13a77880d11d3bc57f /sockets.h
parentef93f4d61f03faa0edd60f11c7790ad3b67b44d4 (diff)
Convert debugprint() from being to file/screen/disabled to always being to file with configurable verbosity.
Diffstat (limited to 'sockets.h')
-rw-r--r--sockets.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sockets.h b/sockets.h
index 3ad5406..7e9cca5 100644
--- a/sockets.h
+++ b/sockets.h
@@ -17,6 +17,10 @@
#include "functions.h"
+#define DEBUG_CRIT 0
+#define DEBUG_SOME 1
+#define DEBUG_FULL 2
+
#define BACKLOG 10 // maximum length to which the queue of pending connections for sockfd may grow
// get sockaddr, IPv4 or IPv6: