From 8825d290d8873c6ee96e27dcba1f1c8bf59d2236 Mon Sep 17 00:00:00 2001 From: schmidt Date: Mon, 18 Nov 1996 03:56:19 +0000 Subject: ywhoopie!! More new stuff, more things will break!! I have no idea about this file. Heck, I am not even Doug! --- tests/CPP_Test.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'tests/CPP_Test.cpp') diff --git a/tests/CPP_Test.cpp b/tests/CPP_Test.cpp index 79d9c112f03..41c21f23cd7 100644 --- a/tests/CPP_Test.cpp +++ b/tests/CPP_Test.cpp @@ -137,15 +137,16 @@ server (void *) for (;;) { char buf[BUFSIZ]; - int result = 0; char t = 'a'; handle_set.reset (); handle_set.set_bit (peer_acceptor.get_handle ()); - if ((result = ACE_OS::select (int (peer_acceptor.get_handle ()) + 1, - handle_set, - 0, 0, &tv)) == -1) + int result = ACE_OS::select (int (peer_acceptor.get_handle ()) + 1, + handle_set, + 0, 0, &tv); + + if (result == -1) ACE_ERROR ((LM_ERROR, "%p\n", "select")); else if (result == 0) { @@ -154,7 +155,7 @@ server (void *) } // Create a new ACE_SOCK_Stream endpoint (note automatic restart - // if errno == EINTR). + // if errno == EINTR). while ((result = peer_acceptor.accept (new_stream, &cli_addr)) != -1) { @@ -196,7 +197,7 @@ server (void *) if (errno == EWOULDBLOCK) ACE_DEBUG ((LM_DEBUG, "no input available, going back to reading\n")); else - ACE_ERROR ((LM_ERROR, "%p\n", "ACE::write")); + ACE_ERROR ((LM_ERROR, "%p\n", "recv_n")); } if (new_stream.send_n ("", 1) != 1) @@ -213,7 +214,7 @@ server (void *) if (errno == EWOULDBLOCK) ACE_DEBUG ((LM_DEBUG, "no connections available, going back to accepting\n")); else - ACE_ERROR ((LM_ERROR, "%p\n", "ACE::write")); + ACE_ERROR ((LM_ERROR, "%p\n", "accept")); } } return 0; -- cgit v1.2.1