diff options
author | Fritz Elfert <felfert@to.com> | 1999-07-01 20:44:20 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 1999-07-01 20:44:20 +0000 |
commit | 80e566ea830ec9e6534f1a140af0bbc6b1765aa7 (patch) | |
tree | 86788a4b96d0b9ba70f787e4cd31777c4eb457bc /ncpd/packet.h | |
parent | 8c29602b21efacced9d7ff4cd1f3c4101dda5f65 (diff) | |
download | plptools-80e566ea830ec9e6534f1a140af0bbc6b1765aa7.tar.gz plptools-80e566ea830ec9e6534f1a140af0bbc6b1765aa7.tar.bz2 plptools-80e566ea830ec9e6534f1a140af0bbc6b1765aa7.zip |
modified logging for finer control.
proper reconnect on link failure.
Diffstat (limited to 'ncpd/packet.h')
-rw-r--r-- | ncpd/packet.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ncpd/packet.h b/ncpd/packet.h index cd02513..85a0a77 100644 --- a/ncpd/packet.h +++ b/ncpd/packet.h @@ -8,12 +8,17 @@ class psiEmul; class bufferStore; class IOWatch; +#define PKT_DEBUG_LOG 1 +#define PKT_DEBUG_DUMP 2 + class packet { public: - packet(const char *fname, int baud, IOWatch &iow, bool verbose = false); + packet(const char *fname, int baud, IOWatch &iow, short int verbose = 0); ~packet(); void send(unsigned char type, const bufferStore &b); bool get(unsigned char &type, bufferStore &b); + void setVerbose(short int); + short int getVerbose(); private: bool terminated(); |