20 #ifndef NETSOCKETMONITOR_H
21 #define NETSOCKETMONITOR_H
26 #include <util/constants.h>
27 #include <ktorrent_export.h>
34 class TrafficShapedSocket;
56 typedef std::list<TrafficShapedSocket*>::iterator Itr;
59 Itr
begin() {
return sockets.begin();}
62 Itr
end() {
return sockets.end();}
92 Uint32
newGroup(GroupType type,Uint32 limit,Uint32 assured_rate);
117 static void setDownloadCap(Uint32 bytes_per_sec);
118 static Uint32 getDownloadCap();
119 static void setUploadCap(Uint32 bytes_per_sec);
120 static Uint32 getUploadCap();
121 static void setSleepTime(Uint32 sleep_time);
127 std::list<TrafficShapedSocket*> sockets;