blob: 75a7b1a7a3e1ade50885507a8855ea247a91c14f (
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
38
|
/* -*- C++ -*- */
//=============================================================================
/**
* @file Comm_Manager.h
*
* @author Douglas C. Schmidt
*/
//=============================================================================
#ifndef _COMM_MANAGER_H
#define _COMM_MANAGER_H
#include "global.h"
#include "ace/os_include/netinet/os_in.h"
class Comm_Manager
{
public:
virtual ~Comm_Manager ();
// = TITLE
// Provides a virtual communcations layer for the drwho program.
protected:
char recv_packet_[UDP_PACKET_SIZE];
char send_packet_[UDP_PACKET_SIZE];
sockaddr_in sin_;
int sokfd_;
virtual int mux (char *packet, int &packet_length) = 0;
virtual int demux (char *packet, int &packet_length) = 0;
virtual int open (short port_number) = 0;
virtual int receive (int timeout = 0) = 0;
virtual int send () = 0;
};
#endif /* _COMM_MANAGER_H */
|