diff options
| author | jcej <jcej@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-12-28 23:00:59 +0000 |
|---|---|---|
| committer | jcej <jcej@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-12-28 23:00:59 +0000 |
| commit | 986dcd3013fe2b4b8ae52db80abd5717576e2316 (patch) | |
| tree | 905370482340b1c304440e7c0908351a70150c47 /docs/tutorials/020/client2.cpp | |
| parent | 4e58ead845a74368f8902ddf50fc2c55213e1c86 (diff) | |
| download | ATCD-986dcd3013fe2b4b8ae52db80abd5717576e2316.tar.gz | |
*** empty log message ***
Diffstat (limited to 'docs/tutorials/020/client2.cpp')
| -rw-r--r-- | docs/tutorials/020/client2.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
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; +} + |
