blob: 1ca7fe74a6869a803317778dc08c5616ce7842a3 [file] [log] [blame]
Adrien Béraud612b55b2023-05-29 10:42:04 -04001/*
2 * Copyright (C) 2004-2023 Savoir-faire Linux Inc.
3 *
Adrien Béraudcb753622023-07-17 22:32:49 -04004 * This program is free software: you can redistribute it and/or modify
Adrien Béraud612b55b2023-05-29 10:42:04 -04005 * it under the terms of the GNU General Public License as published by
Adrien Béraudcb753622023-07-17 22:32:49 -04006 * the Free Software Foundation, either version 3 of the License, or
Adrien Béraud612b55b2023-05-29 10:42:04 -04007 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Adrien Béraudcb753622023-07-17 22:32:49 -040011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Adrien Béraud612b55b2023-05-29 10:42:04 -040012 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
Adrien Béraudcb753622023-07-17 22:32:49 -040015 * along with this program. If not, see <https://www.gnu.org/licenses/>.
Adrien Béraud612b55b2023-05-29 10:42:04 -040016 */
17#pragma once
18
19#include "../igd.h"
Adrien Béraud370257c2023-08-15 20:53:09 -040020#include "ip_utils.h"
Adrien Béraud612b55b2023-05-29 10:42:04 -040021
22#include <map>
23#include <atomic>
24#include <string>
25#include <chrono>
26#include <functional>
27
Adrien Béraud1ae60aa2023-07-07 09:55:09 -040028namespace dhtnet {
Adrien Béraud612b55b2023-05-29 10:42:04 -040029namespace upnp {
30
31class PMPIGD : public IGD
32{
33public:
34 PMPIGD();
35 PMPIGD(const PMPIGD&);
36 ~PMPIGD() = default;
37
38 PMPIGD& operator=(PMPIGD&& other) = delete;
39 PMPIGD& operator=(PMPIGD& other) = delete;
40
41 bool operator==(IGD& other) const;
42 bool operator==(PMPIGD& other) const;
43
44 const std::string toString() const override;
45};
46
47} // namespace upnp
Sébastien Blin464bdff2023-07-19 08:02:53 -040048} // namespace dhtnet