summaryrefslogtreecommitdiff
path: root/ace/SOCK_IO.cpp
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-01-27 02:47:39 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-01-27 02:47:39 +0000
commit5fb01d5ef0e9bf22c739585894e37c107a24f114 (patch)
tree0afdc08eff23cc2e40aa2dfa804e546a4941fc22 /ace/SOCK_IO.cpp
parent771ec232608b658b9330e85048f9ab659d5ee8d2 (diff)
downloadATCD-5fb01d5ef0e9bf22c739585894e37c107a24f114.tar.gz
We should use sendv/recvv instead of writev/readv for sockets.
Diffstat (limited to 'ace/SOCK_IO.cpp')
-rw-r--r--ace/SOCK_IO.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ace/SOCK_IO.cpp b/ace/SOCK_IO.cpp
index 94175468320..942fdd66342 100644
--- a/ace/SOCK_IO.cpp
+++ b/ace/SOCK_IO.cpp
@@ -99,7 +99,7 @@ ACE_SOCK_IO::send (size_t n, ...) const
iovp[i].iov_len = va_arg (argp, ssize_t);
}
- ssize_t result = ACE_OS::writev (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) */
@@ -135,7 +135,7 @@ ACE_SOCK_IO::recv (size_t n, ...) const
iovp[i].iov_len = va_arg (argp, ssize_t);
}
- ssize_t result = ACE_OS::readv (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) */