summaryrefslogtreecommitdiff
path: root/ace/SOCK_IO.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-05-12 15:47:22 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-05-12 15:47:22 +0000
commitcae53a4fbc79b0ae3767e95589f0354848cb4db3 (patch)
tree7388b7f457baa87c8b91bd05d7cc443ccde4dd0e /ace/SOCK_IO.cpp
parentb3b432820e3c0f1f940a6ab3cd3e68164219b23d (diff)
downloadATCD-cae53a4fbc79b0ae3767e95589f0354848cb4db3.tar.gz
.
Diffstat (limited to 'ace/SOCK_IO.cpp')
-rw-r--r--ace/SOCK_IO.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/ace/SOCK_IO.cpp b/ace/SOCK_IO.cpp
index 942fdd66342..677f4b81ad4 100644
--- a/ace/SOCK_IO.cpp
+++ b/ace/SOCK_IO.cpp
@@ -36,9 +36,9 @@ ACE_SOCK_IO::recvv (iovec *io_vec,
// Check the status of the current socket.
switch (ACE_OS::select (int (this->get_handle ()) + 1,
- handle_set,
- 0, 0,
- timeout))
+ handle_set,
+ 0, 0,
+ timeout))
{
case -1:
return -1;
@@ -54,13 +54,17 @@ ACE_SOCK_IO::recvv (iovec *io_vec,
u_long inlen;
- if (ACE_OS::ioctl (this->get_handle (), FIONREAD,
+ if (ACE_OS::ioctl (this->get_handle (),
+ FIONREAD,
(u_long *) &inlen) == -1)
return -1;
else if (inlen > 0)
{
- ACE_NEW_RETURN (io_vec->iov_base, char[inlen], -1);
- io_vec->iov_len = this->recv (io_vec->iov_base, inlen);
+ ACE_NEW_RETURN (io_vec->iov_base,
+ char[inlen],
+ -1);
+ io_vec->iov_len = this->recv (io_vec->iov_base,
+ inlen);
return io_vec->iov_len;
}
else