summaryrefslogtreecommitdiff
path: root/ACE/apps/drwho/SM_Client.cpp
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2008-03-04 13:56:48 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2008-03-04 13:56:48 +0000
commitc4078c377d74290ebe4e66da0b4975da91732376 (patch)
tree1816ef391e42a07929304908ac0e21f4c2f6cb7b /ACE/apps/drwho/SM_Client.cpp
parent700d1c1a6be348c6c70a2085e559baeb8f4a62ea (diff)
downloadATCD-c4078c377d74290ebe4e66da0b4975da91732376.tar.gz
swap in externals for ACE and TAO
Diffstat (limited to 'ACE/apps/drwho/SM_Client.cpp')
-rw-r--r--ACE/apps/drwho/SM_Client.cpp75
1 files changed, 0 insertions, 75 deletions
diff --git a/ACE/apps/drwho/SM_Client.cpp b/ACE/apps/drwho/SM_Client.cpp
deleted file mode 100644
index 02e552c9af9..00000000000
--- a/ACE/apps/drwho/SM_Client.cpp
+++ /dev/null
@@ -1,75 +0,0 @@
-// $Id$
-
-#include "Options.h"
-#include "PMC_All.h"
-#include "PMC_Flo.h"
-#include "PMC_Usr.h"
-#include "PMC_Ruser.h"
-#include "SM_Client.h"
-#include "ace/Log_Msg.h"
-#include "ace/OS_Memory.h"
-
-// Call-back function that invokes the appropriate decode function.
-
-int
-SM_Client::demux (char *packet,
- int &packet_length)
-{
- if (this->pm_client->decode (packet, packet_length) < 0)
- return -1;
- else
- return 1;
-}
-
-// Call-back function that invokes the appropriate encode function.
-
-int
-SM_Client::mux (char *packet, int &packet_length)
-{
- switch (Options::protocol_type)
- {
- case Options::PROTO_USR:
- ACE_NEW_RETURN (this->pm_client,
- PMC_Usr (Options::user_name),
- -1);
- break;
- case Options::PROTO_ALL:
- ACE_NEW_RETURN (this->pm_client,
- PMC_All,
- -1);
- break;
- case Options::PROTO_FLO:
- ACE_NEW_RETURN (this->pm_client,
- PMC_Flo,
- -1);
- break;
- case Options::PROTO_RUSER:
- ACE_NEW_RETURN (this->pm_client,
- PMC_Ruser,
- -1);
- break;
- default:
- ACE_DEBUG ((LM_DEBUG,
- "%s: bad protocol\n",
- Options::program_name));
- return -1;
- }
-
- if (this->pm_client->encode (packet, packet_length) < 0)
- return -1;
- return 1;
-}
-
-SM_Client::SM_Client (void)
-{
-}
-
-SM_Client::~SM_Client (void)
-{
-}
-
-void
-SM_Client::process (void)
-{
- this->pm_client->process ();
-}