00001
00002
00003
00004
00005
00006
00007
00008
00009
00011
00012
00013
00014
00015
00016 #include "ace/OS_main.h"
00017 #include "ace/Service_Config.h"
00018 #include "ace/Reactor.h"
00019 #include "ace/ACE.h"
00020 #include "ace/Auto_Ptr.h"
00021 #include "ace/OS_NS_string.h"
00022 #include "ace/OS_NS_stdio.h"
00023 #include <iostream>
00024 #include "ace/Thread_Manager.h"
00025
00026 using namespace std;
00027
00028
00029 int ACE_TMAIN (int argc, ACE_TCHAR *argv[]) {
00030 ACE::debug('y');
00031
00032 ACE_LOG_MSG->open
00033 (argv[0], ACE_Log_Msg::SYSLOG, ACE_TEXT (argv[0]));
00034 ACE_LOG_MSG->set_flags (ACE_Log_Msg::STDERR);
00035
00036 ACE_STATIC_SVC_REGISTER (ACE_Service_Manager);
00037
00038 ACE_Service_Config::open
00039 (argc, argv, ACE_TEXT (argv[0]), 0);
00040
00041 ACE_DEBUG((LM_DEBUG, "main thread start listening for incoming conn...\n"));
00042
00043 ACE_Reactor::instance ()->run_reactor_event_loop ();
00044 return 0;
00045 }