Add verbosity levels.

This commit is contained in:
2020-08-23 23:09:31 +02:00
parent 756074cc62
commit e99feb03d5
7 changed files with 41 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
#pragma once
#define MAX_PACKETSIZE 8192
#define DEBUGLOG(x) x
#define DEBUGLOG(x) if (settings::VERBOSITY) {x};
#include <iostream>
#include <stdio.h>
@@ -38,6 +38,9 @@
#include <list>
#include <queue>
#include "Defines.hpp"
#include "settings.hpp"
#if defined(__MINGW32__) && !defined(_GLIBCXX_HAS_GTHREADS)
#include "mingw/mingw.mutex.h"
#else
@@ -147,6 +150,7 @@ public:
void start();
void kill();
static void printPacket(CNPacketData *data, int type);
virtual void newConnection(CNSocket* cns);
virtual void killConnection(CNSocket* cns);
virtual void onTimer(); // called every 2 seconds