diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2000-11-27 17:56:44 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2000-11-27 17:56:44 +0000 |
commit | 5ef586dc4e2566f73b30342863beba96c092a70f (patch) | |
tree | 84bcc53c2a365018adc5a2aa5fb396608a14c0c9 /docs/tutorials | |
parent | 7fecbf5404eb7f3b81d2fae7b92188fc9a40b872 (diff) | |
download | ATCD-5ef586dc4e2566f73b30342863beba96c092a70f.tar.gz |
ChangeLogTag:Mon Nov 27 09:56:09 2000 Ossama Othman <ossama@uci.edu>
Diffstat (limited to 'docs/tutorials')
36 files changed, 58 insertions, 8 deletions
diff --git a/docs/tutorials/003/client.cpp b/docs/tutorials/003/client.cpp index 1c93769e7bd..fdfa51e1752 100644 --- a/docs/tutorials/003/client.cpp +++ b/docs/tutorials/003/client.cpp @@ -2,6 +2,7 @@ /* To establish a socket connection to a server, we'll need an ACE_SOCK_Connector. */ +#include "ace/Log_Msg.h" #include "ace/SOCK_Connector.h" /* Unlike the previous two tutorials, we're going to allow the user to diff --git a/docs/tutorials/003/page01.html b/docs/tutorials/003/page01.html index 39583b56cbc..5dd805844f0 100644 --- a/docs/tutorials/003/page01.html +++ b/docs/tutorials/003/page01.html @@ -48,6 +48,7 @@ Kirthika says, "Here's an one paragraph abstract for a one page client app:" <font color=red>/* To establish a socket connection to a server, we'll need an ACE_SOCK_Connector. */</font> <font color=blue>#include</font> "<A HREF="../../../ace/SOCK_Connector.h">ace/SOCK_Connector.h</A>" +<font color=blue>#include</font> "<A HREF="../../../ace/Log_Msg.h">ace/Log_Msg.h</A>" <font color=red>/* Unlike the previous two tutorials, we're going to allow the user to provide command line options this time. Still, we need defaults in diff --git a/docs/tutorials/004/client.cpp b/docs/tutorials/004/client.cpp index 33bada96743..54bcbc04fa0 100644 --- a/docs/tutorials/004/client.cpp +++ b/docs/tutorials/004/client.cpp @@ -2,6 +2,7 @@ /* We need the connector object & we also bring in a simple string class. */ +#include "ace/Log_Msg.h" #include "ace/SOCK_Connector.h" #include "ace/SString.h" diff --git a/docs/tutorials/004/page01.html b/docs/tutorials/004/page01.html index 9eeafe46227..f0ca6eb2ef3 100644 --- a/docs/tutorials/004/page01.html +++ b/docs/tutorials/004/page01.html @@ -37,6 +37,7 @@ successfully interacts with the server when connection is established. <font color=red>/* We need the connector object & we also bring in a simple string class. */</font> +<font color=blue>#include</font> "<A HREF="../../../ace/Log_Msg.h">ace/Log_Msg.h</A>" <font color=blue>#include</font> "<A HREF="../../../ace/SOCK_Connector.h">ace/SOCK_Connector.h</A>" <font color=blue>#include</font> "<A HREF="../../../ace/SString.h">ace/SString.h</A>" diff --git a/docs/tutorials/008/broadcast_client.cpp b/docs/tutorials/008/broadcast_client.cpp index eb516791a2f..3176de032a2 100644 --- a/docs/tutorials/008/broadcast_client.cpp +++ b/docs/tutorials/008/broadcast_client.cpp @@ -1,5 +1,6 @@ // $Id$ +#include "ace/Log_Msg.h" #include "ace/SOCK_Dgram_Bcast.h" #include "ace/INET_Addr.h" diff --git a/docs/tutorials/008/directed_client.cpp b/docs/tutorials/008/directed_client.cpp index 587a671fe09..d7c02f69dd3 100644 --- a/docs/tutorials/008/directed_client.cpp +++ b/docs/tutorials/008/directed_client.cpp @@ -1,5 +1,6 @@ // $Id$ +#include "ace/Log_Msg.h" #include "ace/SOCK_Dgram.h" #include "ace/INET_Addr.h" diff --git a/docs/tutorials/008/page02.html b/docs/tutorials/008/page02.html index f1b8e170c28..67ee0e7c4f9 100644 --- a/docs/tutorials/008/page02.html +++ b/docs/tutorials/008/page02.html @@ -29,7 +29,9 @@ it responds to. We'll tackle that issue in the next tutorial though... <font color=red>// $Id$</font> <font color=red>/* Our datagram server will, of course, need to create a datagram. - We'll also need an address object so that we know where to listen. */</font> + We'll also need an address object so that we know where to listen. +*/</font> +<font color=blue>#include</font> "<A HREF="../../../ace/Log_Msg.h">ace/Log_Msg.h</A>" <font color=blue>#include</font> "<A HREF="../../../ace/SOCK_Dgram.h">ace/SOCK_Dgram.h</A>" <font color=blue>#include</font> "<A HREF="../../../ace/INET_Addr.h">ace/INET_Addr.h</A>" diff --git a/docs/tutorials/008/page03.html b/docs/tutorials/008/page03.html index 3a68593788b..04878414762 100644 --- a/docs/tutorials/008/page03.html +++ b/docs/tutorials/008/page03.html @@ -28,6 +28,7 @@ could be written this way. <PRE> <font color=red>// $Id$</font> +<font color=blue>#include</font> "<A HREF="../../../ace/Log_Msg.h">ace/Log_Msg.h</A>" <font color=blue>#include</font> "<A HREF="../../../ace/SOCK_Dgram.h">ace/SOCK_Dgram.h</A>" <font color=blue>#include</font> "<A HREF="../../../ace/INET_Addr.h">ace/INET_Addr.h</A>" diff --git a/docs/tutorials/008/page04.html b/docs/tutorials/008/page04.html index 5960fe8a27e..ec24576e73b 100644 --- a/docs/tutorials/008/page04.html +++ b/docs/tutorials/008/page04.html @@ -28,6 +28,7 @@ subnet you're a part of. <PRE> <font color=red>// $Id$</font> +<font color=blue>#include</font> "<A HREF="../../../ace/Log_Msg.h">ace/Log_Msg.h</A>" <font color=blue>#include</font> "<A HREF="../../../ace/SOCK_Dgram_Bcast.h">ace/SOCK_Dgram_Bcast.h</A>" <font color=blue>#include</font> "<A HREF="../../../ace/INET_Addr.h">ace/INET_Addr.h</A>" diff --git a/docs/tutorials/008/server.cpp b/docs/tutorials/008/server.cpp index dd54d61db59..7cacb040822 100644 --- a/docs/tutorials/008/server.cpp +++ b/docs/tutorials/008/server.cpp @@ -2,6 +2,7 @@ /* Our datagram server will, of course, need to create a datagram. We'll also need an address object so that we know where to listen. */ +#include "ace/Log_Msg.h" #include "ace/SOCK_Dgram.h" #include "ace/INET_Addr.h" diff --git a/docs/tutorials/009/broadcast_client.cpp b/docs/tutorials/009/broadcast_client.cpp index f14b7db2c9c..7eb282f6f73 100644 --- a/docs/tutorials/009/broadcast_client.cpp +++ b/docs/tutorials/009/broadcast_client.cpp @@ -1,5 +1,6 @@ // $Id$ +#include "ace/Log_Msg.h" #include "ace/SOCK_Dgram_Bcast.h" #include "ace/INET_Addr.h" diff --git a/docs/tutorials/009/directed_client.cpp b/docs/tutorials/009/directed_client.cpp index 1d6af7f206b..7ec65ee23ff 100644 --- a/docs/tutorials/009/directed_client.cpp +++ b/docs/tutorials/009/directed_client.cpp @@ -1,5 +1,6 @@ // $Id$ +#include "ace/Log_Msg.h" #include "ace/SOCK_Dgram.h" #include "ace/INET_Addr.h" diff --git a/docs/tutorials/009/page02.html b/docs/tutorials/009/page02.html index 26ac34c4f2d..438f580c32a 100644 --- a/docs/tutorials/009/page02.html +++ b/docs/tutorials/009/page02.html @@ -29,6 +29,7 @@ we add in just a bit of code to examine the datagram contents before responding. will prevent this server from responding to just any old datagram. I'll limit my comments to those pieces of code. */</font> +<font color=blue>#include</font> "<A HREF="../../../ace/Log_Msg.h">ace/Log_Msg.h</A>" <font color=blue>#include</font> "<A HREF="../../../ace/SOCK_Dgram.h">ace/SOCK_Dgram.h</A>" <font color=blue>#include</font> "<A HREF="../../../ace/INET_Addr.h">ace/INET_Addr.h</A>" diff --git a/docs/tutorials/009/page03.html b/docs/tutorials/009/page03.html index 5e064f9373b..8f138282c1b 100644 --- a/docs/tutorials/009/page03.html +++ b/docs/tutorials/009/page03.html @@ -26,6 +26,7 @@ if the server doesn't like what we have to say. <PRE> <font color=red>// $Id$</font> +<font color=blue>#include</font> "<A HREF="../../../ace/Log_Msg.h">ace/Log_Msg.h</A>" <font color=blue>#include</font> "<A HREF="../../../ace/SOCK_Dgram.h">ace/SOCK_Dgram.h</A>" <font color=blue>#include</font> "<A HREF="../../../ace/INET_Addr.h">ace/INET_Addr.h</A>" diff --git a/docs/tutorials/009/page04.html b/docs/tutorials/009/page04.html index 944158c3b2f..9148829167e 100644 --- a/docs/tutorials/009/page04.html +++ b/docs/tutorials/009/page04.html @@ -26,6 +26,7 @@ of the timeout variable passed to recv(). <PRE> <font color=red>// $Id$</font> +<font color=blue>#include</font> "<A HREF="../../../ace/Log_Msg.h">ace/Log_Msg.h</A>" <font color=blue>#include</font> "<A HREF="../../../ace/SOCK_Dgram_Bcast.h">ace/SOCK_Dgram_Bcast.h</A>" <font color=blue>#include</font> "<A HREF="../../../ace/INET_Addr.h">ace/INET_Addr.h</A>" diff --git a/docs/tutorials/009/server.cpp b/docs/tutorials/009/server.cpp index d36c7ce208e..ee6dc1be311 100644 --- a/docs/tutorials/009/server.cpp +++ b/docs/tutorials/009/server.cpp @@ -5,6 +5,7 @@ will prevent this server from responding to just any old datagram. I'll limit my comments to those pieces of code. */ +#include "ace/Log_Msg.h" #include "ace/SOCK_Dgram.h" #include "ace/INET_Addr.h" diff --git a/docs/tutorials/011/message_queue.cpp b/docs/tutorials/011/message_queue.cpp index 3c91f7cc66f..a0813db2e69 100644 --- a/docs/tutorials/011/message_queue.cpp +++ b/docs/tutorials/011/message_queue.cpp @@ -40,8 +40,6 @@ run_test (int iterations, ACE_OS::sprintf (message->wr_ptr (), "This is message %d.", i); message->wr_ptr (strlen (message->rd_ptr ())); - *(message->wr_ptr ()) = 0; // Null-terminate the string we just wrote - message->wr_ptr (1); // Move beyond the NULL /* To copy arbitrary data into a message block, we use the diff --git a/docs/tutorials/011/page02.html b/docs/tutorials/011/page02.html index 3aab35aa5c1..63d55989641 100644 --- a/docs/tutorials/011/page02.html +++ b/docs/tutorials/011/page02.html @@ -62,8 +62,6 @@ run_test (int iterations, <font color=#008888>ACE_OS::sprintf</font> (message->wr_ptr (), "<font color=green>This is message %d.</font>", i); message->wr_ptr (strlen (message->rd_ptr ())); - *(message->wr_ptr ()) = 0; <font color=red>// Null-terminate the string we just wrote</font> - message->wr_ptr (1); <font color=red>// Move beyond the NULL</font> <font color=red>/* To copy arbitrary data into a message block, we use the diff --git a/docs/tutorials/019/client.cpp b/docs/tutorials/019/client.cpp index cf57b8ec2ec..55b99b52667 100644 --- a/docs/tutorials/019/client.cpp +++ b/docs/tutorials/019/client.cpp @@ -3,6 +3,8 @@ // Again, the common stuff #include "shmem.h" +#include "ace/Log_Msg.h" + #if defined(ACE_LACKS_SYSV_SHMEM) int main (int, char *[]) diff --git a/docs/tutorials/019/client2.cpp b/docs/tutorials/019/client2.cpp index e58d55e32d7..6ef80ad2454 100644 --- a/docs/tutorials/019/client2.cpp +++ b/docs/tutorials/019/client2.cpp @@ -2,6 +2,8 @@ #include "shmem.h" +#include "ace/Log_Msg.h" + #if defined(ACE_LACKS_SYSV_SHMEM) int main (int, char *[]) diff --git a/docs/tutorials/019/page02.html b/docs/tutorials/019/page02.html index 1973596004a..b769313915f 100644 --- a/docs/tutorials/019/page02.html +++ b/docs/tutorials/019/page02.html @@ -33,6 +33,8 @@ machine comes down.) */</font> <font color=blue>#include</font> "<font color=green>shmem.h</font>" +<font color=blue>#include</font> "<A HREF="../../../ace/Log_Msg.h">ace/Log_Msg.h</A>" + <font color=blue>#if defined</font> (<font color=purple>ACE_LACKS_SYSV_SHMEM</font>) int main (int, char *[]) diff --git a/docs/tutorials/019/page03.html b/docs/tutorials/019/page03.html index c26e9fc7671..dd9d82eb5ee 100644 --- a/docs/tutorials/019/page03.html +++ b/docs/tutorials/019/page03.html @@ -23,6 +23,8 @@ remove(). Picking the correct detachment method is rather important! <font color=red>// Again, the common stuff</font> <font color=blue>#include</font> "<font color=green>shmem.h</font>" +<font color=blue>#include</font> "<A HREF="../../../ace/Log_Msg.h">ace/Log_Msg.h</A>" + <font color=blue>#if defined</font>(<font color=purple>ACE_LACKS_SYSV_SHMEM</font>) int main (int, char *[]) diff --git a/docs/tutorials/019/page04.html b/docs/tutorials/019/page04.html index 6981e0c18e9..898ed89e107 100644 --- a/docs/tutorials/019/page04.html +++ b/docs/tutorials/019/page04.html @@ -34,6 +34,8 @@ That's not to say you shouldn't try... Just try carefully and test a lot! <font color=blue>#include</font> "<font color=green>shmem.h</font>" +<font color=blue>#include</font> "<A HREF="../../../ace/Log_Msg.h">ace/Log_Msg.h</A>" + <font color=blue>#if defined</font> (<font color=purple>ACE_LACKS_SYSV_SHMEM</font>) int main (int, char *[]) @@ -103,6 +105,8 @@ main (int, char *argv[]) <font color=blue>#include</font> "<font color=green>shmem.h</font>" +<font color=blue>#include</font> "<A HREF="../../../ace/Log_Msg.h">ace/Log_Msg.h</A>" + <font color=blue>#if defined</font>(<font color=purple>ACE_LACKS_SYSV_SHMEM</font>) int main (int, char *[]) diff --git a/docs/tutorials/019/page05.html b/docs/tutorials/019/page05.html index 5d3e5465f57..4f81f90b7d9 100644 --- a/docs/tutorials/019/page05.html +++ b/docs/tutorials/019/page05.html @@ -71,6 +71,8 @@ protected: <font color=blue>#include</font> "<font color=green>shmem.h</font>" +<font color=blue>#include</font> "<A HREF="../../../ace/Log_Msg.h">ace/Log_Msg.h</A>" + #if ! defined (ACE_LACKS_SYSV_SHMEM) <font color=red>/* diff --git a/docs/tutorials/019/server.cpp b/docs/tutorials/019/server.cpp index 40997844ef8..ec65de3bfb5 100644 --- a/docs/tutorials/019/server.cpp +++ b/docs/tutorials/019/server.cpp @@ -7,6 +7,8 @@ */ #include "shmem.h" +#include "ace/Log_Msg.h" + #if defined (ACE_LACKS_SYSV_SHMEM) int main (int, char *[]) diff --git a/docs/tutorials/019/server2.cpp b/docs/tutorials/019/server2.cpp index 54d532d4134..dca34b15acd 100644 --- a/docs/tutorials/019/server2.cpp +++ b/docs/tutorials/019/server2.cpp @@ -2,6 +2,8 @@ #include "shmem.h" +#include "ace/Log_Msg.h" + #if defined (ACE_LACKS_SYSV_SHMEM) int main (int, char *[]) diff --git a/docs/tutorials/019/shmem.cpp b/docs/tutorials/019/shmem.cpp index a2442afe253..2f05aa01160 100644 --- a/docs/tutorials/019/shmem.cpp +++ b/docs/tutorials/019/shmem.cpp @@ -2,6 +2,8 @@ #include "shmem.h" +#include "ace/Log_Msg.h" + #if ! defined (ACE_LACKS_SYSV_SHMEM) /* diff --git a/docs/tutorials/020/client.cpp b/docs/tutorials/020/client.cpp index ba9ad43a862..2ffb34a7404 100644 --- a/docs/tutorials/020/client.cpp +++ b/docs/tutorials/020/client.cpp @@ -3,6 +3,8 @@ #include "mmap.h" +#include "ace/Log_Msg.h" + int main (int, char *[]) { ACE_Shared_Memory_MM shm_client (SHM_KEY, SHMSZ); diff --git a/docs/tutorials/020/client2.cpp b/docs/tutorials/020/client2.cpp index d06ffc4dbe9..0bd19359e41 100644 --- a/docs/tutorials/020/client2.cpp +++ b/docs/tutorials/020/client2.cpp @@ -3,6 +3,8 @@ #include "mmap.h" +#include "ace/Log_Msg.h" + int main (int, char *[]) { ACE_Shared_Memory_MM shm_client (SHM_KEY, sizeof(SharedData)); @@ -22,4 +24,3 @@ int main (int, char *[]) return 0; } - diff --git a/docs/tutorials/020/mmap.cpp b/docs/tutorials/020/mmap.cpp index 6ee9f1198c8..b99811aa0d4 100644 --- a/docs/tutorials/020/mmap.cpp +++ b/docs/tutorials/020/mmap.cpp @@ -3,6 +3,8 @@ #include "mmap.h" +#include "ace/Log_Msg.h" + SharedData::SharedData(int _initialize) : available_(0) { diff --git a/docs/tutorials/020/page02.html b/docs/tutorials/020/page02.html index 72db0e42e6e..38d27404fa8 100644 --- a/docs/tutorials/020/page02.html +++ b/docs/tutorials/020/page02.html @@ -30,6 +30,8 @@ <font color=blue>#include</font> "<font color=green>mmap.h</font>" +<font color=blue>#include</font> "<A HREF="../../../ace/Log_Msg.h">ace/Log_Msg.h</A>" + int main (int, char *[]) { diff --git a/docs/tutorials/020/page03.html b/docs/tutorials/020/page03.html index e2f6bce23dd..69782913b5d 100644 --- a/docs/tutorials/020/page03.html +++ b/docs/tutorials/020/page03.html @@ -22,6 +22,8 @@ There's no important difference between this and the SV client. Is <font color=blue>#include</font> "<font color=green>mmap.h</font>" +<font color=blue>#include</font> "<A HREF="../../../ace/Log_Msg.h">ace/Log_Msg.h</A>" + int main (int, char *[]) { ACE_Shared_Memory_MM shm_client (SHM_KEY, SHMSZ); diff --git a/docs/tutorials/020/page04.html b/docs/tutorials/020/page04.html index 248814cdf1e..573ddaa23f0 100644 --- a/docs/tutorials/020/page04.html +++ b/docs/tutorials/020/page04.html @@ -29,6 +29,8 @@ Imagine if you had an object that contained an image & then you mapped <font color=blue>#include</font> "<font color=green>mmap.h</font>" +<font color=blue>#include</font> "<A HREF="../../../ace/Log_Msg.h">ace/Log_Msg.h</A>" + int main (int, char *[]) { @@ -63,6 +65,8 @@ main (int, char *[]) <font color=blue>#include</font> "<font color=green>mmap.h</font>" +<font color=blue>#include</font> "<A HREF="../../../ace/Log_Msg.h">ace/Log_Msg.h</A>" + int main (int, char *[]) { ACE_Shared_Memory_MM shm_client (SHM_KEY, sizeof(SharedData)); diff --git a/docs/tutorials/020/page05.html b/docs/tutorials/020/page05.html index f08235079e8..4113c64151b 100644 --- a/docs/tutorials/020/page05.html +++ b/docs/tutorials/020/page05.html @@ -64,6 +64,8 @@ protected: <font color=blue>#include</font> "<font color=green>mmap.h</font>" +<font color=blue>#include</font> "<A HREF="../../../ace/Log_Msg.h">ace/Log_Msg.h</A>" + <font color=#008888>SharedData::SharedData</font>(int _initialize) : available_(0) { diff --git a/docs/tutorials/020/server.cpp b/docs/tutorials/020/server.cpp index 16fb4ab9230..549189ae2b1 100644 --- a/docs/tutorials/020/server.cpp +++ b/docs/tutorials/020/server.cpp @@ -3,6 +3,8 @@ #include "mmap.h" +#include "ace/Log_Msg.h" + int main (int, char *[]) { @@ -38,4 +40,3 @@ main (int, char *[]) return 0; } - diff --git a/docs/tutorials/020/server2.cpp b/docs/tutorials/020/server2.cpp index 2cbfa4373a3..abbe2f5b68b 100644 --- a/docs/tutorials/020/server2.cpp +++ b/docs/tutorials/020/server2.cpp @@ -3,6 +3,8 @@ #include "mmap.h" +#include "ace/Log_Msg.h" + int main (int, char *[]) { @@ -28,4 +30,3 @@ main (int, char *[]) return 0; } - |