libUPnP
1.14.24
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
15
#include "UpnpUniStd.h"
/* for close() */
// IWYU pragma: keep
16
17
#ifdef _WIN32
18
#include <stdarg.h>
19
#include <winsock2.h>
20
#include <ws2tcpip.h>
21
22
#define UpnpCloseSocket closesocket
23
24
#if (_WIN32_WINNT < 0x0600)
25
typedef
short
sa_family_t;
26
#else
27
typedef
ADDRESS_FAMILY sa_family_t;
28
#endif
29
30
#define OPTION_VALUE_CAST const char *
31
32
#else
/* _WIN32 */
33
#include <sys/param.h>
34
#if defined(__sun)
35
#include <fcntl.h>
36
#include <sys/sockio.h>
37
#elif (defined(BSD) && BSD >= 199306) || defined(__FreeBSD_kernel__)
38
#include <ifaddrs.h>
39
/* Do not move or remove the include below for "sys/socket"!
40
* Will break FreeBSD builds. */
41
#include <sys/socket.h>
42
#endif
43
#include <arpa/inet.h>
/* for inet_pton() */
44
#include <net/if.h>
45
#include <netinet/in.h>
46
50
typedef
int
SOCKET
;
51
53
#define INVALID_SOCKET (-1)
54
56
#define SOCKET_ERROR (-1)
57
59
#define UpnpCloseSocket close
60
88
#define OPTION_VALUE_CAST const void *
89
90
#endif
/* _WIN32 */
91
92
/* @} Sock */
93
94
#endif
/* UPNPINET_H */
SOCKET
int SOCKET
Definition:
UpnpInet.h:50
Generated by
1.8.10