summaryrefslogtreecommitdiff
path: root/ace/SOCK_IO.cpp
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-05-23 18:28:55 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-05-23 18:28:55 +0000
commit06ce59d348e30ce3da6106943c2d5660abc4c219 (patch)
tree193a5f6f9b2e16cb3c722e5ef066dd266832a6bd /ace/SOCK_IO.cpp
parent74205f4d54deada413395d34b3dfa99d51c6f7cb (diff)
downloadATCD-IR-base.tar.gz
This commit was manufactured by cvs2svn to create tag 'IR-base'.IR-base
Diffstat (limited to 'ace/SOCK_IO.cpp')
-rw-r--r--ace/SOCK_IO.cpp26
1 files changed, 8 insertions, 18 deletions
diff --git a/ace/SOCK_IO.cpp b/ace/SOCK_IO.cpp
index abf00af3559..942fdd66342 100644
--- a/ace/SOCK_IO.cpp
+++ b/ace/SOCK_IO.cpp
@@ -34,13 +34,11 @@ ACE_SOCK_IO::recvv (iovec *io_vec,
handle_set.reset ();
handle_set.set_bit (this->get_handle ());
- io_vec->iov_base = 0;
-
// 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;
@@ -56,17 +54,13 @@ 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
@@ -105,9 +99,7 @@ ACE_SOCK_IO::send (size_t n, ...) const
iovp[i].iov_len = va_arg (argp, ssize_t);
}
- ssize_t result = ACE_OS::sendv (this->get_handle (),
- iovp,
- total_tuples);
+ ssize_t result = ACE_OS::sendv (this->get_handle (), iovp, total_tuples);
#if !defined (ACE_HAS_ALLOCA)
delete [] iovp;
#endif /* !defined (ACE_HAS_ALLOCA) */
@@ -143,9 +135,7 @@ ACE_SOCK_IO::recv (size_t n, ...) const
iovp[i].iov_len = va_arg (argp, ssize_t);
}
- ssize_t result = ACE_OS::recvv (this->get_handle (),
- iovp,
- total_tuples);
+ ssize_t result = ACE_OS::recvv (this->get_handle (), iovp, total_tuples);
#if !defined (ACE_HAS_ALLOCA)
delete [] iovp;
#endif /* !defined (ACE_HAS_ALLOCA) */