httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgau...@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/include apr_network_io.h
Date Fri, 14 Apr 2000 01:44:07 GMT
dgaudet     00/04/13 18:44:07

  Modified:    src/lib/apr/include apr_network_io.h
  Log:
  document that ap_{recv,send,sendv} can result in bytes transferred in
  addition to error/eof; and never result in APR_EINTR.  just like
  ap_{read,write,writev}.
  
  Revision  Changes    Path
  1.27      +17 -3     apache-2.0/src/lib/apr/include/apr_network_io.h
  
  Index: apr_network_io.h
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/include/apr_network_io.h,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- apr_network_io.h	2000/04/14 01:38:40	1.26
  +++ apr_network_io.h	2000/04/14 01:44:06	1.27
  @@ -251,10 +251,14 @@
    *    Send data over a network.
    * arg 1) The socket to send the data over.
    * arg 2) The buffer which contains the data to be sent. 
  - * arg 3) The maximum number of bytes to send 
  + * arg 3) On entry, the number of bytes to send; on exit, the number
  + *        of bytes sent.
    * NOTE:  This functions acts like a blocking write by default.  To change 
    *        this behavior, use ap_setsocketopt with the APR_SO_TIMEOUT option.
  - *        The number of bytes actually sent is stored in argument 3.
  + *
  + * It is possible for both bytes to be sent and an error to be returned.
  + *
  + * APR_EINTR is never returned.
    */
   ap_status_t ap_send(ap_socket_t *sock, const char *buf, ap_ssize_t *len);
   
  @@ -269,6 +273,10 @@
    * NOTE:  This functions acts like a blocking write by default.  To change 
    *        this behavior, use ap_setsocketopt with the APR_SO_TIMEOUT option.
    *        The number of bytes actually sent is stored in argument 3.
  + *
  + * It is possible for both bytes to be sent and an error to be returned.
  + *
  + * APR_EINTR is never returned.
    */
   ap_status_t ap_sendv(ap_socket_t *sock, const struct iovec *vec, 
                        ap_int32_t nvec, ap_int32_t *len);
  @@ -298,10 +306,16 @@
    *    Read data from a network.
    * arg 1) The socket to read the data from.
    * arg 2) The buffer to store the data in. 
  - * arg 3) The maximum number of bytes to read 
  + * arg 3) On entry, the number of bytes to receive; on exit, the number
  + *        of bytes received.
    * NOTE:  This functions acts like a blocking write by default.  To change 
    *        this behavior, use ap_setsocketopt with the APR_SO_TIMEOUT option.
    *        The number of bytes actually sent is stored in argument 3.
  + *
  + * It is possible for both bytes to be received and an APR_EOF or
  + * other error to be returned.
  + *
  + * APR_EINTR is never returned.
    */
   ap_status_t ap_recv(ap_socket_t *sock, char *buf, ap_ssize_t *len);
   
  
  
  

Mime
View raw message