<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Dear Michal,<br>
Well, I always check msdocs directly, from msdn, and I check it on
local install of vstudio express embedded docs, and on embedded
doc from WCE 5 sdk, and an old msdn 2000 cd I have (I am concerned
with compatibility with old and new systems).<br>
<br>
A least, I can say that the 3 functions are available in winsock2
for WCE. (ws2_lib),<br>
and on most of Windows version above or equal to xp.<br>
<br>
<br>
And when I say winsock2 (ws2 lib) , it is not winsock1 (winsock
lib).<br>
<br>
<br>
For windows 2000 pro, check this :<br>
<br>
<a class="moz-txt-link-freetext" href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms738520%28v=vs.85%29.aspx">http://msdn.microsoft.com/en-us/library/windows/desktop/ms738520%28v=vs.85%29.aspx</a><br>
<br>
"....<br>
<h4>Support for getaddrinfo on Windows 2000 and older versions </h4>
<p>The <strong>getaddrinfo</strong> function was added to the
Ws2_32.dll on Windows XP and later. To execute an application
that uses this function on earlier versions of Windows, then you
need to include the <em>Ws2tcpip.h</em> and <em>Wspiapi.h</em>
files. When the <em>Wspiapi.h</em> include file is added, the <strong>getaddrinfo</strong>
function is defined to the <strong>WspiapiGetAddrInfo</strong>
inline function in the <em>Wspiapi.h</em> file. At runtime, the
<strong>WspiapiGetAddrInfo</strong> function is implemented in
such a way that if the Ws2_32.dll or the Wship6.dll (the file
containing <strong>getaddrinfo</strong> in the IPv6 Technology
Preview for Windows 2000) does not include <strong>getaddrinfo</strong>,
then a version of <strong>getaddrinfo</strong> 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 <strong>getaddrinfo</strong> function.</p>
<br>
<p>The IPv6 protocol is supported on Windows 2000 when the IPv6
Technology Preview for Windows 2000 is installed. Otherwise <strong>getaddrinfo</strong>
support on versions of Windows earlier than Windows XP is
limited to handling IPv4 name resolution.</p>
<p>The <a
href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms738519%28v=vs.85%29.aspx"><strong
xmlns="http://www.w3.org/1999/xhtml">GetAddrInfoW</strong></a>
function is the Unicode version of <strong>getaddrinfo</strong>.
The <strong>GetAddrInfoW</strong> function was added to the
Ws2_32.dll in Windows XP with Service Pack 2 (SP2). The <strong>GetAddrInfoW</strong>
function cannot be used on versions of Windows earlier than
Windows XP with SP2. </p>
<p><strong>Windows Phone 8:</strong> This API is supported.</p>
<h3>Requirements</h3>
<table>
<tbody>
<tr>
<th>
<p>Minimum supported client</p>
</th>
<td>Windows 2000 Professional [desktop apps only]</td>
</tr>
<tr>
<th>
<p>Minimum supported server</p>
</th>
<td>Windows 2000 Server [desktop apps only]</td>
</tr>
<tr>
<th>
<p>Header</p>
</th>
<td>
<dl>
<dt>Ws2tcpip.h; </dt>
<dt>Ws2tcpip.h on Windows 2000 (include Wspiapi.h)</dt>
</dl>
</td>
</tr>
<tr>
<th>
<p>Library</p>
</th>
<td>
<dl>
<dt>Ws2_32.lib</dt>
</dl>
</td>
</tr>
<tr>
<th>
<p>DLL</p>
</th>
<td>
<dl>
<dt>Ws2_32.dll</dt>
</dl>
</td>
</tr>
</tbody>
</table>
<br>
..."<br>
<br>
My sole purpose was to replace winsock1 lib an h files with those
of winsock2 (see my modified common.h I sent you in 2010/11),<br>
as winsock2 is available on many windows version, including 2000.<br>
<br>
Some strange redef in common.h leading to compilation warnings
were clarified with the distinction between winsock1 and winsock2.<br>
<br>
Well, I think that at least for CE, the code "could" be adapted as
I offered (because the present code let us think that getaddrinfo
is NOT available in ws2 lib, and IT IS:<br>
<a class="moz-txt-link-freetext" href="http://msdn.microsoft.com/en-us/library/aa915647.aspx">http://msdn.microsoft.com/en-us/library/aa915647.aspx</a> ).<br>
<br>
Well, I will wait for v500 official and maybe suggest an
adaptation for WCE or JUST FOR W2000...<br>
<br>
Yours sincerely,<br>
Pierre<br>
<br>
<br>
Le 06/12/2012 20:37, Michal Trojnara a écrit :<br>
</div>
<blockquote cite="mid:50C0F3E1.7000905@mirt.net" type="cite">
<pre wrap="">On 2012-12-04 13:43, Pierre DELAAGE wrote:
</pre>
<blockquote type="cite">
<pre wrap="">In the past, my offer was to simplify the code for "custom" rewrites of
getaddrinfo/getnameinfo in resolver.c,
by using winsock2 api,
because such calls are available in winsock2, and NOT in winsock1.
</pre>
</blockquote>
<pre wrap="">You are wrong. Winsock2 does *not* imply getaddrinfo/getnameinfo.
The original Windows 2000 does have Winsock2, but it doesn't have
getaddrinfo/getnameinfo. Feel free do check it for yourself if you
don't believe me (or Microsoft docs I sent you).
</pre>
<blockquote type="cite">
<pre wrap="">I will check this in depth after official stunnel v5.00.
</pre>
</blockquote>
<pre wrap="">Thank you.
Mike
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
stunnel-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:stunnel-users@stunnel.org">stunnel-users@stunnel.org</a>
<a class="moz-txt-link-freetext" href="https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users">https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users</a>
</pre>
</blockquote>
<br>
</body>
</html>