From 67792898066205808404575a36d49dbfd60c2d79 Mon Sep 17 00:00:00 2001 From: Vijay Kiran Kamuju Date: Wed, 21 Sep 2005 09:41:22 +0000 Subject: [PATCH] Added addrinfo structures. --- include/ws2tcpip.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/include/ws2tcpip.h b/include/ws2tcpip.h index 4bd03fcd081..45128fc6c82 100644 --- a/include/ws2tcpip.h +++ b/include/ws2tcpip.h @@ -28,6 +28,33 @@ /* FIXME: This gets defined by some Unix (Linux) header and messes things */ #undef s6_addr +/* for addrinfo calls */ +typedef struct WS(addrinfo) +{ + int ai_flags; + int ai_family; + int ai_socktype; + int ai_protocol; + size_t ai_addrlen; + char * ai_canonname; + struct WS(sockaddr)* ai_addr; + struct WS(addrinfo)* ai_next; +} ADDRINFOA, *PADDRINFOA; + +typedef struct WS(addrinfoW) +{ + int ai_flags; + int ai_family; + int ai_socktype; + int ai_protocol; + size_t ai_addrlen; + PWSTR ai_canonname; + struct WS(sockaddr)* ai_addr; + struct WS(addrinfoW)* ai_next; +} ADDRINFOW, *PADDRINFOW; + +typedef ADDRINFOA ADDRINFO; + /* * Multicast group information */