Hi,

Kurosu a écrit :
> Hi,
>
> Matthieu Fertré a écrit :
>   
>> can you have a look at the change implied by this commit ? As far as I 
>> understand, getaddrinfo is available on Windows XP and there is some 
>> workaround for older version of Windows to make it work.
>>     
>
> It's unavailable under Windows 2000, but I don't know how many users 
> that is. There are troublesome workarounds though, see for instance:
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg00040.html
>   

 From this webpage, it seems that Microsoft provided a header file that 
can make it avaible for older systems too.
http://msdn.microsoft.com/en-us/library/ms738520(VS.85).aspx

"The *getaddrinfo* function was added to the /Ws2_32.dll/ on Windows XP 
and later. If you want to execute an application using this function on 
earlier versions of Windows (Windows 2000, Windows NT, and 
Windows Me/98/95), then you need to include the /Ws2tcpip.h/ file and 
also include the /Wspiapi.h/ file. When the /Wspiapi.h/ include file is 
added, the *getaddrinfo* function is defined to the WspiapiGetAddrInfo 
inline function in the /Wspiapi.h/ file. At runtime, the 
WspiapiGetAddrInfo function is implemented in such a way that if the 
/Ws2_32.dll/ or the /Wship6.dll/ (the file containing *getaddrinfo* in 
the IPv6 Technology Preview for Windows 2000) does not include 
*getaddrinfo*, then a version of *getaddrinfo* is implemented inline 
based on code in the /Wspiapi.h/ header file. This inline code will be 
used on older Windows platforms that do not natively support the 
*getaddrinfo* function."

> I hope to look into it this weekend.
>   

Thanks,

> Regards,
> Kurosu
>
>   

Matt (gentildemon)


_______________________________________________
Wormux-dev mailing list
Wormux-dev@gna.org
https://mail.gna.org/listinfo/wormux-dev

Répondre à