httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dr...@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/network_io/beos sendrecv.c
Date Tue, 29 Aug 2000 18:48:46 GMT
dreid       00/08/29 11:48:46

  Modified:    src/lib/apr/network_io/beos sendrecv.c
  Log:
  Add apr-sendv using the "I don't have writev" workaround.
  
  Revision  Changes    Path
  1.16      +10 -0     apache-2.0/src/lib/apr/network_io/beos/sendrecv.c
  
  Index: sendrecv.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/network_io/beos/sendrecv.c,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- sendrecv.c	2000/08/06 06:07:20	1.15
  +++ sendrecv.c	2000/08/29 18:48:45	1.16
  @@ -147,4 +147,14 @@
       (*len) = rv;
       return APR_SUCCESS;
   }
  +
  +/* BeOS doesn't have writev for sockets so we use the following instead...
  + */
  +apr_status_t apr_sendv(apr_socket_t * sock, const struct iovec *vec,
  +                     apr_int32_t nvec, apr_ssize_t *len)
  +{
  +    *len = vec[0].iov_len;
  +    return apr_send(sock, vec[0].iov_base, len);
  +}
  +
   #endif
  
  
  

Mime
View raw message