public class Root extends Loader {
public static String root = System.getProperty("jinetd.root", null);
+
private final Host host;
private final Watched port;
+ private static final ThreadPool tp = new ThreadPool(10, 100);
+
public Root(String path) {
super(path);
host = new Host(path + File.separatorChar + "host", null);
try {
return Port.newPort(this.path + File.separatorChar + part,
ipaddr == null ? null : InetAddress.getByName(ipaddr),
- portnum.equals("*") ? 0 : Integer.parseInt(portnum));
+ portnum.equals("*") ? 0 : Integer.parseInt(portnum),
+ tp);
} catch (UnknownHostException e) { Log.warn(this, "can't resolve host for port directory: " + part);
} catch (NumberFormatException e) { Log.warn(this, "invalid port directory: " + part);
} catch (Exception e) { Log.warn(this, "error instantiating Port: " + part);