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

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

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