diff options
author | David <david@xagasoft.com> | 2009-01-14 20:05:02 +0000 |
---|---|---|
committer | David <david@xagasoft.com> | 2009-01-14 20:05:02 +0000 |
commit | 3ee5204eb254e914d695a37fede11c8599415fa9 (patch) | |
tree | 26b92fba438d16a0d2e896f92f106125e04abf94 /src/win32_compatibility.h | |
parent | e771f7c48d38d1c1481b9904d17ed7989d6cd579 (diff) | |
download | libbu++-3ee5204eb254e914d695a37fede11c8599415fa9.tar.gz libbu++-3ee5204eb254e914d695a37fede11c8599415fa9.tar.bz2 libbu++-3ee5204eb254e914d695a37fede11c8599415fa9.tar.xz libbu++-3ee5204eb254e914d695a37fede11c8599415fa9.zip |
david - added getaddrinfo and freeaddrinfo
Diffstat (limited to 'src/win32_compatibility.h')
-rw-r--r-- | src/win32_compatibility.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/win32_compatibility.h b/src/win32_compatibility.h index 7d1f79b..8bf3a00 100644 --- a/src/win32_compatibility.h +++ b/src/win32_compatibility.h | |||
@@ -17,6 +17,7 @@ | |||
17 | #ifdef WIN32 | 17 | #ifdef WIN32 |
18 | 18 | ||
19 | #include <Winsock2.h> | 19 | #include <Winsock2.h> |
20 | #include <ws2tcpip.h> | ||
20 | #include "fstring.h" | 21 | #include "fstring.h" |
21 | 22 | ||
22 | #ifndef TEMP_FAILURE_RETRY | 23 | #ifndef TEMP_FAILURE_RETRY |
@@ -41,6 +42,10 @@ namespace DynamicWinsock2 | |||
41 | u_short htons(u_short in); | 42 | u_short htons(u_short in); |
42 | u_long htonl(u_long in); | 43 | u_long htonl(u_long in); |
43 | struct hostent *gethostbyname(const char *name); | 44 | struct hostent *gethostbyname(const char *name); |
45 | void freeaddrinfo(struct addrinfo *ai); | ||
46 | int getaddrinfo( | ||
47 | const char *nodename, const char *servname, | ||
48 | const struct addrinfo *hints, struct addrinfo **res ); | ||
44 | int connect(SOCKET s, const struct sockaddr *serv_addr, int addrlen); | 49 | int connect(SOCKET s, const struct sockaddr *serv_addr, int addrlen); |
45 | int getpeername(SOCKET s, struct sockaddr *name, int *namelen); | 50 | int getpeername(SOCKET s, struct sockaddr *name, int *namelen); |
46 | int setsockopt(SOCKET s, int level, int optname, | 51 | int setsockopt(SOCKET s, int level, int optname, |