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 socket to listen after
binding it to the
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);
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 socket to listen after
binding it to the address. eg:
Socket.listen(s, 10);
long ns = Socket.accept(s);
Regards
--
^TM