httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@locus.apache.org
Subject cvs commit: apache-2.0/src/main iol_socket.c
Date Wed, 02 Aug 2000 17:51:40 GMT
rbb         00/08/02 10:51:40

  Modified:    src/include ap_iol.h
               src/main iol_socket.c
  Log:
  Add a function to get an apr_socket_t out of an iol.
  
  Revision  Changes    Path
  1.23      +8 -0      apache-2.0/src/include/ap_iol.h
  
  Index: ap_iol.h
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/include/ap_iol.h,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- ap_iol.h	2000/08/02 05:25:26	1.22
  +++ ap_iol.h	2000/08/02 17:51:36	1.23
  @@ -248,4 +248,12 @@
    */
   API_EXPORT(ap_iol *) ap_iol_attach_socket(apr_pool_t *p, apr_socket_t *sock);
   
  +/**
  + * Get a socket out of an iol
  + * @param iol The iol to get the socket from
  + * @return The socket the iol points to.
  + * @deffunc ap_socket_t *ap_iol_get_socket(ap_iol *iol)
  + */
  +API_EXPORT(apr_socket_t *) ap_iol_get_socket(ap_iol *iol);
  +
   #endif
  
  
  
  1.11      +7 -0      apache-2.0/src/main/iol_socket.c
  
  Index: iol_socket.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/iol_socket.c,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- iol_socket.c	2000/08/02 05:26:48	1.10
  +++ iol_socket.c	2000/08/02 17:51:39	1.11
  @@ -186,3 +186,10 @@
       iol->sock = sock;
       return (ap_iol *)iol;
   }
  +
  +API_EXPORT(apr_socket_t *) ap_iol_get_socket(ap_iol *iol)
  +{
  +    iol_socket *realiol = (iol_socket *)iol;
  +
  +    return realiol->sock;
  +}
  
  
  

Mime
View raw message