blob: 52ffb63ae172045a0f9f5ab96bf78fc7010d7ec3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/* -*- C++ -*- */
//=============================================================================
/**
* @file PM_Server.h
*
* @author Douglas C. Schmidt
*/
//=============================================================================
#ifndef _PM_SERVER_H
#define _PM_SERVER_H
#include "Protocol_Manager.h"
/**
* @class PM_Server
*
* @brief Handle the server's lookup table abstraction.
*/
class PM_Server : public Protocol_Manager
{
public:
PM_Server ();
virtual ~PM_Server ();
virtual int encode (char *packet, int &total_bytes) = 0;
virtual int decode (char *packet, int &total_bytes) = 0;
virtual int process ();
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 */
|