| In the example.c we could see following code:
........
CHAIN_FUNCTION(opt, receivehead, httrack_wrapper_receiveheader, NULL);
/* Then, launch the mirror */
ret = hts_main2(argc, argv, opt);
/* Wait for a key */
printf("\nPress ENTER key to exit\n");
scanf("%s",argv[1]);
/* Clear option state */
hts_free_opt(opt);
hts_uninit();
So when user hits some key, then application will terminate. So in my code I
am not waiting for some event and directly calling:
hts_free_opt(opt);
hts_uninit();
So question now is when to call hts_free_opt.
Also I want to know how to control the depth of crawling. Let say it should
crawl to depth of 3 only.
Thanks & regards,
Rajesh | |