diff options
Diffstat (limited to 'ACE/apps/drwho/PM_Server.h')
-rw-r--r-- | ACE/apps/drwho/PM_Server.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/ACE/apps/drwho/PM_Server.h b/ACE/apps/drwho/PM_Server.h new file mode 100644 index 00000000000..2a355c8e262 --- /dev/null +++ b/ACE/apps/drwho/PM_Server.h @@ -0,0 +1,41 @@ +/* -*- C++ -*- */ +// $Id$ + +// ============================================================================ +// +// = LIBRARY +// drwho +// +// = FILENAME +// PM_Server.h +// +// = AUTHOR +// Douglas C. Schmidt +// +// ============================================================================ + +#ifndef _PM_SERVER_H +#define _PM_SERVER_H + +#include "Protocol_Manager.h" + +class PM_Server : public Protocol_Manager +{ + // = TITLE + // Handle the server's lookup table abstraction. + +public: + PM_Server (void); + virtual ~PM_Server (void); + + virtual int encode (char *packet, int &total_bytes) = 0; + virtual int decode (char *packet, int &total_bytes) = 0; + virtual int process (void); + +protected: + virtual char *handle_protocol_entries (char *bp, + Drwho_Node *hp); + virtual Protocol_Record *insert_protocol_info (Protocol_Record &protocol_record); +}; + +#endif /* _PM_SERVER_H */ |