apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r391579 - /apr/apr/trunk/network_io/unix/sendrecv.c
Date Wed, 05 Apr 2006 10:41:51 GMT
Author: jorton
Date: Wed Apr  5 03:41:46 2006
New Revision: 391579

URL: http://svn.apache.org/viewcvs?rev=391579&view=rev
Log:
* network_io/unix/sendrecv.c (apr_socket_sendv): Implement for
!HAVE_WRITEV build.

PR: 38822

Modified:
    apr/apr/trunk/network_io/unix/sendrecv.c

Modified: apr/apr/trunk/network_io/unix/sendrecv.c
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/network_io/unix/sendrecv.c?rev=391579&r1=391578&r2=391579&view=diff
==============================================================================
--- apr/apr/trunk/network_io/unix/sendrecv.c (original)
+++ apr/apr/trunk/network_io/unix/sendrecv.c Wed Apr  5 03:41:46 2006
@@ -180,10 +180,10 @@
     return APR_SUCCESS;
 }
 
-#ifdef HAVE_WRITEV
 apr_status_t apr_socket_sendv(apr_socket_t * sock, const struct iovec *vec,
                               apr_int32_t nvec, apr_size_t *len)
 {
+#ifdef HAVE_WRITEV
     apr_ssize_t rv;
     apr_size_t requested_len = 0;
     apr_int32_t i;
@@ -225,8 +225,11 @@
     }
     (*len) = rv;
     return APR_SUCCESS;
-}
+#else
+    *len = vec[0].iov_len;
+    return apr_socket_send(sock, vec[0].iov_base, len);
 #endif
+}
 
 #if APR_HAS_SENDFILE
 



Mime
View raw message