2 //=============================================================================
6 * This program implements a Web crawler that can be configured to
7 * apply various strategies to URLs that it visits.
9 * @author Doug Schmidt <d.schmidt@vanderbilt.edu>
11 //=============================================================================
14 #include "ace/OS_main.h"
15 #include "ace/Signal.h"
16 #include "Web_Crawler.h"
20 void sig_handler (int)
23 ACE_TEXT ("aborting!\n")));
28 ACE_TMAIN (int argc
, ACE_TCHAR
*argv
[])
30 ACE_Sig_Action
sa ((ACE_SignalHandler
) sig_handler
, SIGFPE
);
33 if (crawler
.open (argc
, argv
) == -1)
35 else if (crawler
.run () == -1)