summaryrefslogtreecommitdiff
path: root/ACE/examples/Reactor
diff options
context:
space:
mode:
authorAbdullah Sowayan <sowayan@users.noreply.github.com>2007-08-03 01:50:03 +0000
committerAbdullah Sowayan <sowayan@users.noreply.github.com>2007-08-03 01:50:03 +0000
commit585a2bc55eb73aea10d1369dfd2b08d64bb1f157 (patch)
treec2a7f4d61ed52d4e5ec284007400209057312813 /ACE/examples/Reactor
parente9990af875db22c6f789cd475ffeb1bbe959e666 (diff)
downloadATCD-585a2bc55eb73aea10d1369dfd2b08d64bb1f157.tar.gz
Fri Aug 3 01:50:05 UTC 2007 Abdullah Sowayan <abdullah.sowayan@lmco.com>
Diffstat (limited to 'ACE/examples/Reactor')
-rw-r--r--ACE/examples/Reactor/TP_Reactor/client.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ACE/examples/Reactor/TP_Reactor/client.cpp b/ACE/examples/Reactor/TP_Reactor/client.cpp
index 509f2e9c457..c7ef4f2e431 100644
--- a/ACE/examples/Reactor/TP_Reactor/client.cpp
+++ b/ACE/examples/Reactor/TP_Reactor/client.cpp
@@ -89,14 +89,14 @@ int ACE_TMAIN(int argc, ACE_TCHAR **argv) {
if (stream.send_n(&size, sizeof(size), &connTimeout) != sizeof(size)) {
ACE_ERROR((LM_ERROR, ACE_TEXT("%N:%l: Failed to send ")
ACE_TEXT ("request. (errno = %i: %m)\n"), errno));
- throw(1);
+ throw 1;
}
// receive the answer
if (stream.recv_n(&answer, sizeof(answer), &connTimeout) != 1) {
ACE_ERROR((LM_ERROR, ACE_TEXT("%N: %l: Failed to receive ")
ACE_TEXT ("1st response. (errno = %i: %m)\n"), errno));
- throw(1);
+ throw 1;
}
// server answer, 'K" indicates a positive answer
@@ -106,14 +106,14 @@ int ACE_TMAIN(int argc, ACE_TCHAR **argv) {
if (stream.send_n(someData, size, &connTimeout) != size) {
ACE_ERROR((LM_ERROR, ACE_TEXT("%N:%l: Failed to send ")
ACE_TEXT ("someData. (errno = %i: %m)\n"), errno));
- throw(1);
+ throw 1;
}
// get an answer
if (stream.recv_n(&answer, sizeof(answer), &connTimeout) != 1) {
ACE_ERROR((LM_ERROR, ACE_TEXT("%N: %l: Failed to receive ")
ACE_TEXT ("2nd response. (errno = %i: %m)\n"), errno));
- throw(1);
+ throw 1;
}
// check the answer