summaryrefslogtreecommitdiff
path: root/ACE/apps/drwho/PM_Client.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/apps/drwho/PM_Client.h')
-rw-r--r--ACE/apps/drwho/PM_Client.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/ACE/apps/drwho/PM_Client.h b/ACE/apps/drwho/PM_Client.h
new file mode 100644
index 00000000000..a6466bc920d
--- /dev/null
+++ b/ACE/apps/drwho/PM_Client.h
@@ -0,0 +1,45 @@
+/* -*- C++ -*- */
+
+//=============================================================================
+/**
+ * @file PM_Client.h
+ *
+ * $Id$
+ *
+ * @author Douglas C. Schmidt
+ */
+//=============================================================================
+
+
+#ifndef _PM_CLIENT_H
+#define _PM_CLIENT_H
+
+#include "Protocol_Manager.h"
+
+/**
+ * @class PM_Client
+ *
+ * @brief Provides the client side of the friend manager lookup table abstraction.
+ */
+class PM_Client : public Protocol_Manager
+{
+public:
+ PM_Client (void);
+ virtual ~PM_Client (void);
+
+ virtual int encode (char *packet, int &total_bytes) = 0;
+ virtual int decode (char *packet, int &total_bytes) = 0;
+ virtual void process (void);
+
+protected:
+ int max_key_length;
+
+ virtual char *handle_protocol_entries (const char *cp,
+ const char *key_name1,
+ const char *key_name2 = 0);
+
+ virtual Protocol_Record *insert_protocol_info (Protocol_Record &protocol_record);
+};
+
+#endif /* _PM_CLIENT_H */
+