diff options
Diffstat (limited to 'docs/tutorials')
28 files changed, 136 insertions, 41 deletions
diff --git a/docs/tutorials/001/Makefile b/docs/tutorials/001/Makefile index 66df5f9214c..448ca046d2a 100644 --- a/docs/tutorials/001/Makefile +++ b/docs/tutorials/001/Makefile @@ -65,6 +65,9 @@ SHAR : # UNSHAR : # sh combine.shar +CLEAN : realclean + rm -f hdr bodies *.pre *.pst + #---------------------------------------------------------------------------- # Dependencies #---------------------------------------------------------------------------- diff --git a/docs/tutorials/002/Makefile b/docs/tutorials/002/Makefile index d5fd68fe510..2800b3e66f4 100644 --- a/docs/tutorials/002/Makefile +++ b/docs/tutorials/002/Makefile @@ -40,6 +40,9 @@ SHAR : # UNSHAR : # sh combine.shar +CLEAN : realclean + rm -f hdr bodies *.pre *.pst + #---------------------------------------------------------------------------- # Dependencies #---------------------------------------------------------------------------- diff --git a/docs/tutorials/003/Makefile b/docs/tutorials/003/Makefile index e75b4b8d7a7..e9e9078e841 100644 --- a/docs/tutorials/003/Makefile +++ b/docs/tutorials/003/Makefile @@ -42,6 +42,9 @@ SHAR : # UNSHAR : # sh combine.shar +CLEAN : realclean + rm -f hdr bodies *.pre *.pst + #---------------------------------------------------------------------------- # Dependencies #---------------------------------------------------------------------------- diff --git a/docs/tutorials/004/Makefile b/docs/tutorials/004/Makefile index 0ab1d500aa7..b5efacdab2c 100644 --- a/docs/tutorials/004/Makefile +++ b/docs/tutorials/004/Makefile @@ -39,6 +39,9 @@ SHAR : # UNSHAR : # sh combine.shar +CLEAN : realclean + rm -f hdr bodies *.pre *.pst + #---------------------------------------------------------------------------- # Local targets #---------------------------------------------------------------------------- diff --git a/docs/tutorials/005/Makefile b/docs/tutorials/005/Makefile index 2494e510f9c..80ec50f81ca 100644 --- a/docs/tutorials/005/Makefile +++ b/docs/tutorials/005/Makefile @@ -104,6 +104,9 @@ SHAR : # UNSHAR : # sh combine.shar +CLEAN : realclean + rm -f hdr bodies *.pre *.pst + #---------------------------------------------------------------------------- # Dependencies #---------------------------------------------------------------------------- diff --git a/docs/tutorials/006/Makefile b/docs/tutorials/006/Makefile index 82143ac4792..a6794b89877 100644 --- a/docs/tutorials/006/Makefile +++ b/docs/tutorials/006/Makefile @@ -100,6 +100,9 @@ SHAR : # UNSHAR : # sh combine.shar +CLEAN : realclean + rm -f hdr bodies *.pre *.pst + #---------------------------------------------------------------------------- # Dependencies #---------------------------------------------------------------------------- diff --git a/docs/tutorials/007/Makefile b/docs/tutorials/007/Makefile index f9599da7063..e5a533c3e42 100644 --- a/docs/tutorials/007/Makefile +++ b/docs/tutorials/007/Makefile @@ -102,6 +102,9 @@ SHAR : # UNSHAR : # sh combine.shar +CLEAN : realclean + rm -f hdr bodies *.pre *.pst + #---------------------------------------------------------------------------- # Dependencies #---------------------------------------------------------------------------- diff --git a/docs/tutorials/008/Makefile b/docs/tutorials/008/Makefile index d2b191aac9d..41b49c4f01d 100644 --- a/docs/tutorials/008/Makefile +++ b/docs/tutorials/008/Makefile @@ -60,6 +60,9 @@ SHAR : # UNSHAR : # sh combine.shar +CLEAN : realclean + rm -f hdr bodies *.pre *.pst + #---------------------------------------------------------------------------- # Dependencies #---------------------------------------------------------------------------- diff --git a/docs/tutorials/009/Makefile b/docs/tutorials/009/Makefile index d2b191aac9d..41b49c4f01d 100644 --- a/docs/tutorials/009/Makefile +++ b/docs/tutorials/009/Makefile @@ -60,6 +60,9 @@ SHAR : # UNSHAR : # sh combine.shar +CLEAN : realclean + rm -f hdr bodies *.pre *.pst + #---------------------------------------------------------------------------- # Dependencies #---------------------------------------------------------------------------- diff --git a/docs/tutorials/010/Makefile b/docs/tutorials/010/Makefile index 3493d9486a1..858ad6d89f6 100644 --- a/docs/tutorials/010/Makefile +++ b/docs/tutorials/010/Makefile @@ -63,6 +63,9 @@ SHAR : # UNSHAR : # sh combine.shar +CLEAN : realclean + rm -f hdr bodies *.pre *.pst + #---------------------------------------------------------------------------- # Dependencies #---------------------------------------------------------------------------- diff --git a/docs/tutorials/011/Makefile b/docs/tutorials/011/Makefile index 3493d9486a1..858ad6d89f6 100644 --- a/docs/tutorials/011/Makefile +++ b/docs/tutorials/011/Makefile @@ -63,6 +63,9 @@ SHAR : # UNSHAR : # sh combine.shar +CLEAN : realclean + rm -f hdr bodies *.pre *.pst + #---------------------------------------------------------------------------- # Dependencies #---------------------------------------------------------------------------- diff --git a/docs/tutorials/012/Makefile b/docs/tutorials/012/Makefile index 3493d9486a1..858ad6d89f6 100644 --- a/docs/tutorials/012/Makefile +++ b/docs/tutorials/012/Makefile @@ -63,6 +63,9 @@ SHAR : # UNSHAR : # sh combine.shar +CLEAN : realclean + rm -f hdr bodies *.pre *.pst + #---------------------------------------------------------------------------- # Dependencies #---------------------------------------------------------------------------- diff --git a/docs/tutorials/013/Makefile b/docs/tutorials/013/Makefile index af3b091d67e..921d82a00c7 100644 --- a/docs/tutorials/013/Makefile +++ b/docs/tutorials/013/Makefile @@ -61,6 +61,9 @@ SHAR : # UNSHAR : # sh combine.shar +CLEAN : realclean + rm -f hdr bodies *.pre *.pst + .depend : # touch .depend diff --git a/docs/tutorials/014/Makefile b/docs/tutorials/014/Makefile index 165e7bb0039..622f70c077a 100644 --- a/docs/tutorials/014/Makefile +++ b/docs/tutorials/014/Makefile @@ -67,6 +67,9 @@ SHAR : # UNSHAR : # sh combine.shar +CLEAN : realclean + rm -f hdr bodies *.pre *.pst + #---------------------------------------------------------------------------- # Dependencies #---------------------------------------------------------------------------- diff --git a/docs/tutorials/015/Makefile b/docs/tutorials/015/Makefile index 60733fb4e87..b4348875db7 100644 --- a/docs/tutorials/015/Makefile +++ b/docs/tutorials/015/Makefile @@ -28,3 +28,6 @@ SHAR : # UNSHAR : # sh combine.shar + +CLEAN : realclean + rm -f hdr bodies *.pre *.pst diff --git a/docs/tutorials/015/Recv.cpp b/docs/tutorials/015/Recv.cpp index 626d6298290..246968ddbf4 100644 --- a/docs/tutorials/015/Recv.cpp +++ b/docs/tutorials/015/Recv.cpp @@ -50,6 +50,12 @@ int Recv::recv(ACE_Message_Block * message, ACE_Time_Value *timeout) end-of-string NULL character. Since the OS layers (at leas in Unix) will provide some buffering this isn't as bad as it may seem at first. + + The byte-at-a-time recv breaks horribly on Win32 where the + WFMO_Reactor is used. This is because the socket has been + placed into non-blocking mode and only the recv() of the + first byte will block. The solution is to use + ACE_Select_Reactor and I hope to implement that soon. */ do { diff --git a/docs/tutorials/015/Server_i.cpp b/docs/tutorials/015/Server_i.cpp index dedbcd720f6..5f8303f9919 100644 --- a/docs/tutorials/015/Server_i.cpp +++ b/docs/tutorials/015/Server_i.cpp @@ -42,13 +42,16 @@ int Server::run(void) { ACE_DEBUG ((LM_DEBUG, "(%P|%t) starting up server daemon\n")); - ACE_Time_Value timeout(2); - // Here's the basic event loop. I have a 2-second timeout on // the handle_events() so that we don't have to wait too long // when we set the finished_ flag. while (!finished_) { + // Some (all?) platforms return the "remaining time" in the + // timeout parameter. If we don't reset it each time, we + // will end up with a 100% CPU spin loop! + ACE_Time_Value timeout(2); + ACE_Reactor::instance()->handle_events (&timeout); } diff --git a/docs/tutorials/015/combine.shar b/docs/tutorials/015/combine.shar index 800c35231fd..522da61711a 100644 --- a/docs/tutorials/015/combine.shar +++ b/docs/tutorials/015/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 1998-10-22 19:58 EDT by <jcej@chiroptera.tragus.org>. -# Source directory was `/var/home/jcej/projects/ACE_wrappers/docs/tutorials/015'. +# Made on 1999-02-01 13:06 EST by <jcej@beta.mobsec.com>. +# Source directory was `/projects/home/jcej/projects/ACE_wrappers/docs/tutorials/015'. # # Existing files will *not* be overwritten unless `-c' is specified. # @@ -13,7 +13,7 @@ # ------ ---------- ------------------------------------------ # 414 -rw-rw-r-- hdr # 419 -rw-rw-r-- bodies -# 1183 -rw-rw-r-- page01.pre +# 1505 -rw-rw-r-- page01.pre # 194 -rw-rw-r-- page02.pre # 318 -rw-rw-r-- page03.pre # 178 -rw-rw-r-- page04.pre @@ -83,7 +83,7 @@ else fi rm -f 1231235999 $$.touch # -if mkdir _sh18487; then +if mkdir _sh22831; then $echo 'x -' 'creating lock directory' else $echo 'failed to create lock directory' @@ -110,7 +110,7 @@ X <P> <HR WIDTH="100%"> SHAR_EOF - $shar_touch -am 1019163798 'hdr' && + $shar_touch -am 1019173798 'hdr' && chmod 0664 'hdr' || $echo 'restore of' 'hdr' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ @@ -168,7 +168,7 @@ Compressor.cpp Crypt.h Crypt.cpp SHAR_EOF - $shar_touch -am 1022195498 'bodies' && + $shar_touch -am 1022205498 'bodies' && chmod 0664 'bodies' || $echo 'restore of' 'bodies' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ @@ -209,25 +209,32 @@ level code first and then go into the details of the protocol stream and it's helper objects. If the stream stuff in the application logic is confusing then just read on by and come back to it after the later discussions. -X +<P> +Disclaimer: +<br> +Several folks have reported problems with this tutorial on Win32. I +have the fixes in mind but may not get them in place until 2/8 or so. +What it amounts to is using the ACE_Select_Reactor for all platforms. +Win32 defaults to ACE_WFMO_Reactor and that seems to be causing some +or all of the problems. <P> <font size=-1>* Ok, I didn't really implement encryption and X compression objects. I'll leave that as a thought X exercise!</font> SHAR_EOF - $shar_touch -am 1019163798 'page01.pre' && + $shar_touch -am 0201130299 'page01.pre' && chmod 0664 'page01.pre' || $echo 'restore of' 'page01.pre' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'page01.pre:' 'MD5 check failed' -2a7a0fad3e88fcaa6b70cedbf873192f page01.pre +6fb7af94b2876cbac76a358ffc05c226 page01.pre SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'page01.pre'`" - test 1183 -eq "$shar_count" || - $echo 'page01.pre:' 'original size' '1183,' 'current size' "$shar_count!" + test 1505 -eq "$shar_count" || + $echo 'page01.pre:' 'original size' '1505,' 'current size' "$shar_count!" fi fi # ============= page02.pre ============== @@ -242,7 +249,7 @@ X delegate the tricky stuff to another object. X <HR> SHAR_EOF - $shar_touch -am 1019163798 'page02.pre' && + $shar_touch -am 1019173798 'page02.pre' && chmod 0664 'page02.pre' || $echo 'restore of' 'page02.pre' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ @@ -270,7 +277,7 @@ X Note the Protocol_Stream member that will take care of X converting and sending/receiving the data. <HR> SHAR_EOF - $shar_touch -am 1019163798 'page03.pre' && + $shar_touch -am 1019173798 'page03.pre' && chmod 0664 'page03.pre' || $echo 'restore of' 'page03.pre' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ @@ -296,7 +303,7 @@ X really does any work. The other methods simply delegate their X function to the Protocol_Stream. <HR> SHAR_EOF - $shar_touch -am 1019163798 'page04.pre' && + $shar_touch -am 1019173798 'page04.pre' && chmod 0664 'page04.pre' || $echo 'restore of' 'page04.pre' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ @@ -325,7 +332,7 @@ simplification. <HR> X SHAR_EOF - $shar_touch -am 1019163798 'page05.pre' && + $shar_touch -am 1019173798 'page05.pre' && chmod 0664 'page05.pre' || $echo 'restore of' 'page05.pre' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ @@ -356,7 +363,7 @@ only be one Server instance but since you can't provide a TCP/IP port, that's probably a valid assumption! <HR> SHAR_EOF - $shar_touch -am 1019163798 'page06.pre' && + $shar_touch -am 1019173798 'page06.pre' && chmod 0664 'page06.pre' || $echo 'restore of' 'page06.pre' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ @@ -385,7 +392,7 @@ application when you take this sort of approach. <HR> X SHAR_EOF - $shar_touch -am 1019163798 'page07.pre' && + $shar_touch -am 1019173798 'page07.pre' && chmod 0664 'page07.pre' || $echo 'restore of' 'page07.pre' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ @@ -417,7 +424,7 @@ collect data from the peer and pass it along to another object for processing. Again, keep it simple and delegate authority. <HR> SHAR_EOF - $shar_touch -am 1019163798 'page08.pre' && + $shar_touch -am 1019173798 'page08.pre' && chmod 0664 'page08.pre' || $echo 'restore of' 'page08.pre' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ @@ -450,7 +457,7 @@ Handler_Task::recv() where we'll process it as required by our application logic. <HR> SHAR_EOF - $shar_touch -am 1019163798 'page09.pre' && + $shar_touch -am 1019173798 'page09.pre' && chmod 0664 'page09.pre' || $echo 'restore of' 'page09.pre' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ @@ -494,7 +501,7 @@ going on here. <P><center><img src="stream.gif"></center></p> <HR> SHAR_EOF - $shar_touch -am 1019163798 'page10.pre' && + $shar_touch -am 1019173798 'page10.pre' && chmod 0664 'page10.pre' || $echo 'restore of' 'page10.pre' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ @@ -522,7 +529,7 @@ set of protocol objects that will manipulate the data. Our primary concern in this file is to get everything in the correct order! <HR> SHAR_EOF - $shar_touch -am 1019163798 'page11.pre' && + $shar_touch -am 1019173798 'page11.pre' && chmod 0664 'page11.pre' || $echo 'restore of' 'page11.pre' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ @@ -550,7 +557,7 @@ set of protocol objects that will manipulate the data. Our primary concern in this file is to get everything in the correct order! <HR> SHAR_EOF - $shar_touch -am 1019163798 'page12.pre' && + $shar_touch -am 1019173798 'page12.pre' && chmod 0664 'page12.pre' || $echo 'restore of' 'page12.pre' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ @@ -578,7 +585,7 @@ ACE_Task<> derivatives look very similar in the four basic methods and only need one or two additional to do any real work. <HR> SHAR_EOF - $shar_touch -am 1019163798 'page13.pre' && + $shar_touch -am 1019173798 'page13.pre' && chmod 0664 'page13.pre' || $echo 'restore of' 'page13.pre' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ @@ -610,7 +617,7 @@ interact if you're going to ensure a safe transit. By having a single object it's easier to coordinate and maintain the interaction. <HR> SHAR_EOF - $shar_touch -am 1019203498 'page14.pre' && + $shar_touch -am 1019213498 'page14.pre' && chmod 0664 'page14.pre' || $echo 'restore of' 'page14.pre' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ @@ -648,7 +655,7 @@ processes which typically work better with blocks of data instead of streams of data. <HR> SHAR_EOF - $shar_touch -am 1019163798 'page15.pre' && + $shar_touch -am 1019173798 'page15.pre' && chmod 0664 'page15.pre' || $echo 'restore of' 'page15.pre' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ @@ -683,7 +690,7 @@ earlier, that data will eventually show up either in the <i>reader</i> message queue. <HR> SHAR_EOF - $shar_touch -am 1019163798 'page16.pre' && + $shar_touch -am 1019173798 'page16.pre' && chmod 0664 'page16.pre' || $echo 'restore of' 'page16.pre' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ @@ -710,7 +717,7 @@ manage the lifetime of the tickler but other than that it's pretty basic stuff. <HR> SHAR_EOF - $shar_touch -am 1019163798 'page17.pre' && + $shar_touch -am 1019173798 'page17.pre' && chmod 0664 'page17.pre' || $echo 'restore of' 'page17.pre' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ @@ -739,7 +746,7 @@ stuff though and if anyone wants to integrate one of them into the tutorial I'll be glad to take it! <HR> SHAR_EOF - $shar_touch -am 1019203698 'page18.pre' && + $shar_touch -am 1019213698 'page18.pre' && chmod 0664 'page18.pre' || $echo 'restore of' 'page18.pre' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ @@ -766,7 +773,7 @@ of implementation details. Splitting Xmit/Recv like I did will make things more difficult if something has to change in their interaction. <HR> SHAR_EOF - $shar_touch -am 1019195798 'page19.pre' && + $shar_touch -am 1019205798 'page19.pre' && chmod 0664 'page19.pre' || $echo 'restore of' 'page19.pre' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ @@ -796,7 +803,7 @@ show you the hooks and entry points and let someone else contribute an encryptor. <HR> SHAR_EOF - $shar_touch -am 1019203798 'page20.pre' && + $shar_touch -am 1019213798 'page20.pre' && chmod 0664 'page20.pre' || $echo 'restore of' 'page20.pre' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ @@ -822,7 +829,7 @@ compressor. Still, the hooks are there for you to insert your favorite library. <HR> SHAR_EOF - $shar_touch -am 1019203898 'page21.pre' && + $shar_touch -am 1019213898 'page21.pre' && chmod 0664 'page21.pre' || $echo 'restore of' 'page21.pre' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ @@ -910,7 +917,7 @@ Here's the complete file list: <LI><A HREF="Crypt.h">Crypt.h</A> </UL> SHAR_EOF - $shar_touch -am 1022195898 'page22.pre' && + $shar_touch -am 1022205898 'page22.pre' && chmod 0664 'page22.pre' || $echo 'restore of' 'page22.pre' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ @@ -946,7 +953,7 @@ For a quick look back: <P> Now we'll move on and examine the server counter-part of our client. SHAR_EOF - $shar_touch -am 1022195698 'page04.pst' && + $shar_touch -am 1022205698 'page04.pst' && chmod 0664 'page04.pst' || $echo 'restore of' 'page04.pst' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ @@ -985,7 +992,7 @@ X </UL> <P> SHAR_EOF - $shar_touch -am 1022195698 'page09.pst' && + $shar_touch -am 1022205698 'page09.pst' && chmod 0664 'page09.pst' || $echo 'restore of' 'page09.pst' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ @@ -1000,5 +1007,5 @@ SHAR_EOF $echo 'page09.pst:' 'original size' '617,' 'current size' "$shar_count!" fi fi -rm -fr _sh18487 +rm -fr _sh22831 exit 0 diff --git a/docs/tutorials/015/page01.html b/docs/tutorials/015/page01.html index 7d8f425b972..b79c34335df 100644 --- a/docs/tutorials/015/page01.html +++ b/docs/tutorials/015/page01.html @@ -32,7 +32,14 @@ level code first and then go into the details of the protocol stream and it's helper objects. If the stream stuff in the application logic is confusing then just read on by and come back to it after the later discussions. - +<P> +Disclaimer: +<br> +Several folks have reported problems with this tutorial on Win32. I +have the fixes in mind but may not get them in place until 2/8 or so. +What it amounts to is using the ACE_Select_Reactor for all platforms. +Win32 defaults to ACE_WFMO_Reactor and that seems to be causing some +or all of the problems. <P> <font size=-1>* Ok, I didn't really implement encryption and compression objects. I'll leave that as a thought diff --git a/docs/tutorials/015/page07.html b/docs/tutorials/015/page07.html index 3adcdad99de..14f93a95731 100644 --- a/docs/tutorials/015/page07.html +++ b/docs/tutorials/015/page07.html @@ -64,13 +64,16 @@ int <font color=#008888>Server::run</font>(void) { ACE_DEBUG ((LM_DEBUG, "<font color=green>(%P|%t) starting up server daemon\n</font>")); - ACE_Time_Value timeout(2); - <font color=red>// Here's the basic event loop. I have a 2-second timeout on</font> <font color=red>// the handle_events() so that we don't have to wait too long</font> <font color=red>// when we set the finished_ flag.</font> while (!finished_) { + <font color=red>// Some (all?) platforms return the "<font color=green>remaining time</font>" in the</font> + <font color=red>// timeout parameter. If we don't reset it each time, we</font> + <font color=red>// will end up with a 100% CPU spin loop!</font> + ACE_Time_Value timeout(2); + <font color=#008888>ACE_Reactor::instance</font>()->handle_events (&timeout); } diff --git a/docs/tutorials/015/page17.html b/docs/tutorials/015/page17.html index de868086604..c45e4a6eeb8 100644 --- a/docs/tutorials/015/page17.html +++ b/docs/tutorials/015/page17.html @@ -70,6 +70,12 @@ int <font color=#008888>Recv::recv</font>(ACE_Message_Block * message, ACE_Time_ end-of-string NULL character. Since the OS layers (at leas in Unix) will provide some buffering this isn't as bad as it may seem at first. + + The byte-at-a-time recv breaks horribly on Win32 where the + WFMO_Reactor is used. This is because the socket has been + placed into non-blocking mode and only the recv() of the + first byte will block. The solution is to use + ACE_Select_Reactor and I hope to implement that soon. */</font> do { diff --git a/docs/tutorials/016/Makefile b/docs/tutorials/016/Makefile index bd1cb8a6bd0..ad71e06d41b 100644 --- a/docs/tutorials/016/Makefile +++ b/docs/tutorials/016/Makefile @@ -67,6 +67,9 @@ SHAR : # UNSHAR : # sh combine.shar +CLEAN : realclean + rm -f hdr bodies *.pre *.pst + #---------------------------------------------------------------------------- # Dependencies #---------------------------------------------------------------------------- diff --git a/docs/tutorials/017/Makefile b/docs/tutorials/017/Makefile index 0830f114d68..a3c76235eca 100644 --- a/docs/tutorials/017/Makefile +++ b/docs/tutorials/017/Makefile @@ -67,6 +67,9 @@ SHAR : # UNSHAR : # sh combine.shar +CLEAN : realclean + rm -f hdr bodies *.pre *.pst + #---------------------------------------------------------------------------- # Dependencies #---------------------------------------------------------------------------- diff --git a/docs/tutorials/018/Makefile b/docs/tutorials/018/Makefile index b4bd131c4cd..b522713047e 100644 --- a/docs/tutorials/018/Makefile +++ b/docs/tutorials/018/Makefile @@ -67,6 +67,9 @@ SHAR : # UNSHAR : # sh combine.shar +CLEAN : realclean + rm -f hdr bodies *.pre *.pst + #---------------------------------------------------------------------------- # Dependencies #---------------------------------------------------------------------------- diff --git a/docs/tutorials/019/Makefile b/docs/tutorials/019/Makefile index 05d4917ee26..7183f69be15 100644 --- a/docs/tutorials/019/Makefile +++ b/docs/tutorials/019/Makefile @@ -69,6 +69,9 @@ SHAR : # UNSHAR : # sh combine.shar +CLEAN : realclean + rm -f hdr bodies *.pre *.pst + #---------------------------------------------------------------------------- # Dependencies #---------------------------------------------------------------------------- diff --git a/docs/tutorials/020/Makefile b/docs/tutorials/020/Makefile index a7b0d9fca2a..828a6c31551 100644 --- a/docs/tutorials/020/Makefile +++ b/docs/tutorials/020/Makefile @@ -69,6 +69,9 @@ SHAR : # UNSHAR : # sh combine.shar +CLEAN : realclean + rm -f hdr bodies *.pre *.pst + #---------------------------------------------------------------------------- # Dependencies #---------------------------------------------------------------------------- diff --git a/docs/tutorials/021/Makefile b/docs/tutorials/021/Makefile index 846ca3fcf8c..9d80950570c 100644 --- a/docs/tutorials/021/Makefile +++ b/docs/tutorials/021/Makefile @@ -69,6 +69,9 @@ SHAR : # UNSHAR : # sh combine.shar +CLEAN : realclean + rm -f hdr bodies *.pre *.pst + #---------------------------------------------------------------------------- # Dependencies #---------------------------------------------------------------------------- diff --git a/docs/tutorials/Makefile b/docs/tutorials/Makefile index 6174987d31b..30ec524e40f 100644 --- a/docs/tutorials/Makefile +++ b/docs/tutorials/Makefile @@ -1,7 +1,7 @@ # $Id$ -all clean realclean UNSHAR SHAR HTML : # +all clean realclean UNSHAR SHAR HTML CLEAN : # for i in * ; do \ [ -f $$i/Makefile ] || continue ; \ ( cd $$i ; $(MAKE) $@ ) ; \ |