summaryrefslogtreecommitdiff
path: root/ACE/examples/IPC_SAP/SPIPE_SAP/NPServer.cpp
diff options
context:
space:
mode:
authorAbdullah Sowayan <sowayan@users.noreply.github.com>2008-06-16 16:57:12 +0000
committerAbdullah Sowayan <sowayan@users.noreply.github.com>2008-06-16 16:57:12 +0000
commit7ea3ed1ac16c01d9c52ed005113d059dc24d07af (patch)
treedfd4a24631aa25ed30db07a2a5adb23df086b1d9 /ACE/examples/IPC_SAP/SPIPE_SAP/NPServer.cpp
parentd34535e5f988ba2387ef762cb8477dc585109acc (diff)
downloadATCD-7ea3ed1ac16c01d9c52ed005113d059dc24d07af.tar.gz
Mon Jun 16 16:54:25 UTC 2008 Abdullah Sowayan <abdullah.sowayan@lmco.com>
Diffstat (limited to 'ACE/examples/IPC_SAP/SPIPE_SAP/NPServer.cpp')
-rw-r--r--ACE/examples/IPC_SAP/SPIPE_SAP/NPServer.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/ACE/examples/IPC_SAP/SPIPE_SAP/NPServer.cpp b/ACE/examples/IPC_SAP/SPIPE_SAP/NPServer.cpp
index 4055a2cc02d..2c5a4dfd7c5 100644
--- a/ACE/examples/IPC_SAP/SPIPE_SAP/NPServer.cpp
+++ b/ACE/examples/IPC_SAP/SPIPE_SAP/NPServer.cpp
@@ -37,7 +37,7 @@ ACE_TMAIN (int /* argc */, ACE_TCHAR * /* argv */ [])
// Accept a client connection.
if (acceptor.accept (new_stream, 0) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("%p\n"),
ACE_TEXT ("accept")),
1);
@@ -46,21 +46,21 @@ ACE_TMAIN (int /* argc */, ACE_TCHAR * /* argv */ [])
ACE_TEXT ("Accepted connection\n")));
while ((n = new_stream.recv (buf, sizeof buf)) > 0)
- {
+ {
ACE_OS::fprintf (stderr,
"%s\n",
buf);
- ACE_OS::write (ACE_STDOUT,
+ ACE_OS::write (ACE_STDOUT,
buf,
n);
- }
+ }
if (n == -1)
- {
- ACE_DEBUG ((LM_DEBUG,
+ {
+ ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("End of connection. Closing handle\n")));
- new_stream.close ();
- }
+ new_stream.close ();
+ }
}
ACE_NOTREACHED(return 0);