diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/include/gnunet_upnp_service.h | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/src/include/gnunet_upnp_service.h b/src/include/gnunet_upnp_service.h deleted file mode 100644 index 1ac2ca58e..000000000 --- a/src/include/gnunet_upnp_service.h +++ /dev/null | |||
@@ -1,71 +0,0 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet | ||
3 | (C) 2006 Christian Grothoff (and other contributing authors) | ||
4 | |||
5 | GNUnet is free software; you can redistribute it and/or modify | ||
6 | it under the terms of the GNU General Public License as published | ||
7 | by the Free Software Foundation; either version 3, or (at your | ||
8 | option) any later version. | ||
9 | |||
10 | GNUnet is distributed in the hope that it will be useful, but | ||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU General Public License | ||
16 | along with GNUnet; see the file COPYING. If not, write to the | ||
17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, | ||
18 | Boston, MA 02111-1307, USA. | ||
19 | */ | ||
20 | |||
21 | /** | ||
22 | * @file include/gnunet_upnp_service.h | ||
23 | * @brief API for UPnP access | ||
24 | * @author Christian Grothoff | ||
25 | */ | ||
26 | |||
27 | #ifndef GNUNET_UPNP_SERVICE_H | ||
28 | #define GNUNET_UPNP_SERVICE_H | ||
29 | |||
30 | #include "gnunet_resolver_service.h" | ||
31 | |||
32 | #ifdef __cplusplus | ||
33 | extern "C" | ||
34 | { | ||
35 | #if 0 /* keep Emacsens' auto-indent happy */ | ||
36 | } | ||
37 | #endif | ||
38 | #endif | ||
39 | |||
40 | |||
41 | /** | ||
42 | * Get the external IP address for the local machine and | ||
43 | * install a port mapping if possible. The external port | ||
44 | * will be returned as part of the address. | ||
45 | * | ||
46 | * @param cfg configuration to use | ||
47 | * @param domain communication domain (i.e. PF_INET or PF_INET6) | ||
48 | * @param type communication semantics (SOCK_STREAM, SOCK_DGRAM) | ||
49 | * @param protocol protocol to use, 0 for default (see protocols(5)) | ||
50 | * @param port port to map | ||
51 | * @param timeout after how long should we give up (and call | ||
52 | * notify with buf NULL and size 0)? | ||
53 | * @param callback function to call with the external address; | ||
54 | * function will be called with NULL on error | ||
55 | * @param cls closure for callback | ||
56 | */ | ||
57 | int | ||
58 | GNUNET_UPNP_get_ip (struct GNUNET_CONFIGURATION_Handle *cfg, int domain, | ||
59 | int type, int protocol, uint16_t port, | ||
60 | struct GNUNET_TIME_Relative timeout, | ||
61 | GNUNET_RESOLVER_AddressCallback callback, void *cls); | ||
62 | |||
63 | |||
64 | #if 0 /* keep Emacsens' auto-indent happy */ | ||
65 | { | ||
66 | #endif | ||
67 | #ifdef __cplusplus | ||
68 | } | ||
69 | #endif | ||
70 | |||
71 | #endif | ||