blob: b6274624409a1e1ff2dfc6d160b2381b20184eaf [file] [log] [blame]
Adrien Béraud612b55b2023-05-29 10:42:04 -04001/*
2 * Copyright (C) 2004-2023 Savoir-faire Linux Inc.
3 *
4 * Author: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com>
5 * Author: Eden Abitbol <eden.abitbol@savoirfairelinux.com>
6 * Author: Mohamed Chibani <mohamed.chibani@savoirfairelinux.com>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 */
22#pragma once
23
24#include "../igd.h"
25#include "noncopyable.h"
26#include "connectivity/ip_utils.h"
27
28#include <map>
29#include <atomic>
30#include <string>
31#include <chrono>
32#include <functional>
33
Adrien Béraud1ae60aa2023-07-07 09:55:09 -040034namespace dhtnet {
Adrien Béraud612b55b2023-05-29 10:42:04 -040035namespace upnp {
36
37class PMPIGD : public IGD
38{
39public:
40 PMPIGD();
41 PMPIGD(const PMPIGD&);
42 ~PMPIGD() = default;
43
44 PMPIGD& operator=(PMPIGD&& other) = delete;
45 PMPIGD& operator=(PMPIGD& other) = delete;
46
47 bool operator==(IGD& other) const;
48 bool operator==(PMPIGD& other) const;
49
50 const std::string toString() const override;
51};
52
53} // namespace upnp
54} // namespace jami