diff options
author | Adam Mitz <mitza@ociweb.com> | 2015-03-03 14:18:35 -0600 |
---|---|---|
committer | Adam Mitz <mitza@ociweb.com> | 2015-03-03 14:18:35 -0600 |
commit | 77828ec66f2eb7b768b16fe6ff3ea041515d2f0a (patch) | |
tree | 7e117c7e4461ffb8f9b299add77d5e6eb3f3cc32 /ACE | |
parent | 06588785a462dd287c7d46be319ec224cead1a12 (diff) | |
download | ATCD-77828ec66f2eb7b768b16fe6ff3ea041515d2f0a.tar.gz |
Removed commented-out block and changed %s to %C
Diffstat (limited to 'ACE')
-rw-r--r-- | ACE/tests/Dev_Poll_Reactor_Echo_Test.cpp | 69 |
1 files changed, 2 insertions, 67 deletions
diff --git a/ACE/tests/Dev_Poll_Reactor_Echo_Test.cpp b/ACE/tests/Dev_Poll_Reactor_Echo_Test.cpp index f56be0a16e1..04c169234a8 100644 --- a/ACE/tests/Dev_Poll_Reactor_Echo_Test.cpp +++ b/ACE/tests/Dev_Poll_Reactor_Echo_Test.cpp @@ -491,71 +491,6 @@ disable_signal (int sigmin, int sigmax) // ---------------------------------------------------- -// ACE_THR_FUNC_RETURN -// server_worker (void *p) -// { -// disable_signal (SIGPIPE, SIGPIPE); - -// const unsigned short port = *(static_cast<unsigned short *> (p)); - -// ACE_INET_Addr addr; - -// if (addr.set (port, INADDR_LOOPBACK) != 0) -// { -// ACE_ERROR ((LM_ERROR, -// ACE_TEXT ("(%t) %p\n"), -// ACE_TEXT ("server_worker - ACE_INET_Addr::set"))); - -// return (void *) -1; -// } - -// ACE_Dev_Poll_Reactor dp_reactor; -// dp_reactor.restart (1); // Restart on EINTR -// ACE_Reactor reactor (&dp_reactor); - -// TestAcceptor server; - -// int flags = 0; -// ACE_SET_BITS (flags, ACE_NONBLOCK); // Enable non-blocking in the -// // Svc_Handlers. - -// if (server.open (addr, &reactor, flags) != 0) -// { -// ACE_ERROR ((LM_ERROR, -// ACE_TEXT ("(%t) %p\n"), -// ACE_TEXT ("Unable to open server service handler"))); - -// return (void *) -1; -// } - -// if (reactor.run_reactor_event_loop () != 0) -// { -// ACE_ERROR ((LM_ERROR, -// ACE_TEXT ("(%t) %p\n"), -// ACE_TEXT ("Error when running server ") -// ACE_TEXT ("reactor event loop"))); - -// return (void *) -1; -// } - -// ACE_DEBUG ((LM_INFO, -// ACE_TEXT ("(%t) Reactor event loop finished ") -// ACE_TEXT ("successfully.\n"))); - -// return 0; -// } - -// ---------------------------------------------------- - -// struct server_arg -// { -// unsigned short port; - -// ACE_Condition<ACE_SYNCH_MUTEX> * cv; -// }; - -// ---------------------------------------------------- - int run_main (int, ACE_TCHAR *[]) { @@ -613,8 +548,8 @@ run_main (int, ACE_TCHAR *[]) ACE_TEXT ("reactor event loop")), -1); - ACE_DEBUG((LM_DEBUG, "sent: %s\n", client_handler->sent.c_str ())); - ACE_DEBUG((LM_DEBUG, "received: %s\n", client_handler->received.c_str ())); + ACE_DEBUG((LM_DEBUG, "sent: %C\n", client_handler->sent.c_str ())); + ACE_DEBUG((LM_DEBUG, "received: %C\n", client_handler->received.c_str ())); ACE_TEST_ASSERT (client_handler->sent == client_handler->received); |