diff options
Diffstat (limited to 'ace/OS_NS_sys_socket.inl')
-rw-r--r-- | ace/OS_NS_sys_socket.inl | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ace/OS_NS_sys_socket.inl b/ace/OS_NS_sys_socket.inl index 6695620a1bf..5e39f4f2f85 100644 --- a/ace/OS_NS_sys_socket.inl +++ b/ace/OS_NS_sys_socket.inl @@ -835,12 +835,14 @@ ACE_OS::setsockopt (ACE_HANDLE handle, #if defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0) && defined(SO_REUSEPORT) // To work around an inconsistency with Microsofts implementation of // sockets, we will check for SO_REUSEADDR, and ignore it. Winsock - // always behaves as if SO_REUSEADDR=1. Some implementations have the - // same behaviour as Winsock, but use a new name for it. SO_REUSEPORT. - // If you want the normal behaviour for SO_REUSEADDR=0, then NT 4 sp4 and later - // supports SO_EXCLUSIVEADDRUSE. This also requires using an updated Platform SDK - // so it was decided to ignore the option for now. (Especially since ACE always - // sets SO_REUSEADDR=1, which we can mimic by doing nothing.) + // always behaves as if SO_REUSEADDR=1. Some implementations have + // the same behaviour as Winsock, but use a new name for + // it. SO_REUSEPORT. If you want the normal behaviour for + // SO_REUSEADDR=0, then NT 4 sp4 and later supports + // SO_EXCLUSIVEADDRUSE. This also requires using an updated Platform + // SDK so it was decided to ignore the option for now. (Especially + // since Windows always sets SO_REUSEADDR=1, which we can mimic by doing + // nothing.) if (level == SOL_SOCKET) { if (optname == SO_REUSEADDR) { return 0; // Not supported by Winsock |