Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / apps / drwho / Comm_Manager.h
blob75a7b1a7a3e1ade50885507a8855ea247a91c14f
1 /* -*- C++ -*- */
3 //=============================================================================
4 /**
5 * @file Comm_Manager.h
7 * @author Douglas C. Schmidt
8 */
9 //=============================================================================
12 #ifndef _COMM_MANAGER_H
13 #define _COMM_MANAGER_H
15 #include "global.h"
16 #include "ace/os_include/netinet/os_in.h"
18 class Comm_Manager
20 public:
21 virtual ~Comm_Manager ();
23 // = TITLE
24 // Provides a virtual communcations layer for the drwho program.
25 protected:
26 char recv_packet_[UDP_PACKET_SIZE];
27 char send_packet_[UDP_PACKET_SIZE];
28 sockaddr_in sin_;
29 int sokfd_;
31 virtual int mux (char *packet, int &packet_length) = 0;
32 virtual int demux (char *packet, int &packet_length) = 0;
33 virtual int open (short port_number) = 0;
34 virtual int receive (int timeout = 0) = 0;
35 virtual int send () = 0;
38 #endif /* _COMM_MANAGER_H */