diff --git a/harbour/ChangeLog b/harbour/ChangeLog index d2f0499659..8ef8e2cf7e 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,15 @@ The license applies to all entries newer than 2009-04-28. */ +2010-12-02 21:42 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) + * src/rtl/hbinet.c + * Do not set SO_EXCLUSIVEADDRUSE on Windows in + HB_INETSERVER(), HB_INETDGRAMBIND() calls. + ; NOTE: INET API is compatibility API, it's deprecated and + not recommended. Use SOCKET API instead, where + you have full control of above options and it's + also much superior API. + 2010-12-02 14:41 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * include/harbour.hbx * include/hbsocket.h diff --git a/harbour/src/rtl/hbinet.c b/harbour/src/rtl/hbinet.c index 97632a226b..fcd5f20558 100644 --- a/harbour/src/rtl/hbinet.c +++ b/harbour/src/rtl/hbinet.c @@ -1105,10 +1105,7 @@ HB_FUNC( HB_INETIFINFO ) static int s_inetBind( PHB_SOCKET_STRUCT socket, const void * pSockAddr, unsigned uiLen ) { -#if defined( HB_OS_WIN ) - /* TODO: Do not set this for UDP multicast */ - hb_socketSetExclusiveAddr( socket->sd, HB_TRUE ); -#else +#if ! defined( HB_OS_WIN ) hb_socketSetReuseAddr( socket->sd, HB_TRUE ); #endif return hb_socketBind( socket->sd, pSockAddr, uiLen );