aboutsummaryrefslogtreecommitdiffstats
path: root/ncpd/link.h
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2002-03-07 14:00:10 +0000
committerFritz Elfert <felfert@to.com>2002-03-07 14:00:10 +0000
commit49f6d0f0ca26c10f3e2aa42ef491d9a60bd1a9fc (patch)
tree9c82a1cff3c07a7fdb31da0861880543134250b6 /ncpd/link.h
parentc989ceb038fcfe5d583928dfd1f8b0cf6a301cbe (diff)
downloadplptools-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.h3
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];
};