aboutsummaryrefslogtreecommitdiffstats
path: root/ncpd/ncp.h
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2001-07-23 19:45:20 +0000
committerFritz Elfert <felfert@to.com>2001-07-23 19:45:20 +0000
commit24f74bf9c5c97f8b3ee4f6658e9dac41f93f41a4 (patch)
tree2423ca1b31d77d089055c7fef1e926603fc9c5ca /ncpd/ncp.h
parent0c63f12fc440ddd144f95170d9d903aeb9b7ef2c (diff)
downloadplptools-24f74bf9c5c97f8b3ee4f6658e9dac41f93f41a4.tar.gz
plptools-24f74bf9c5c97f8b3ee4f6658e9dac41f93f41a4.tar.bz2
plptools-24f74bf9c5c97f8b3ee4f6658e9dac41f93f41a4.zip
- Support NCP xon/xoff frames.
- Support up to 256 channels on S5
Diffstat (limited to 'ncpd/ncp.h')
-rw-r--r--ncpd/ncp.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/ncpd/ncp.h b/ncpd/ncp.h
index 1c4cbdc..abbf08e 100644
--- a/ncpd/ncp.h
+++ b/ncpd/ncp.h
@@ -35,7 +35,6 @@ class IOWatch;
#define NCP_DEBUG_LOG 1
#define NCP_DEBUG_DUMP 2
-#define MAX_CHANNEL 8
class ncp {
public:
@@ -49,9 +48,11 @@ public:
void send(int channel, bufferStore &a);
void poll();
void reset();
+ int maxLinks();
bool stuffToSend();
bool hasFailed();
bool gotLinkChannel();
+
void setVerbose(short int);
short int getVerbose();
void setLinkVerbose(short int);
@@ -59,7 +60,7 @@ public:
void setPktVerbose(short int);
short int getPktVerbose();
short int getProtocolVersion();
-
+
private:
enum c { MAX_LEN = 200, LAST_MESS = 1, NOT_LAST_MESS = 2 };
enum interControllerMessageType {
@@ -78,15 +79,16 @@ private:
void decodeControlMessage(bufferStore &buff);
void controlChannel(int chan, enum interControllerMessageType t, bufferStore &command);
char * ctrlMsgName(unsigned char);
-
+
link *l;
unsigned short verbose;
- channel *channelPtr[MAX_CHANNEL+1];
- bufferStore messageList[MAX_CHANNEL+1];
- int remoteChanList[MAX_CHANNEL+1];
+ channel **channelPtr;
+ bufferStore *messageList;
+ int *remoteChanList;
bool failed;
short int protocolVersion;
linkChan *lChan;
+ int maxChannels;
};
#endif