Adrien Béraud | 612b55b | 2023-05-29 10:42:04 -0400 | [diff] [blame] | 1 | /* |
| 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éraud | 1ae60aa | 2023-07-07 09:55:09 -0400 | [diff] [blame] | 34 | namespace dhtnet { |
Adrien Béraud | 612b55b | 2023-05-29 10:42:04 -0400 | [diff] [blame] | 35 | namespace upnp { |
| 36 | |
| 37 | class PMPIGD : public IGD |
| 38 | { |
| 39 | public: |
| 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 |