diff options
author | Steve Huston <shuston@riverace.com> | 2010-08-27 19:46:10 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2010-08-27 19:46:10 +0000 |
commit | dbeb734d4a61148f7b4bfca010125c7f57627a1f (patch) | |
tree | 9090676d14d98470de5e6b470c6a2c602197bddb /ACE/ace/Acceptor.cpp | |
parent | ee6269f3809336ea9a1185dabd82b75372cab2fc (diff) | |
download | ATCD-dbeb734d4a61148f7b4bfca010125c7f57627a1f.tar.gz |
ChangeLogTag:Fri Aug 27 19:17:11 UTC 2010 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ACE/ace/Acceptor.cpp')
-rw-r--r-- | ACE/ace/Acceptor.cpp | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/ACE/ace/Acceptor.cpp b/ACE/ace/Acceptor.cpp index bf46bff01a5..6b1a55ae6ff 100644 --- a/ACE/ace/Acceptor.cpp +++ b/ACE/ace/Acceptor.cpp @@ -10,12 +10,10 @@ #endif /* ACE_LACKS_PRAGMA_ONCE */ #include "ace/Acceptor.h" -#include "ace/Handle_Set.h" #include "ace/Svc_Handler.h" #include "ace/WFMO_Reactor.h" #include "ace/OS_NS_stdio.h" #include "ace/OS_NS_string.h" -#include "ace/OS_NS_sys_select.h" ACE_BEGIN_VERSIONED_NAMESPACE_DECL @@ -365,17 +363,9 @@ template <class SVC_HANDLER, ACE_PEER_ACCEPTOR_1> int ACE_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::handle_input (ACE_HANDLE listener) { ACE_TRACE ("ACE_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::handle_input"); - ACE_Handle_Set conn_handle; // Default is "timeout (0, 0)," which means "poll." ACE_Time_Value timeout; -# if defined (ACE_WIN32) - // This arg is ignored on Windows and causes pointer truncation - // warnings on 64-bit compiles - int select_width = 0; -# else - int select_width = int (listener) + 1; -# endif /* ACE_WIN32 */ // Accept connections from clients. Note that a loop is used for two // reasons: @@ -432,18 +422,13 @@ ACE_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::handle_input (ACE_HANDLE listene ACE_TEXT ("activate_svc_handler"))); return 0; } - - conn_handle.set_bit (listener); } // Now, check to see if there is another connection pending and // break out of the loop if there is none. - while (this->use_select_ - && ACE_OS::select (select_width, - conn_handle, - 0, - 0, - &timeout) == 1); + while (this->use_select_ && + ACE::handle_read_ready (listener, + &timeout) == 1); return 0; } |