summaryrefslogtreecommitdiff
path: root/tests/CPP_Test.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1996-11-18 03:56:19 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1996-11-18 03:56:19 +0000
commit8825d290d8873c6ee96e27dcba1f1c8bf59d2236 (patch)
treef8913a7ba038ec752e3d98e49b18950a374a85a9 /tests/CPP_Test.cpp
parente1b089abb1df9b1c7a5f6eabf1100b6c21ec1fe8 (diff)
downloadATCD-8825d290d8873c6ee96e27dcba1f1c8bf59d2236.tar.gz
ywhoopie!!
More new stuff, more things will break!! I have no idea about this file. Heck, I am not even Doug!
Diffstat (limited to 'tests/CPP_Test.cpp')
-rw-r--r--tests/CPP_Test.cpp15
1 files changed, 8 insertions, 7 deletions
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;