Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / examples / Web_Crawler / main.cpp
blob832548aba8ae4dbb5f58ac05f0e9bac40660ad54
2 //=============================================================================
3 /**
4 * @file main.cpp
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"
17 #include "Options.h"
20 void sig_handler (int)
22 ACE_DEBUG ((LM_DEBUG,
23 ACE_TEXT ("aborting!\n")));
24 ACE_OS::abort ();
27 int
28 ACE_TMAIN (int argc, ACE_TCHAR *argv[])
30 ACE_Sig_Action sa ((ACE_SignalHandler) sig_handler, SIGFPE);
31 Web_Crawler crawler;
33 if (crawler.open (argc, argv) == -1)
34 return 1;
35 else if (crawler.run () == -1)
36 return 1;
37 else
38 return 0;