// 1. prepare daemon
Properties props = new Properties();
InputStream is = TelnetServerCommand.class.getResourceAsStream("telnetd.properties");
props.load(is);
TelnetD daemon = TelnetD.createTelnetD(props);
// 2.start serving/accepting connections
daemon.start();
} catch (Exception ex) {
ex.printStackTrace();
System.exit(1);
}
}