aboutsummaryrefslogtreecommitdiffstats
path: root/ncpd/link.h
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>1999-06-29 02:23:31 +0000
committerFritz Elfert <felfert@to.com>1999-06-29 02:23:31 +0000
commit6ab1aa5f2156ef781da6e1b57a183825b88bef9a (patch)
tree76d2b37e54731e68c9855e5658ac18558a369313 /ncpd/link.h
parentf3e248b6e75c7ce5beda577f5712915417313b0a (diff)
downloadplptools-6ab1aa5f2156ef781da6e1b57a183825b88bef9a.tar.gz
plptools-6ab1aa5f2156ef781da6e1b57a183825b88bef9a.tar.bz2
plptools-6ab1aa5f2156ef781da6e1b57a183825b88bef9a.zip
Initial import
Diffstat (limited to 'ncpd/link.h')
-rw-r--r--ncpd/link.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/ncpd/link.h b/ncpd/link.h
new file mode 100644
index 0000000..f166513
--- /dev/null
+++ b/ncpd/link.h
@@ -0,0 +1,34 @@
+#ifndef _link_h_
+#define _link_h_
+
+#include "bool.h"
+#include "bufferstore.h"
+#include "bufferarray.h"
+class packet;
+class IOWatch;
+
+class link {
+public:
+ link(const char *fname, int baud, IOWatch &iow, bool s5, bool _verbose = false);
+ ~link();
+ void send(const bufferStore &buff);
+ bufferArray poll();
+ bool stuffToSend();
+ bool hasFailed();
+
+private:
+ packet *p;
+ int idSent;
+ int countToResend;
+ int timesSent;
+ bufferArray sendQueue;
+ bufferStore toSend;
+ int idLastGot;
+ bool newLink;
+ bool verbose;
+ bool somethingToSend;
+ bool failed;
+ bool s5;
+};
+
+#endif