Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
blockrequest.hh
Go to the documentation of this file.
1 #pragma once
2 
3 #include "message.hh"
4 #include <string>
5 
6 namespace eclipse {
7 namespace messages {
8 
9 struct BlockRequest: public Message {
10  BlockRequest () = default;
11  std::string get_type() const override;
12 
13  uint64_t off;
14  uint64_t len;
15  bool should_read_partially = false;
16  std::string name;
17  uint32_t hash_key;
18 };
19 
20 }
21 }
uint32_t hash_key
Definition: blockrequest.hh:17
std::string name
Definition: blockrequest.hh:16
Definition: message.hh:15
std::string get_type() const override
Definition: blockrequest.cc:6
Definition: blockrequest.hh:9
uint64_t len
Definition: blockrequest.hh:14
uint64_t off
Definition: blockrequest.hh:13
bool should_read_partially
Definition: blockrequest.hh:15