summaryrefslogtreecommitdiff
path: root/TAO/examples/Simple/chat/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Simple/chat/client.cpp')
-rw-r--r--TAO/examples/Simple/chat/client.cpp57
1 files changed, 0 insertions, 57 deletions
diff --git a/TAO/examples/Simple/chat/client.cpp b/TAO/examples/Simple/chat/client.cpp
deleted file mode 100644
index 8b78e9de11f..00000000000
--- a/TAO/examples/Simple/chat/client.cpp
+++ /dev/null
@@ -1,57 +0,0 @@
-// $Id$
-
-// ===========================================================
-//
-// = LIBRARY
-// TAO/tests/Simple/chat
-//
-// = FILENAME
-// client.cpp
-//
-// = DESCRIPTION
-// The Chat client program entry point.
-//
-// = AUTHOR
-// Pradeep Gore <pradeep@cs.wustl.edu>
-//
-// ===========================================================
-
-#include "client_i.h"
-
-int
-main (int argc, char *argv[])
-{
- char *nick;
-
- if (argc >= 2)
- nick = argv[1];
- else
- ACE_ERROR_RETURN ((LM_ERROR,
- "\n usage: client <nickname>\n"),
- -1);
-
- TAO_TRY
- {
- ACE_DEBUG ((LM_DEBUG,
- "\n============= Simple Chat ===========\n"));
-
- ACE_DEBUG ((LM_DEBUG,
- "\n============= type 'quit' to exit ===========\n"));
-
- // @@ Please make the "chat.ior" an option or something you can
- // override as a user.
- Client_i client_i ("chat.ior", nick);
-
- if (client_i.init (argc, argv) == -1
- || client_i.run () == -1)
- return -1;
- }
- TAO_CATCHANY
- {
- TAO_TRY_ENV.print_exception ("client::main\t\n");
- return -1;
- }
- TAO_ENDTRY;
-
- return 0;
-}