Yes they have different values.


Based on the way the OpenSSL code is comparing the value in b_sock.c with the 
code snipit from b_sock.c:

                err_num=get_last_socket_error();

                if ((bind_mode == BIO_BIND_REUSEADDR_IF_UNUSED) &&

                        (err_num == EADDRINUSE))

                        {



Then for windows the err_num should be compared to 10048L since 
get_last_socket_error() is defined as WSAGetLastError() and that is going to 
return 10048L not 100.



WSAEADDRINUSE  is defined in WinError.h as:

#define WSAEADDRINUSE                    10048L



EADDRINUSE is defined in errno.h as:

#define EADDRINUSE      100



I hope my description helps. If it doesn't make sense, I can give URLs to 
Microsoft Documentation describing the Win32 API calls.



SLDR

(Stephen L. De Rudder)

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to