2012-01-15 20:27:16 +00:00
|
|
|
/*
|
|
|
|
* OpenClonk, http://www.openclonk.org
|
|
|
|
*
|
2016-04-03 18:18:29 +00:00
|
|
|
* Copyright (c) 2012-2016, The OpenClonk Team and contributors
|
2012-01-15 20:27:16 +00:00
|
|
|
*
|
2013-12-17 20:01:09 +00:00
|
|
|
* Distributed under the terms of the ISC license; see accompanying file
|
|
|
|
* "COPYING" for details.
|
2012-01-15 20:27:16 +00:00
|
|
|
*
|
2013-12-17 20:01:09 +00:00
|
|
|
* "Clonk" is a registered trademark of Matthes Bender, used with permission.
|
|
|
|
* See accompanying file "TRADEMARK" for details.
|
2012-01-15 20:27:16 +00:00
|
|
|
*
|
2013-12-17 20:01:09 +00:00
|
|
|
* To redistribute this file separately, substitute the full license texts
|
|
|
|
* for the above references.
|
2012-01-15 20:27:16 +00:00
|
|
|
*/
|
|
|
|
/* Interface to a UPnP port mapper */
|
|
|
|
|
|
|
|
#ifndef INC_C4Network2Upnp
|
|
|
|
#define INC_C4Network2Upnp
|
|
|
|
|
2012-01-15 21:36:27 +00:00
|
|
|
#include "network/C4Network2IO.h"
|
2012-01-15 20:27:16 +00:00
|
|
|
|
2015-09-29 08:32:54 +00:00
|
|
|
class C4Network2UPnP
|
2012-01-15 20:27:16 +00:00
|
|
|
{
|
2016-05-29 21:39:10 +00:00
|
|
|
class C4Network2UPnPP *p;
|
2012-01-15 20:27:16 +00:00
|
|
|
public:
|
|
|
|
C4Network2UPnP();
|
2015-09-29 08:32:54 +00:00
|
|
|
//noncopyable
|
|
|
|
C4Network2UPnP(const C4Network2UPnP&) = delete;
|
|
|
|
C4Network2UPnP& operator=(const C4Network2UPnP&) = delete;
|
2012-01-15 20:27:16 +00:00
|
|
|
~C4Network2UPnP();
|
|
|
|
|
|
|
|
void AddMapping(enum C4Network2IOProtocol protocol, uint16_t intport, uint16_t extport);
|
|
|
|
void ClearMappings();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|