diff options
Diffstat (limited to 'docs/tutorials/019/client2.cpp')
-rw-r--r-- | docs/tutorials/019/client2.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/docs/tutorials/019/client2.cpp b/docs/tutorials/019/client2.cpp deleted file mode 100644 index fc74d92bea0..00000000000 --- a/docs/tutorials/019/client2.cpp +++ /dev/null @@ -1,33 +0,0 @@ - -// $Id$ - -#include "shmem.h" - -int main (int, char *[]) -{ - ACE_Shared_Memory_SV shm_client (SHM_KEY, sizeof(SharedData)); - - char *shm = (char *) shm_client.malloc (); - - ACE_DEBUG ((LM_INFO, "(%P|%t) Shared Memory is at 0x%x\n", - shm )); - - /* - More placement new. The constructor parameter prevents - clobbering what the server may have written with it's show() - method. - */ - SharedData * sd = new(shm) SharedData(0); - - // Show it - sd->show(); - // Change it - sd->set(); - // Advertise it - sd->available(1); - - shm_client.close(); - - return 0; -} - |