DTND::main(...)
{
...
DTNServer* dtnserver = new...
APIServer* apiserver = new...
dtnserver->init();
...
dtnserver->parse_conf_file(conf_file_, conf_file_set_)
...
dtnserver->start();
}
init_command() inits all possible commands which can be used to execute commands in config file.
DTNServer::init()
{
init_command();
init_component();
}
Parseconffile uses the created tcl commands to execute commands in conf file.