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.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user