// Copyright (c) 2011-2020 The Limenka developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef LIMENKA_MAPPORT_H #define LIMENKA_MAPPORT_H static constexpr bool DEFAULT_UPNP = false; static constexpr bool DEFAULT_NATPMP = true; enum MapPortProtoFlag : unsigned int { NONE = 0x00, UPNP = 0x01, PCP = 0x02, // PCP with NAT-PMP fallback. }; bool MapPortIsProtoEnabled(MapPortProtoFlag); void StartMapPort(bool use_upnp, bool use_pcp); void InterruptMapPort(); void StopMapPort(); #endif // LIMENKA_MAPPORT_H