aboutsummaryrefslogtreecommitdiff
path: root/include/odhtdb/DhtKey.hpp
blob: 7c30ee3ef1f1695b18b74298bc175f00e93c6a84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include "Hash.hpp"
#include <opendht/infohash.h>

namespace odhtdb
{
    class DhtKey
    {
    public:
        DhtKey(const Hash &key);
        
        const dht::InfoHash& getNewDataListenerKey();
        const dht::InfoHash& getRequestOldDataKey();
    private:
        dht::InfoHash infoHash;
        unsigned char firstByteOriginalValue;
    };
}