mturk 2005/04/15 03:15:07
Modified: jni/java/org/apache/tomcat/jni Poll.java
Log:
Add setter and getter for poller time to live.
Revision Changes Path
1.6 +15 -1
jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni/Poll.java
Index: Poll.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni/Poll.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- Poll.java 14 Apr 2005 06:47:56 -0000 1.5
+++ Poll.java 15 Apr 2005 10:15:07 -0000 1.6
@@ -118,5 +118,19 @@
* @param polldesc The pollset decriptor to use
*/
public static native int events(long polldesc);
+
+ /**
+ * Set the socket time to live.
+ * @param pollset The pollset to use
+ * @param ttl Timeout in microseconds
+ */
+ public static native void setTtl(long pollset, long ttl);
+
+ /**
+ * Get the socket time to live.
+ * @param pollset The pollset to use
+ * @return Timeout in microseconds
+ */
+ public static native long getTtl(long pollset);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]