summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-05-20 14:24:28 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-05-20 14:24:28 +0000
commit35ced716123281bc66f8a17c17483e4c4a2e5894 (patch)
tree47858f2137306fc0bc3b4f6bc73d7ff83dbc13a2 /examples
parent39a1aaa9bf2410b30f8fe68ea847a6f7246a4b10 (diff)
downloadATCD-35ced716123281bc66f8a17c17483e4c4a2e5894.tar.gz
*** empty log message ***
Diffstat (limited to 'examples')
-rw-r--r--examples/Reactor/Proactor/test_proactor.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/examples/Reactor/Proactor/test_proactor.cpp b/examples/Reactor/Proactor/test_proactor.cpp
index d70baddd91b..75fb4a1f1c1 100644
--- a/examples/Reactor/Proactor/test_proactor.cpp
+++ b/examples/Reactor/Proactor/test_proactor.cpp
@@ -129,7 +129,7 @@ Receiver::open (ACE_HANDLE handle,
return;
}
- // Print any initial data which came withthe AcceptEx call
+ // Print any initial data which came with the AcceptEx call
message_block.rd_ptr ()[message_block.length ()] = '\0';
ACE_DEBUG ((LM_DEBUG, "%s = %s\n", "Initial data", message_block.rd_ptr ()));
@@ -536,14 +536,12 @@ main (int argc, char *argv[])
1) == -1)
return -1;
}
- else
- {
- // If active side
- if (sender.open (host, port) == -1)
- return -1;
- }
+ // If active side
+ else if (sender.open (host, port) == -1)
+ return -1;
int error = 0;
+
while (!error && !done)
// dispatch events
error = ACE_Service_Config::proactor ()->handle_events ();