diff options
author | Fritz Elfert <felfert@to.com> | 2002-03-07 14:00:10 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2002-03-07 14:00:10 +0000 |
commit | 49f6d0f0ca26c10f3e2aa42ef491d9a60bd1a9fc (patch) | |
tree | 9c82a1cff3c07a7fdb31da0861880543134250b6 /ncpd/link.h | |
parent | c989ceb038fcfe5d583928dfd1f8b0cf6a301cbe (diff) | |
download | plptools-49f6d0f0ca26c10f3e2aa42ef491d9a60bd1a9fc.tar.gz plptools-49f6d0f0ca26c10f3e2aa42ef491d9a60bd1a9fc.tar.bz2 plptools-49f6d0f0ca26c10f3e2aa42ef491d9a60bd1a9fc.zip |
Introduced waitQueue to make link::transmit non-blocking.
Diffstat (limited to 'ncpd/link.h')
-rw-r--r-- | ncpd/link.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ncpd/link.h b/ncpd/link.h index cf265c0..81732b6 100644 --- a/ncpd/link.h +++ b/ncpd/link.h @@ -28,6 +28,7 @@ #include <config.h> #endif #include <pthread.h> +#include <sys/time.h> #include "bufferstore.h" #include "bufferarray.h" @@ -151,6 +152,7 @@ private: void multiAck(struct timeval); void retransmit(); void transmitHoldQueue(int channel); + void transmitWaitQueue(); pthread_t checkthread; pthread_mutex_t queueMutex; @@ -168,6 +170,7 @@ private: vector<ackWaitQueueElement> ackWaitQueue; vector<bufferStore> holdQueue; + vector<bufferStore> waitQueue; bool xoff[256]; }; |