libktorrent  2.2.0
Public Member Functions | Static Public Member Functions | List of all members
net::UploadThread Class Reference

#include <uploadthread.h>

Inheritance diagram for net::UploadThread:
Inheritance graph
[legend]

Public Member Functions

 UploadThread (SocketMonitor *sm)
 
void signalDataReady ()
 Wake up thread, data is ready to be sent.
 
- Public Member Functions inherited from net::NetworkThread
 NetworkThread (SocketMonitor *sm)
 
void addGroup (Uint32 gid, Uint32 limit, Uint32 assured_rate)
 
bool isRunning () const
 Is the thread running.
 
void removeGroup (Uint32 gid)
 
void run () override
 
void setGroupAssuredRate (Uint32 gid, Uint32 as)
 
void setGroupLimit (Uint32 gid, Uint32 limit)
 
void stop ()
 Stop before the next update.
 
- Public Member Functions inherited from net::Poll
int add (int fd, Mode mode)
 Add a file descriptor to the poll (returns the index of it)
 
int add (PollClient::Ptr pc)
 Add a poll client.
 
int poll (int timeout=-1)
 Poll all sockets.
 
bool ready (int index, Mode mode) const
 Check if a socket at an index is read.
 
void reset ()
 Reset the poll.
 

Static Public Member Functions

static Uint32 cap ()
 Get the upload cap.
 
static void setCap (bt::Uint32 uc)
 Set the upload cap.
 
static void setSleepTime (bt::Uint32 stime)
 Set the sleep time when using upload caps.
 

Additional Inherited Members

- Public Types inherited from net::Poll
enum  Mode { INPUT, OUTPUT }
 
- Protected Member Functions inherited from net::NetworkThread
void doGroups (Uint32 num_ready, bt::TimeStamp now, bt::Uint32 limit)
 
- Protected Attributes inherited from net::NetworkThread
bt::PtrMap< Uint32, SocketGroupgroups
 
bt::TimeStamp prev_run_time
 
bool running
 
SocketMonitorsm
 

Detailed Description

Author
Joris Guisson joris.nosp@m..gui.nosp@m.sson@.nosp@m.gmai.nosp@m.l.com

Definition at line 36 of file uploadthread.h.


The documentation for this class was generated from the following file: