diff options
Diffstat (limited to 'ncpd/link.h')
-rw-r--r-- | ncpd/link.h | 34 |
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 |