📄 ospfh_main.c
字号:
#include "ospfh.h"
#include "ospfh_patch.h"
void main()
{
struct thread thread;
struct thread_master *master;
struct ospf *ospf_top;
char * config_file; //path to the configuration file
config_file="ospf_config.txt";
/*Initiate master thread*/
master = thread_master_create ();
/* Initiate the ospf data structure */
ospf_top = ospfh_init(master);
ospf_read_config (config_file, ospf_top);
ospfh_init_continue(ospf_top);
// ospfh_feed_up_receive(ospf_top);
/* Fetch next active thread. */
while (thread_fetch (master, &thread))
thread_call (&thread);
exit(0);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -