Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / apps / drwho / PM_Client.h
blobaf1cf18309eb38f605ebed3c4e61fee530186b9c
1 /* -*- C++ -*- */
3 //=============================================================================
4 /**
5 * @file PM_Client.h
7 * @author Douglas C. Schmidt
8 */
9 //=============================================================================
12 #ifndef _PM_CLIENT_H
13 #define _PM_CLIENT_H
15 #include "Protocol_Manager.h"
17 /**
18 * @class PM_Client
20 * @brief Provides the client side of the friend manager lookup table abstraction.
22 class PM_Client : public Protocol_Manager
24 public:
25 PM_Client ();
26 virtual ~PM_Client ();
28 virtual int encode (char *packet, int &total_bytes) = 0;
29 virtual int decode (char *packet, int &total_bytes) = 0;
30 virtual void process ();
32 protected:
33 int max_key_length;
35 virtual char *handle_protocol_entries (const char *cp,
36 const char *key_name1,
37 const char *key_name2 = 0);
39 virtual Protocol_Record *insert_protocol_info (Protocol_Record &protocol_record);
42 #endif /* _PM_CLIENT_H */