summaryrefslogtreecommitdiff
path: root/docs/tutorials/015/page02.html
diff options
context:
space:
mode:
authorjcej <jcej@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-09-22 03:14:02 +0000
committerjcej <jcej@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-09-22 03:14:02 +0000
commit251cb77e8da6e2c956a6fe929e3e6a0b0c3397fa (patch)
tree4b2fe438c5cd19dad7e9527174220e7fcc9daa4b /docs/tutorials/015/page02.html
parent1273cca419871e8c04554dbf4b538f69453b3955 (diff)
downloadATCD-251cb77e8da6e2c956a6fe929e3e6a0b0c3397fa.tar.gz
*** empty log message ***
Diffstat (limited to 'docs/tutorials/015/page02.html')
-rw-r--r--docs/tutorials/015/page02.html11
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/tutorials/015/page02.html b/docs/tutorials/015/page02.html
index 4431fc4cf78..e27067b6ae1 100644
--- a/docs/tutorials/015/page02.html
+++ b/docs/tutorials/015/page02.html
@@ -1,3 +1,4 @@
+<!-- $Id$ -->
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
@@ -21,7 +22,7 @@ We'll take a look first at the client application. As usual, our goal
<font color=red>// $Id$</font>
-<font color=red>/* The Client object will implement the nasty details of connecting to
+<font color=red>/* The Client object will implement the nasty details of connecting to
communicating with the server
*/</font>
<font color=blue>#include</font> "<font color=green>Client_i.h</font>"
@@ -61,7 +62,7 @@ int main(int argc, char *argv[])
client.put( message );
ACE_Message_Block * response;
-
+
<font color=red>// get() takes an ACE_Message_Block pointer reference. We then</font>
<font color=red>// assume ownership of it and must release() when we're done.</font>
if( client.get( response ) == -1 )
@@ -70,14 +71,14 @@ int main(int argc, char *argv[])
break;
}
- ACE_DEBUG ((LM_INFO, "<font color=green>(%P|%t) The server's response: (%s)\n</font>",
+ ACE_DEBUG ((LM_INFO, "<font color=green>(%P|%t) The server's response: (%s)\n</font>",
response->rd_ptr()));
<font color=red>// Now that we're through with the response we have to</font>
<font color=red>// release() it to avoid memory leaks.</font>
response->release();
}
-
+
ACE_DEBUG ((LM_INFO, "<font color=green>(%P|%t) Shutting down the stream\n</font>" ));
<font color=red>// Before we exit, it's a good idea to properly close() the connection.</font>
@@ -85,7 +86,7 @@ int main(int argc, char *argv[])
{
ACE_ERROR_RETURN ((LM_ERROR, "<font color=green>%p\n</font>", "<font color=green><font color=#008888>Client::close</font>()</font>"), -1);
}
-
+
return(0);
}
</PRE>