diff options
Diffstat (limited to 'ACE/apps/drwho/CM_Server.h')
-rw-r--r-- | ACE/apps/drwho/CM_Server.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/ACE/apps/drwho/CM_Server.h b/ACE/apps/drwho/CM_Server.h new file mode 100644 index 00000000000..a91402a5e48 --- /dev/null +++ b/ACE/apps/drwho/CM_Server.h @@ -0,0 +1,39 @@ +/* -*- C++ -*- */ +// $Id$ + +// ============================================================================ +// +// = LIBRARY +// drwho +// +// = FILENAME +// 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 : public Comm_Manager +{ + // = TITLE + // Provides a virtual communcations layer for the server in drwho. +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 */ |