diff options
Diffstat (limited to 'ACE/apps/drwho/CM_Client.h')
-rw-r--r-- | ACE/apps/drwho/CM_Client.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/ACE/apps/drwho/CM_Client.h b/ACE/apps/drwho/CM_Client.h new file mode 100644 index 00000000000..43d3e9e940e --- /dev/null +++ b/ACE/apps/drwho/CM_Client.h @@ -0,0 +1,52 @@ +/* -*- 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 +// +// ============================================================================ + +#ifndef _CM_CLIENT_H +#define _CM_CLIENT_H + +#include "Comm_Manager.h" +#include "ace/Time_Value.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 */ |