summaryrefslogtreecommitdiff
path: root/docs/tutorials/020/server.cpp
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-01-16 00:03:09 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-01-16 00:03:09 +0000
commit7813ab75260f5a82b5ff17c83c7c2c39c60094f7 (patch)
tree5062ed2052bebf0eb399411eef7e250600f4b6bb /docs/tutorials/020/server.cpp
parentaae953155ecb34d716afbd5039774e8fd6def06f (diff)
downloadATCD-TAO-1_3.tar.gz
This commit was manufactured by cvs2svn to create tag 'TAO-1_3'.TAO-1_3
Diffstat (limited to 'docs/tutorials/020/server.cpp')
-rw-r--r--docs/tutorials/020/server.cpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/docs/tutorials/020/server.cpp b/docs/tutorials/020/server.cpp
deleted file mode 100644
index 549189ae2b1..00000000000
--- a/docs/tutorials/020/server.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-
-// $Id$
-
-#include "mmap.h"
-
-#include "ace/Log_Msg.h"
-
-int
-main (int, char *[])
-{
- /*
- The default behavior of the memory map wrapper is to create
- the file if it doesn't exist. This is a minor change from
- the SV shared memory wrapper.
- */
- ACE_Shared_Memory_MM shm_server (SHM_KEY, SHMSZ);
- char *shm = (char *) shm_server.malloc ();
- char *s = shm;
-
- ACE_DEBUG ((LM_INFO, "(%P|%t) Memory Mapped file is at 0x%x\n",
- shm ));
-
- for (char c = 'a'; c <= 'z'; c++)
- *s++ = c;
-
- *s = '\0';
-
- while (*shm != '*')
- ACE_OS::sleep (1);
-
- for (s = shm; *s != '\0'; s++)
- {
- putchar (*s);
- }
-
- putchar ('\n');
-
- if (shm_server.remove () < 0)
- ACE_ERROR ((LM_ERROR, "%p\n", "remove"));
-
- return 0;
-}