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

2010-10-23 Thread Francesc Oller
for this code that ptime can be made negative. apr_pollset_poll never blocks! As a short workaround I commented: /*else if (ptime < 0) ptime = 0;*/ I'm waiting for Mladen Turk to say something about this. Best regards, Francesc Oller > > > Regards,

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 =

Re: org.apache.tomcat.jni programming question

2010-10-20 Thread Francesc Oller
Ooopps, yes, I forgot it. Thanks, francesc El dc 20 de 10 de 2010 a les 06:50 +0200, en/na Mladen Turk va escriure: > On 10/20/2010 01:21 AM, Francesc Oller wrote: > > Please what I am doing wrong? > > > >Socket.bind(s, addr); > > > > You need to tell the

org.apache.tomcat.jni programming question

2010-10-19 Thread Francesc Oller
Please what I am doing wrong? import org.apache.tomcat.jni.*; import java.util.*; public class ExampleAPR { public static void main(String[] args) { try { // Initialize APR library Library.initialize(null); // Create pool long pool = Pool.create(0);