Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / examples / Connection / blocking / test_spipe_acceptor.cpp
blob1d3d2af5ebeac909fe9ae5f763bf04c3722a07ed
1 // ACE_SPIPE Server.
3 #include "SPIPE-acceptor.h"
6 #if defined (ACE_HAS_WIN32_OVERLAPPED_IO) || defined (ACE_HAS_AIO_CALLS)
8 int
9 ACE_TMAIN (int argc, ACE_TCHAR *argv[])
11 // Perform Service_Config initializations
12 ACE_Service_Config daemon (argv[0]);
14 IPC_Server peer_acceptor;
16 if (peer_acceptor.init (argc, argv) == -1)
17 ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("%p\n"), ACE_TEXT ("init")), -1);
19 return peer_acceptor.svc ();
22 #else
24 int
25 ACE_TMAIN (int, ACE_TCHAR *[])
27 ACE_DEBUG ((LM_INFO,
28 ACE_TEXT ("Asynchronous IO is unsupported.\n")));
30 return 0;
33 #endif