summaryrefslogtreecommitdiff
path: root/TAO/examples/Simple/echo/Echo_Client_i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Simple/echo/Echo_Client_i.cpp')
-rw-r--r--TAO/examples/Simple/echo/Echo_Client_i.cpp72
1 files changed, 0 insertions, 72 deletions
diff --git a/TAO/examples/Simple/echo/Echo_Client_i.cpp b/TAO/examples/Simple/echo/Echo_Client_i.cpp
deleted file mode 100644
index 67e3e1c6b7a..00000000000
--- a/TAO/examples/Simple/echo/Echo_Client_i.cpp
+++ /dev/null
@@ -1,72 +0,0 @@
-//$Id$
-
-#include "Echo_Client_i.h"
-#include "ace/Get_Opt.h"
-#include "ace/Read_Buffer.h"
-
-// This is the interface program that accesses the remote object
-
-// Constructor.
-Echo_Client_i::Echo_Client_i (void)
-{
- //no-op
-}
-
-//Destructor.
-Echo_Client_i::~Echo_Client_i (void)
-{
- //no-op
-}
-
-int
-Echo_Client_i::run (char *name,
- int argc,
- char *argv[])
-{
- // Initialize the client.
- if (client.init (name,argc, argv) == -1)
- return -1;
-
- ACE_TRY_NEW_ENV
- {
- while (1)
- {
- char buf[BUFSIZ];
-
- // Get the input message which has to be displayed.
- ACE_DEBUG ((LM_DEBUG,
- "ECHO? "));
-
- if (ACE_OS::fgets (buf,sizeof buf, stdin) == 0)
- break;
-
- CORBA::String_var s = client->echo_string (buf,
- ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG,
- "\nString echoed by client \n%s\n",
- s.in ()));
- }
-
- if (client.shutdown () == 1)
- client->shutdown (ACE_TRY_ENV);
-
- ACE_TRY_CHECK;
-
- }
- ACE_CATCHANY
- {
- ACE_TRY_ENV.print_exception ("\n Exception in RMI");
- }
- ACE_ENDTRY;
-
- return 0;
-}
-
-
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-template class Client<Echo,Echo_var>;
-#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-#pragma instantiate Client<Echo,Echo_var>
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */