summaryrefslogtreecommitdiff
path: root/ACE/ace/SOCK_IO.cpp
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2010-08-27 19:46:10 +0000
committerSteve Huston <shuston@riverace.com>2010-08-27 19:46:10 +0000
commitdbeb734d4a61148f7b4bfca010125c7f57627a1f (patch)
tree9090676d14d98470de5e6b470c6a2c602197bddb /ACE/ace/SOCK_IO.cpp
parentee6269f3809336ea9a1185dabd82b75372cab2fc (diff)
downloadATCD-dbeb734d4a61148f7b4bfca010125c7f57627a1f.tar.gz
ChangeLogTag:Fri Aug 27 19:17:11 UTC 2010 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ACE/ace/SOCK_IO.cpp')
-rw-r--r--ACE/ace/SOCK_IO.cpp29
1 files changed, 1 insertions, 28 deletions
diff --git a/ACE/ace/SOCK_IO.cpp b/ACE/ace/SOCK_IO.cpp
index 41897e680de..b9175e7d621 100644
--- a/ACE/ace/SOCK_IO.cpp
+++ b/ACE/ace/SOCK_IO.cpp
@@ -2,8 +2,6 @@
#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"
@@ -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;