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 Sat, 05 Feb 2005 12:32:36 GMT
mturk       2005/02/05 04:32:36

  Modified:    jni/native/src poll.c
  Log:
  Add native methods for accessing apr_pollset_fd struct data.
  
  Revision  Changes    Path
  1.2       +21 -0     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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- poll.c	14 Jan 2005 13:47:58 -0000	1.1
  +++ poll.c	5 Feb 2005 12:32:36 -0000	1.2
  @@ -103,3 +103,24 @@
   
       return (jint)num;
   }
  +
  +TCN_IMPLEMENT_CALL(jlong, Poll, socket)(TCN_STDARGS, jlong pollfd)
  +{
  +    apr_pollfd_t *fd = J2P(pollfd,  apr_pollfd_t *);
  +    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;;
  +    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;;
  +    return (jint)fd->rtnevents;
  +}
  
  
  

---------------------------------------------------------------------
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