From 986dcd3013fe2b4b8ae52db80abd5717576e2316 Mon Sep 17 00:00:00 2001 From: jcej Date: Mon, 28 Dec 1998 23:00:59 +0000 Subject: *** empty log message *** --- docs/tutorials/020/client2.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 docs/tutorials/020/client2.cpp (limited to 'docs/tutorials/020/client2.cpp') diff --git a/docs/tutorials/020/client2.cpp b/docs/tutorials/020/client2.cpp new file mode 100644 index 00000000000..35ddc8ffe43 --- /dev/null +++ b/docs/tutorials/020/client2.cpp @@ -0,0 +1,25 @@ + +// $Id$ + +#include "mmap.h" + +int main (int, char *[]) +{ + ACE_Shared_Memory_MM shm_client (SHM_KEY, sizeof(SharedData)); + + char *shm = (char *) shm_client.malloc (); + + ACE_DEBUG ((LM_INFO, "(%P|%t) Memory Mapped file is at 0x%x\n", + shm )); + + SharedData * sd = new(shm) SharedData(0); + + sd->show(); + sd->set(); + sd->available(1); + + shm_client.close(); + + return 0; +} + -- cgit v1.2.1