diff options
author | click <none@none> | 2010-11-04 05:30:29 +0100 |
---|---|---|
committer | click <none@none> | 2010-11-04 05:30:29 +0100 |
commit | 9b16ee203f3f8e6e21c4864bd3308bf58c7b6800 (patch) | |
tree | 14950af01860fc520bbbd320c7ad81ef0281cbf3 /dep/acelite/ace/SOCK_IO.cpp | |
parent | 2604250c3c4efd93e9977f2eb72d6398a7a7bcb2 (diff) |
Dep/ACE: Upgrade ACE -library to 5.8.3
--HG--
branch : trunk
Diffstat (limited to 'dep/acelite/ace/SOCK_IO.cpp')
-rw-r--r-- | dep/acelite/ace/SOCK_IO.cpp | 33 |
1 files changed, 3 insertions, 30 deletions
diff --git a/dep/acelite/ace/SOCK_IO.cpp b/dep/acelite/ace/SOCK_IO.cpp index 772cbff18a5..10af6460b53 100644 --- a/dep/acelite/ace/SOCK_IO.cpp +++ b/dep/acelite/ace/SOCK_IO.cpp @@ -1,9 +1,7 @@ -// $Id: SOCK_IO.cpp 84213 2009-01-22 15:45:13Z johnnyw $ +// $Id: SOCK_IO.cpp 91622 2010-09-06 08:26:30Z sma $ #include "ace/SOCK_IO.h" -#include "ace/Handle_Set.h" -#include "ace/OS_NS_sys_select.h" #include "ace/OS_NS_sys_socket.h" #include "ace/OS_Memory.h" #include "ace/Truncate.h" @@ -12,7 +10,7 @@ #include "ace/SOCK_IO.inl" #endif /* __ACE_INLINE__ */ -ACE_RCSID(ace, SOCK_IO, "$Id: SOCK_IO.cpp 84213 2009-01-22 15:45:13Z johnnyw $") + ACE_BEGIN_VERSIONED_NAMESPACE_DECL @@ -37,35 +35,10 @@ ACE_SOCK_IO::recvv (iovec *io_vec, { ACE_TRACE ("ACE_SOCK_IO::recvv"); #if defined (FIONREAD) - ACE_Handle_Set handle_set; - handle_set.reset (); - handle_set.set_bit (this->get_handle ()); - io_vec->iov_base = 0; - - // Check the status of the current socket. -# 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 (this->get_handle ()) + 1; -# endif /* ACE_WIN32 */ - switch (ACE_OS::select (select_width, - handle_set, - 0, 0, - timeout)) + if( ACE::handle_read_ready (this->get_handle (), timeout) != 1 ) { - case -1: - return -1; - /* NOTREACHED */ - case 0: - errno = ETIME; return -1; - /* NOTREACHED */ - default: - // Goes fine, fallthrough to get data - break; } int inlen = 0; |