libktorrent
2.2.0
|
Request of a piece sent to other peers. More...
#include <request.h>
Public Member Functions | |
Request () | |
Request (const Request &r) | |
Request (Uint32 index, Uint32 off, Uint32 len, PieceDownloader *pd) | |
Uint32 | getIndex () const |
Get the index of the chunk. | |
Uint32 | getLength () const |
Get the length of a the piece. | |
Uint32 | getOffset () const |
Get the offset into the chunk. | |
PieceDownloader * | getPieceDownloader () const |
Get the sending Peer. | |
Request & | operator= (const Request &r) |
Friends | |
bool | operator== (const Request &a, const Request &b) |
This class keeps track of a request of a piece. The Request consists of an index (the index of the chunk), offset into the chunk and the length of a piece.
|
inline |
|
inline |
Constructor, set the index, offset,length and peer
index | The index of the chunk |
off | The offset into the chunk |
len | The length of the piece |
pd | Pointer to PieceDownloader of the request |
|
inline |