Re: org.apache.tomcat.jni.Poll programming question

2010-10-23 Thread Francesc Oller
El ds 23 de 10 de 2010 a les 03:17 +0400, en/na Konstantin Kolinko va escriure: From Poll.java of Tomcat trunk: * @param descriptors Array of signaled descriptors (output parameter) *The descriptor array must be two times the size of pollset. *and are

Re: org.apache.tomcat.jni.Poll programming question

2010-10-22 Thread Konstantin Kolinko
2010/10/21 Francesc Oller francesc.ol...@upc.edu: I cannot say that I throughly know this. Most part of the below answers is just from reading the sources: 1.- call Poll.poll fails with: Poll.poll: Unknown error 4294847295 From Poll.java of Tomcat trunk: * @param descriptors Array

org.apache.tomcat.jni.Poll programming question

2010-10-20 Thread Francesc Oller
Again, this code doesn't work: import org.apache.tomcat.jni.*; import java.util.*; public class ExampleAPR { public static void main(String[] args) { int err = 0; try { // Initialize APR library Library.initialize(null); // Create pool long pool