summaryrefslogtreecommitdiff
path: root/docs/tutorials/005
diff options
context:
space:
mode:
Diffstat (limited to 'docs/tutorials/005')
-rw-r--r--docs/tutorials/005/client_handler.cpp10
-rw-r--r--docs/tutorials/005/client_handler.h2
-rw-r--r--docs/tutorials/005/combine.shar8
-rw-r--r--docs/tutorials/005/page01.html1
-rw-r--r--docs/tutorials/005/page02.html7
-rw-r--r--docs/tutorials/005/page03.html1
-rw-r--r--docs/tutorials/005/page04.html3
-rw-r--r--docs/tutorials/005/page05.html11
-rw-r--r--docs/tutorials/005/page06.html9
-rw-r--r--docs/tutorials/005/page07.html1
-rw-r--r--docs/tutorials/005/page08.html1
-rw-r--r--docs/tutorials/005/server.cpp4
12 files changed, 33 insertions, 25 deletions
diff --git a/docs/tutorials/005/client_handler.cpp b/docs/tutorials/005/client_handler.cpp
index 8466992b6a0..05ed4055a98 100644
--- a/docs/tutorials/005/client_handler.cpp
+++ b/docs/tutorials/005/client_handler.cpp
@@ -41,7 +41,7 @@ Client_Handler::~Client_Handler (void)
should return int so that it can tell the caller there was a
problem. Even as void you could at least throw an exception which
you would never want to do in a destructor. */
-void
+void
Client_Handler::destroy (void)
{
/* Tell the reactor to forget all about us. Notice that we use the
@@ -62,7 +62,7 @@ Client_Handler::destroy (void)
Client_Acceptor when a new client connection has been accepted.
The Client_Acceptor instance pointer is cast to a void* and given
to us here. We'll use that to avoid some global data... */
-int
+int
Client_Handler::open (void *_acceptor)
{
/* Convert the void* to a Client_Acceptor*. You should probably use
@@ -132,7 +132,7 @@ Client_Handler::open (void *_acceptor)
As I mentioned, the _handle parameter isn't useful to us but it
narrows the list of methods the reactor has to worry about and the
list of possible virtual functions we would have to override. */
-int
+int
Client_Handler::handle_input (ACE_HANDLE handle)
{
/* Some compilers don't like it when you fail to use a parameter.
@@ -158,7 +158,7 @@ Client_Handler::handle_input (ACE_HANDLE handle)
framework will take care of removing us (due to the -1), so we
don't need to use the destroy() method. Instead, we just delete
ourselves directly. */
-int
+int
Client_Handler::handle_close (ACE_HANDLE handle,
ACE_Reactor_Mask mask)
{
@@ -176,7 +176,7 @@ Client_Handler::handle_close (ACE_HANDLE handle,
appliation, you will probably have a bit more in main() to deal
with command line options but after that point, all of the action
takes place here. */
-int
+int
Client_Handler::process (char *rdbuf,
int rdbuf_len)
{
diff --git a/docs/tutorials/005/client_handler.h b/docs/tutorials/005/client_handler.h
index 4a579110a6b..03d3b1a8e10 100644
--- a/docs/tutorials/005/client_handler.h
+++ b/docs/tutorials/005/client_handler.h
@@ -65,7 +65,7 @@ public:
side-effect, the reactor will also invoke remove_handler() for the
object on the mask that caused the -1 return. This means that we
don't have to do that ourselves! */
- int handle_close (ACE_HANDLE handle,
+ int handle_close (ACE_HANDLE handle,
ACE_Reactor_Mask mask);
protected:
diff --git a/docs/tutorials/005/combine.shar b/docs/tutorials/005/combine.shar
index 28175d7785e..fd84e424b0c 100644
--- a/docs/tutorials/005/combine.shar
+++ b/docs/tutorials/005/combine.shar
@@ -3,8 +3,8 @@
# To extract the files from this archive, save it to some FILE, remove
# everything before the `!/bin/sh' line above, then type `sh FILE'.
#
-# Made on 1999-01-24 14:30 EST by <jcej@chiroptera.tragus.org>.
-# Source directory was `/var/home/jcej/projects/ACE_wrappers/docs/tutorials/005'.
+# Made on 1999-09-21 22:49 EDT by <jcej@chiroptera.tragus.org>.
+# Source directory was `/home/jcej/projects/ACE_wrappers/docs/tutorials/005'.
#
# Existing files will *not* be overwritten unless `-c' is specified.
#
@@ -67,7 +67,7 @@ else
fi
rm -f 1231235999 $$.touch
#
-if mkdir _sh22890; then
+if mkdir _sh04765; then
$echo 'x -' 'creating lock directory'
else
$echo 'failed to create lock directory'
@@ -419,5 +419,5 @@ SHAR_EOF
$echo 'page08.pre:' 'original size' '715,' 'current size' "$shar_count!"
fi
fi
-rm -fr _sh22890
+rm -fr _sh04765
exit 0
diff --git a/docs/tutorials/005/page01.html b/docs/tutorials/005/page01.html
index 90a5da1e1f4..8f465378ea0 100644
--- a/docs/tutorials/005/page01.html
+++ b/docs/tutorials/005/page01.html
@@ -1,3 +1,4 @@
+<!-- $Id$ -->
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
diff --git a/docs/tutorials/005/page02.html b/docs/tutorials/005/page02.html
index 2a3e4b143de..8cc6ec849cc 100644
--- a/docs/tutorials/005/page02.html
+++ b/docs/tutorials/005/page02.html
@@ -1,3 +1,4 @@
+<!-- $Id$ -->
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
@@ -25,7 +26,7 @@ This tutorial is a re-cap of the client-server hookup tutorial with much
process() which does the task of reading in data from the client).
<P>
We again enroll the services of the ACE_Reactor to handle events. Everything
-occurs in a single thread.
+occurs in a single thread.
<P>
This tutorial is a stepping stone towards a mutithreaded server model.
</ul>
@@ -67,7 +68,7 @@ static const u_short PORT = ACE_DEFAULT_SERVER_PORT;
though we're not going to use the parameters, we still have to
specify them. */</font>
-int
+int
main (int argc, char *argv[])
{
<font color=red>/* In our earlier servers, we used a global pointer to get to the
@@ -132,7 +133,7 @@ main (int argc, char *argv[])
ACE_DEBUG ((LM_DEBUG,
"<font color=green>(%P|%t) shutting down server daemon\n</font>"));
-
+
return 0;
}
diff --git a/docs/tutorials/005/page03.html b/docs/tutorials/005/page03.html
index c190dfe9839..62982e8bc33 100644
--- a/docs/tutorials/005/page03.html
+++ b/docs/tutorials/005/page03.html
@@ -1,3 +1,4 @@
+<!-- $Id$ -->
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
diff --git a/docs/tutorials/005/page04.html b/docs/tutorials/005/page04.html
index fb670bbe7a3..c349fd2d118 100644
--- a/docs/tutorials/005/page04.html
+++ b/docs/tutorials/005/page04.html
@@ -1,3 +1,4 @@
+<!-- $Id$ -->
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
@@ -95,7 +96,7 @@ public:
side-effect, the reactor will also invoke remove_handler() for the
object on the mask that caused the -1 return. This means that we
don't have to do that ourselves! */</font>
- int handle_close (ACE_HANDLE handle,
+ int handle_close (ACE_HANDLE handle,
ACE_Reactor_Mask mask);
protected:
diff --git a/docs/tutorials/005/page05.html b/docs/tutorials/005/page05.html
index 388a421eff6..d354405aa3c 100644
--- a/docs/tutorials/005/page05.html
+++ b/docs/tutorials/005/page05.html
@@ -1,3 +1,4 @@
+<!-- $Id$ -->
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
@@ -66,7 +67,7 @@ rest of the application all together.
should return int so that it can tell the caller there was a
problem. Even as void you could at least throw an exception which
you would never want to do in a destructor. */</font>
-void
+void
<font color=#008888>Client_Handler::destroy</font> (void)
{
<font color=red>/* Tell the reactor to forget all about us. Notice that we use the
@@ -87,7 +88,7 @@ void
Client_Acceptor when a new client connection has been accepted.
The Client_Acceptor instance pointer is cast to a void* and given
to us here. We'll use that to avoid some global data... */</font>
-int
+int
<font color=#008888>Client_Handler::open</font> (void *_acceptor)
{
<font color=red>/* Convert the void* to a Client_Acceptor*. You should probably use
@@ -157,7 +158,7 @@ int
As I mentioned, the _handle parameter isn't useful to us but it
narrows the list of methods the reactor has to worry about and the
list of possible virtual functions we would have to override. */</font>
-int
+int
<font color=#008888>Client_Handler::handle_input</font> (ACE_HANDLE handle)
{
<font color=red>/* Some compilers don't like it when you fail to use a parameter.
@@ -183,7 +184,7 @@ int
framework will take care of removing us (due to the -1), so we
don't need to use the destroy() method. Instead, we just delete
ourselves directly. */</font>
-int
+int
<font color=#008888>Client_Handler::handle_close</font> (ACE_HANDLE handle,
ACE_Reactor_Mask mask)
{
@@ -201,7 +202,7 @@ int
appliation, you will probably have a bit more in main() to deal
with command line options but after that point, all of the action
takes place here. */</font>
-int
+int
<font color=#008888>Client_Handler::process</font> (char *rdbuf,
int rdbuf_len)
{
diff --git a/docs/tutorials/005/page06.html b/docs/tutorials/005/page06.html
index 9fbe678e023..4f390a4ceb2 100644
--- a/docs/tutorials/005/page06.html
+++ b/docs/tutorials/005/page06.html
@@ -1,3 +1,4 @@
+<!-- $Id$ -->
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
@@ -41,7 +42,7 @@ BIN = server
# Few applications will have a single source file. We use the FILES
# macro to build up a list of additional files to compile. Notice
# that we leave off the extension just as with BIN
-FILES =
+FILES =
FILES += client_handler
# The BUILD macro is used by the ACE makefiles. Basically, it tells
@@ -107,7 +108,7 @@ Indent : #
<font color=blue># include</font> just like the makefile components above.
#
# NOTE: The 'depend' target expects to have GCC available.
- # You can do the same thing with other compilers but the ACE
+ # You can do the same thing with other compilers but the ACE
# makefiles and utilities are only wired up to work with GCC.
Depend : depend
perl ../fix.Makefile
@@ -122,13 +123,13 @@ HTML : #
SHAR : #
[ ! -f combine.shar ] || exit 1
- shar -T hdr bodies *.pre > combine.shar && rm -f hdr bodies *.pre *.pst
+ shar -T hdr bodies *.pre > combine.shar && $(RM) hdr bodies *.pre *.pst
UNSHAR : #
sh combine.shar
CLEAN : realclean
- rm -f hdr bodies *.pre *.pst .depend
+ $(RM) hdr bodies *.pre *.pst .depend
#----------------------------------------------------------------------------
# Dependencies
diff --git a/docs/tutorials/005/page07.html b/docs/tutorials/005/page07.html
index 3a7433dbd34..84768e05b96 100644
--- a/docs/tutorials/005/page07.html
+++ b/docs/tutorials/005/page07.html
@@ -1,3 +1,4 @@
+<!-- $Id$ -->
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
diff --git a/docs/tutorials/005/page08.html b/docs/tutorials/005/page08.html
index db7acc3f76b..07ba9a41ed9 100644
--- a/docs/tutorials/005/page08.html
+++ b/docs/tutorials/005/page08.html
@@ -1,3 +1,4 @@
+<!-- $Id$ -->
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
diff --git a/docs/tutorials/005/server.cpp b/docs/tutorials/005/server.cpp
index 00f2f6778ae..186098679fb 100644
--- a/docs/tutorials/005/server.cpp
+++ b/docs/tutorials/005/server.cpp
@@ -33,7 +33,7 @@ static const u_short PORT = ACE_DEFAULT_SERVER_PORT;
though we're not going to use the parameters, we still have to
specify them. */
-int
+int
main (int argc, char *argv[])
{
/* In our earlier servers, we used a global pointer to get to the
@@ -98,7 +98,7 @@ main (int argc, char *argv[])
ACE_DEBUG ((LM_DEBUG,
"(%P|%t) shutting down server daemon\n"));
-
+
return 0;
}