|
Furrent
|
#include <message.hpp>


Public Member Functions | |
| RequestMessage (int64_t index, int64_t begin, int64_t length) | |
| MessageKind | kind () const override |
Static Public Member Functions | |
| static Result< std::unique_ptr< RequestMessage >, DecodeError > | decode (const std::vector< uint8_t > &buf) |
Public Attributes | |
| const int64_t | index |
| Index of the piece. More... | |
| const int64_t | begin |
| Offset from the beginning of the piece. More... | |
| const int64_t | length |
| How many bytes we're asking. Typically 16KB. More... | |
Ask the peer to send us a subset of the bytes in a piece. <length=13><id=6><index><begin><length>
|
inline |
|
static |
|
inlineoverridevirtual |
Returns the kind of this message. Used before dynamic_casting when the underlying type is not known beforehand.
Implements fur::download::message::Message.
| const int64_t fur::download::message::RequestMessage::begin |
Offset from the beginning of the piece.
| const int64_t fur::download::message::RequestMessage::index |
Index of the piece.
| const int64_t fur::download::message::RequestMessage::length |
How many bytes we're asking. Typically 16KB.
1.8.17