blob: 09bc7e40d8f1b3c86976ccfa4ea5c251ac98b549 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
|
/* -*- C++ -*- */
// $Id$
// ============================================================================
//
// = LIBRARY
// drwho
//
// = FILENAME
// CM_Client.h
//
// = DESCRIPTION
// Provides a virtual communcations layer for the client in the
// drwho program.
//
// = AUTHOR
// Douglas C. Schmidt
//
// ============================================================================
#if !defined (_CM_CLIENT_H)
#define _CM_CLIENT_H
#include "Comm_Manager.h"
class CM_Client : public Comm_Manager
{
// = TITLE
// Provides a virtual communcations layer for the client in the
// drwho program.
public:
// = Initialization and termination.
CM_Client (void);
// Constructor.
virtual ~CM_Client (void);
// Destructor.
virtual int mux (char *packet, int &packet_length) = 0;
virtual int demux (char *packet, int &packet_length) = 0;
virtual int open (short port_number);
virtual int receive (int timeout = 0);
virtual int send (void);
private:
fd_set read_fd_;
ACE_Time_Value time_out_;
ACE_Time_Value *top_;
};
#endif /* _CM_CLIENT_H */
|