diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-12-25 21:27:55 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-12-25 21:27:55 +0000 |
commit | 4d6f540252a217228dac1535692c61e8b24e1289 (patch) | |
tree | ab12d1c75ef5b7cb25431abe6206780dd7b18d08 /docs/tutorials/020/client.cpp | |
parent | 2b16235a5279ea3971abcd8ee60c0cda4716a1b4 (diff) | |
download | ATCD-TAO-1_2_8.tar.gz |
This commit was manufactured by cvs2svn to create tag 'TAO-1_2_8'.TAO-1_2_8
Diffstat (limited to 'docs/tutorials/020/client.cpp')
-rw-r--r-- | docs/tutorials/020/client.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/docs/tutorials/020/client.cpp b/docs/tutorials/020/client.cpp deleted file mode 100644 index 2ffb34a7404..00000000000 --- a/docs/tutorials/020/client.cpp +++ /dev/null @@ -1,33 +0,0 @@ - -// $Id$ - -#include "mmap.h" - -#include "ace/Log_Msg.h" - -int main (int, char *[]) -{ - ACE_Shared_Memory_MM shm_client (SHM_KEY, SHMSZ); - char *shm = (char *) shm_client.malloc (); - - ACE_DEBUG ((LM_INFO, "(%P|%t) Memory Mapped file is at 0x%x\n", - shm )); - - if( ! shm ) - { - ACE_ERROR_RETURN ((LM_ERROR,"(%P|%t) Could not get the mmapped file!\n"),100); - } - - for (char *s = shm; *s != '\0'; s++) - { - putchar (*s); - *s = toupper(*s); - } - - putchar ('\n'); - *shm = '*'; - - shm_client.close(); - - return 0; -} |