3 //=============================================================================
7 * @author Douglas C. Schmidt
9 //=============================================================================
12 #ifndef _COMM_MANAGER_H
13 #define _COMM_MANAGER_H
16 #include "ace/os_include/netinet/os_in.h"
21 virtual ~Comm_Manager ();
24 // Provides a virtual communcations layer for the drwho program.
26 char recv_packet_
[UDP_PACKET_SIZE
];
27 char send_packet_
[UDP_PACKET_SIZE
];
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 */