libUPnP
1.6.20
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
upnp
inc
UpnpInet.h
Go to the documentation of this file.
1
#ifndef UPNPINET_H
2
#define UPNPINET_H
3
14
#include "UpnpUniStd.h"
/* for close() */
15
16
#ifdef WIN32
17
#include <stdarg.h>
18
#ifndef UPNP_USE_MSVCPP
19
/* Removed: not required (and cause compilation issues) */
20
#include <winbase.h>
21
#include <windef.h>
22
#endif
23
#include <winsock2.h>
24
#include <iphlpapi.h>
25
#include <ws2tcpip.h>
26
27
#define UpnpCloseSocket closesocket
28
29
#if(_WIN32_WINNT < 0x0600)
30
typedef
short
sa_family_t;
31
#else
32
typedef
ADDRESS_FAMILY sa_family_t;
33
#endif
34
35
#else
/* WIN32 */
36
#include <sys/param.h>
37
#if defined(__sun)
38
#include <fcntl.h>
39
#include <sys/sockio.h>
40
#elif (defined(BSD) && BSD >= 199306) || defined (__FreeBSD_kernel__)
41
#include <ifaddrs.h>
42
/* Do not move or remove the include below for "sys/socket"!
43
* Will break FreeBSD builds. */
44
#include <sys/socket.h>
45
#endif
46
#include <arpa/inet.h>
/* for inet_pton() */
47
#include <net/if.h>
48
#include <netinet/in.h>
49
53
typedef
int
SOCKET
;
54
56
#define INVALID_SOCKET (-1)
57
59
#define SOCKET_ERROR (-1)
60
62
#define UpnpCloseSocket close
63
#endif
/* WIN32 */
64
65
/* @} Sock */
66
67
#endif
/* UPNPINET_H */
SOCKET
int SOCKET
Definition:
UpnpInet.h:53
Generated on Fri Oct 24 2014 01:08:44 for libUPnP by
1.8.8