OpenClonk
C4Network2UPnP.h
Go to the documentation of this file.
1 /*
2  * OpenClonk, http://www.openclonk.org
3  *
4  * Copyright (c) 2012-2016, The OpenClonk Team and contributors
5  *
6  * Distributed under the terms of the ISC license; see accompanying file
7  * "COPYING" for details.
8  *
9  * "Clonk" is a registered trademark of Matthes Bender, used with permission.
10  * See accompanying file "TRADEMARK" for details.
11  *
12  * To redistribute this file separately, substitute the full license texts
13  * for the above references.
14  */
15 /* Interface to a UPnP port mapper */
16 
17 #ifndef INC_C4Network2Upnp
18 #define INC_C4Network2Upnp
19 
20 #include "network/C4Network2IO.h"
21 
23 {
24  class C4Network2UPnPP *p;
25 public:
27  //noncopyable
28  C4Network2UPnP(const C4Network2UPnP&) = delete;
31 
32  void AddMapping(enum C4Network2IOProtocol protocol, uint16_t intport, uint16_t extport);
33  void ClearMappings();
34 };
35 
36 #endif
C4Network2IOProtocol
Definition: C4Network2IO.h:30
C4Network2UPnP(const C4Network2UPnP &)=delete
void AddMapping(enum C4Network2IOProtocol protocol, uint16_t intport, uint16_t extport)
C4Network2UPnP & operator=(const C4Network2UPnP &)=delete