Cleanup ACE_HAS_PTHREAD_SIGMASK_PROTOTYPE, all platforms support it so far as I can...
[ACE_TAO.git] / ACE / apps / drwho / Multicast_Manager.h
blob59700edda6552d19371d349e988254f343981aa6
1 /* -*- C++ -*- */
3 //=============================================================================
4 /**
5 * @file Multicast_Manager.h
7 * @author Douglas C. Schmidt
8 */
9 //=============================================================================
12 #ifndef _MULTICAST_MANAGER_H
13 #define _MULTICAST_MANAGER_H
15 #include "global.h"
16 #include "ace/os_include/netinet/os_in.h"
17 #include "ace/os_include/os_netdb.h"
19 class Host_Elem
21 public:
22 const char *host_name;
23 in_addr host_addr;
24 int checked_off;
25 Host_Elem *next;
27 Host_Elem (const char *h_name, Host_Elem *n);
30 /**
31 * @class Multicast_Manager
33 * @brief This file handles all the operations upon host machines names
34 * and addresses.
36 class Multicast_Manager
38 public:
39 static void add_host (const char *host_name);
40 static void checkoff_host (in_addr host_addr);
41 static int get_next_host_addr (in_addr &host_addr);
42 static int outstanding_hosts_remain ();
43 static int get_next_non_responding_host (const char *&host_name);
44 static int insert_hosts_from_file (const char *filename);
45 static void insert_default_hosts ();
47 private:
48 static hostent *get_host_entry (const char *host);
50 static int received_host_count;
51 static const char *host_names[];
52 static Host_Elem *drwho_list;
53 static Host_Elem *current_ptr;
56 #endif /* _MULTICAST_MANAGER_H */