summaryrefslogtreecommitdiff
path: root/ACE/apps/drwho/CM_Server.h
blob: c7f4e8fb8ea446eebfc664b858ef01185b0972a7 (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
/* -*- C++ -*- */

//=============================================================================
/**
 *  @file    CM_Server.h
 *
 *  @author Douglas C. Schmidt
 */
//=============================================================================


#ifndef _CM_SERVER_H
#define _CM_SERVER_H

#include "Options.h"
#include "global.h"
#include "Comm_Manager.h"

/**
 * @class CM_Server
 *
 * @brief Provides a virtual communcations layer for the server in drwho.
 */
class CM_Server : public Comm_Manager
{
public:
  CM_Server (void);
  virtual ~CM_Server (void);

  virtual int open (short port_number);
  virtual int receive (int timeout = 0);
  virtual int send (void);
  virtual int mux (char *packet, int &packet_length)   = 0;
  virtual int demux (char *packet, int &packet_length) = 0;
};

#endif /* _CM_SERVER_H */