diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-03-05 17:14:45 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-03-05 17:14:45 +0000 |
commit | 58033491c6d0bac82315c1fdb1ec9b39be58093f (patch) | |
tree | c69c3aa67ec66758066e959bd0d533ea336ec236 /apps/Gateway/Peer/peerd.cpp | |
parent | 2efc882384a34f61311a24fc641d1b5fd5776356 (diff) | |
download | ATCD-TAO-1_5.tar.gz |
This commit was manufactured by cvs2svn to create tag 'TAO-1_5'.TAO-1_5
Diffstat (limited to 'apps/Gateway/Peer/peerd.cpp')
-rw-r--r-- | apps/Gateway/Peer/peerd.cpp | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/apps/Gateway/Peer/peerd.cpp b/apps/Gateway/Peer/peerd.cpp deleted file mode 100644 index f4abd599322..00000000000 --- a/apps/Gateway/Peer/peerd.cpp +++ /dev/null @@ -1,63 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// gateway -// -// = FILENAME -// peerd.h -// -// = DESCRIPTION -// Driver for the peer daemon (peerd). Note that this is -// completely generic code due to the Service Configurator -// framework! -// -// = AUTHOR -// Douglas C. Schmidt -// -// ============================================================================ - -#include "ace/OS_NS_unistd.h" -#include "Peer.h" - -ACE_RCSID(Peer, peerd, "$Id$") - -int -ACE_TMAIN (int argc, ACE_TCHAR *argv[]) -{ - if (ACE_OS::access (ACE_DEFAULT_SVC_CONF, F_OK) != 0) - { - // Use static linking. - ACE_Service_Object_Ptr sp = ACE_SVC_INVOKE (Peer_Factory); - - if (sp->init (argc - 1, argv + 1) == -1) - ACE_ERROR_RETURN ((LM_ERROR, - ACE_TEXT ("%p\n"), - ACE_TEXT ("init")), - 1); - - // Run forever, performing the configured services until we are - // shut down by a SIGINT/SIGQUIT signal. - - ACE_Reactor::instance ()->run_reactor_event_loop (); - - // Destructor of <ACE_Service_Object_Ptr> automagically call - // <fini>. - } - else - { - if (ACE_Service_Config::open (argc, argv) == -1) - ACE_ERROR_RETURN ((LM_ERROR, - ACE_TEXT ("%p\n"), - ACE_TEXT ("open")), - 1); - else // Use dynamic linking. - - // Run forever, performing the configured services until we - // are shut down by a signal (e.g., SIGINT or SIGQUIT). - - ACE_Reactor::instance ()->run_reactor_event_loop (); - } - return 0; -} |