aboutsummaryrefslogtreecommitdiff
path: root/include/odhtdb/DhtKey.hpp
blob: 8af2bd4aaa0e35097df2e11e70b36f92e82c94e0 (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 "InfoHash.hpp"

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