12 #define CFG_FILE "./sip_router.cfg"
15 /* debuging function */
17 void receive_stdin_loop()
24 len=fread(buf,1,BSIZE,stdin);
26 receive_msg(buf, len);
27 printf("-------------------------\n");
33 int main(int argc, char** argv)
41 /* process command line (get port no, cfg. file path etc) */
44 /* load config file or die */
45 cfg_stream=fopen (cfg_file, "r");
47 DPrint("ERROR: could not load config file: %s\n", strerror(errno));
51 if (cfg_parse_stream(cfg_stream)!=0){
52 DPrint("ERROR: config parser failure\n");
61 /* start/init other processes/threads ? */