![]() |
Nevelex Utilities 1.1.4 09/06/2003 | |
ACEHelper.h00001 00031 /*************************************************************************** 00032 ACEHelper.h - Utility class for doing 00033 ------------------- 00034 Author: Michel Dalal 00035 Date: Tue Nov 12 2002 00036 Copyright: (C) 2002-2003 Nevelex Corporation 00037 ***************************************************************************/ 00038 00039 #ifndef ACEHELPER_H 00040 #define ACEHELPER_H 00041 00042 #include <vector> 00043 #include "ace/INET_Addr.h" 00044 #include "ace/Task.h" 00045 00053 namespace nevelex_util 00054 { 00058 typedef std::vector<unsigned long> AddressVector; 00059 00071 class ACEHelper 00072 { 00073 private: 00078 ACEHelper(); 00079 00087 static void initLocalAddressList(AddressVector& addressVector); 00088 00089 public: 00097 static bool isLocalAddress(unsigned long address); 00098 00106 static bool isLocalAddress(const ACE_INET_Addr& address); 00107 00116 static bool isTaskActive(const char* name, ACE_Task<ACE_MT_SYNCH>& task); 00117 00126 static void stopTask(const char* name, ACE_Task<ACE_MT_SYNCH>& task); 00127 00136 static bool isTaskActive(const char* name, ACE_Task<ACE_NULL_SYNCH>& task); 00137 00146 static void stopTask(const char* name, ACE_Task<ACE_NULL_SYNCH>& task); 00147 }; 00148 }; 00149 #endif |
||
Copyright © 2003. All Rights Reserved. Nevelex Corporation.
Generated: Sat Sep 6 15:54:01 2003