openclonk/src/network/C4Network2UPnP.h

37 lines
928 B
C
Raw Normal View History

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
*
* Distributed under the terms of the ISC license; see accompanying file
* "COPYING" for details.
2012-01-15 20:27:16 +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
*
* 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
#include "network/C4Network2IO.h"
2012-01-15 20:27:16 +00:00
class C4Network2UPnP
2012-01-15 20:27:16 +00:00
{
class C4Network2UPnPP *p;
2012-01-15 20:27:16 +00:00
public:
C4Network2UPnP();
//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