tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jni/native/src poll.c
Date Fri, 15 Apr 2005 10:14:47 GMT
mturk       2005/04/15 03:14:47

  Modified:    jni/native/src poll.c
  Log:
  Add setter and getter for poller time to live
  
  Revision  Changes    Path
  1.5       +21 -6     jakarta-tomcat-connectors/jni/native/src/poll.c
  
  Index: poll.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/src/poll.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- poll.c	14 Apr 2005 06:47:56 -0000	1.4
  +++ poll.c	15 Apr 2005 10:14:46 -0000	1.5
  @@ -60,9 +60,9 @@
   
   TCN_IMPLEMENT_CALL(jint, Poll, destroy)(TCN_STDARGS, jlong pollset)
   {
  -    tcn_pollset_t *p = J2P(pollset,  tcn_pollset_t *);;
  +    tcn_pollset_t *p = J2P(pollset,  tcn_pollset_t *);
   
  -    UNREFERENCED_STDARGS;;
  +    UNREFERENCED_STDARGS;
       return (jint)apr_pollset_destroy(p->pollset);
   }
   
  @@ -99,7 +99,7 @@
       apr_pollfd_t fd;
       apr_int32_t i;
   
  -    UNREFERENCED_STDARGS;;
  +    UNREFERENCED_STDARGS;
   
       memset(&fd, 0, sizeof(apr_pollfd_t));
       fd.desc_type = APR_POLL_SOCKET;
  @@ -172,20 +172,35 @@
   TCN_IMPLEMENT_CALL(jlong, Poll, socket)(TCN_STDARGS, jlong pollfd)
   {
       apr_pollfd_t *fd = J2P(pollfd,  apr_pollfd_t *);
  -    UNREFERENCED_STDARGS;;
  +    UNREFERENCED_STDARGS;
       return P2J(fd->desc.s);
   }
   
   TCN_IMPLEMENT_CALL(jlong, Poll, data)(TCN_STDARGS, jlong pollfd)
   {
       apr_pollfd_t *fd = J2P(pollfd,  apr_pollfd_t *);
  -    UNREFERENCED_STDARGS;;
  +    UNREFERENCED_STDARGS;
       return P2J(fd->client_data);
   }
   
   TCN_IMPLEMENT_CALL(jint, Poll, events)(TCN_STDARGS, jlong pollfd)
   {
       apr_pollfd_t *fd = J2P(pollfd,  apr_pollfd_t *);
  -    UNREFERENCED_STDARGS;;
  +    UNREFERENCED_STDARGS;
       return (jint)fd->rtnevents;
   }
  +
  +TCN_IMPLEMENT_CALL(void, Poll, setTtl)(TCN_STDARGS, jlong pollset,
  +                                       jlong ttl)
  +{
  +    tcn_pollset_t *p = J2P(pollset,  tcn_pollset_t *);
  +    UNREFERENCED_STDARGS;
  +    p->max_ttl = J2T(ttl);
  +}
  +
  +TCN_IMPLEMENT_CALL(jlong, Poll, getTtl)(TCN_STDARGS, jlong pollset)
  +{
  +    tcn_pollset_t *p = J2P(pollset,  tcn_pollset_t *);
  +    UNREFERENCED_STDARGS;
  +    return (jlong)p->max_ttl;
  +}
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message