Changeset 6967
- Timestamp:
- Oct 27, 2008, 4:08:28 PM (12 years ago)
- Location:
- trunk/third-party
- Files:
-
- 1 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/third-party/libnatpmp/Makefile.am
r6333 r6967 1 1 noinst_LIBRARIES = libnatpmp.a 2 3 AM_CPPFLAGS = -DENABLE_STRNATPMPERR 2 4 3 5 libnatpmp_a_SOURCES = \ -
trunk/third-party/libnatpmp/README
r6303 r6967 1 1 libnatpmp is written by Thomas Bernard. 2 2 Its homepage is http://miniupnp.tuxfamily.org/libnatpmp.html 3 This code is from the libnatpmp-2008 0707snapshot3 This code is from the libnatpmp-20081006 snapshot 4 4 -
trunk/third-party/libnatpmp/declspec.h
r6705 r6967 2 2 #define __DECLSPEC_H__ 3 3 4 /*5 4 #if defined(WIN32) && !defined(STATICLIB) 6 5 #ifdef NATPMP_EXPORTS … … 10 9 #endif 11 10 #else 12 */13 11 #define LIBSPEC 14 /*15 12 #endif 16 */17 13 18 14 #endif -
trunk/third-party/libnatpmp/getgateway.c
r6706 r6967 1 /* $Id: getgateway.c,v 1.1 1 2008/07/02 23:56:11nanard Exp $ */1 /* $Id: getgateway.c,v 1.12 2008/10/06 10:04:16 nanard Exp $ */ 2 2 /* libnatpmp 3 3 * Copyright (c) 2007-2008, Thomas BERNARD <miniupnp@free.fr> … … 18 18 #ifndef WIN32 19 19 #include <netinet/in.h> 20 #else21 #include <winsock2.h>22 #include <ws2tcpip.h>23 20 #endif 24 21 #include <sys/param.h> … … 150 147 buf = malloc(l); 151 148 if(sysctl(mib, sizeof(mib)/sizeof(int), buf, &l, 0, 0) < 0) { 149 free(buf); 152 150 return FAILED; 153 151 } -
trunk/third-party/libnatpmp/natpmp.c
r6706 r6967 18 18 #include <time.h> 19 19 #include <sys/time.h> 20 #include <errno.h>21 20 #ifdef WIN32 22 21 #include <winsock2.h> 23 #include < ws2tcpip.h>22 #include <Ws2tcpip.h> 24 23 #include <io.h> 25 24 #define EWOULDBLOCK WSAEWOULDBLOCK … … 269 268 } 270 269 270 #ifdef ENABLE_STRNATPMPERR 271 271 const char * strnatpmperr(int r) 272 272 { … … 336 336 return s; 337 337 } 338 338 #endif 339 -
trunk/third-party/libnatpmp/natpmp.h
r6333 r6967 180 180 LIBSPEC int readnatpmpresponseorretry(natpmp_t * p, natpmpresp_t * response); 181 181 182 #ifdef ENABLE_STRNATPMPERR 182 183 LIBSPEC const char * strnatpmperr(int t); 184 #endif 183 185 184 186 #endif -
trunk/third-party/miniupnp/README
r6848 r6967 1 1 MiniUPnP is written by Thomas Bernard. 2 2 Its homepage is http://miniupnp.free.fr/ 3 This is from the miniupnpc- 20081002 snapshot3 This is from the miniupnpc-1.2 tarball (7 Oct 2008) -
trunk/third-party/miniupnp/minissdpc.c
r6848 r6967 1 /* $Id: minissdpc.c,v 1. 4 2007/12/19 14:56:58nanard Exp $ */1 /* $Id: minissdpc.c,v 1.6 2008/10/06 23:08:39 nanard Exp $ */ 2 2 /* Project : miniupnp 3 3 * Author : Thomas BERNARD 4 * copyright (c) 2005-200 7Thomas Bernard4 * copyright (c) 2005-2008 Thomas Bernard 5 5 * This software is subjet to the conditions detailed in the 6 6 * provided LICENCE file. */ … … 17 17 #include "miniupnpc.h" 18 18 19 #define DECODELENGTH(n, p) n = 0; \ 20 do { n = (n << 7) | (*p & 0x7f); } \ 21 while(*(p++)&0x80); 22 #define CODELENGTH(n, p) do { *p = (n & 0x7f) | ((n > 0x7f) ? 0x80 : 0); \ 23 p++; n >>= 7; } while(n); 19 #include "codelength.h" 24 20 25 21 struct UPNPDev * … … 53 49 } 54 50 stsize = strlen(devtype); 55 buffer[0] = 1; 51 buffer[0] = 1; /* request type 1 : request devices/services by type */ 56 52 p = buffer + 1; 57 53 l = stsize; CODELENGTH(l, p);
Note: See TracChangeset
for help on using the changeset viewer.