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/ncp.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/ncp.h')
-rw-r--r-- | ncpd/ncp.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -7,6 +7,9 @@ class link; class channel; class IOWatch; +#define NCP_DEBUG_LOG 1 +#define NCP_DEBUG_DUMP 2 + class ncp { public: ncp(const char *fname, int baud, IOWatch &iow); @@ -16,9 +19,16 @@ class ncp { void disconnect(int channel); void send(int channel, bufferStore &a); void poll(); + void reset(); bool stuffToSend(); bool hasFailed(); bool gotLinkChannel(); + void setVerbose(short int); + short int getVerbose(); + void setLinkVerbose(short int); + short int getLinkVerbose(); + void setPktVerbose(short int); + short int getPktVerbose(); private: enum c { MAX_LEN = 200, LAST_MESS = 1, NOT_LAST_MESS = 2 }; @@ -39,6 +49,7 @@ class ncp { char * ctrlMsgName(unsigned char); link *l; + unsigned short verbose; channel *channelPtr[8]; bufferStore messageList[8]; int remoteChanList[8]; |