20 #ifndef NETUPLOADTHREAD_H
21 #define NETUPLOADTHREAD_H
23 #include <qwaitcondition.h>
25 #include <net/networkthread.h>
26 #include <net/wakeuppipe.h>
36 class UploadThread :
public NetworkThread
38 static bt::Uint32 ucap;
39 static bt::Uint32 sleep_time;
41 WakeUpPipe::Ptr wake_up;
43 UploadThread(SocketMonitor* sm);
44 ~UploadThread()
override;
50 static void setCap(bt::Uint32 uc) {ucap = uc;}
53 static Uint32
cap() {
return ucap;}
58 void update()
override;
59 bool doGroup(
SocketGroup* g,Uint32 & allowance,bt::TimeStamp now)
override;
61 int waitForSocketsReady();