Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef LINUX_NETWORK_INTERFACE_MONITOR_H
00014 #define LINUX_NETWORK_INTERFACE_MONITOR_H
00015
00016 #include "ace/pre.h"
00017
00018 #include "ace/SString.h"
00019
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 #pragma once
00022 #endif
00023
00024 #include "ace/Monitor_Control/Monitor_Control_export.h"
00025
00026 #if defined (linux) || defined (AIX)
00027
00028 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00029
00030 namespace ACE
00031 {
00032 namespace Monitor_Control
00033 {
00034
00035
00036
00037
00038
00039
00040 class MONITOR_CONTROL_Export Linux_Network_Interface_Monitor
00041 {
00042 protected:
00043
00044
00045
00046 Linux_Network_Interface_Monitor (const char *scan_format);
00047
00048
00049 void update_i (void);
00050
00051
00052 void clear_impl (void);
00053
00054 protected:
00055 ACE_UINT64 value_;
00056
00057 private:
00058
00059 void init (void);
00060
00061 private:
00062 static const unsigned long MAX_INTERFACES = 10UL;
00063 ACE_UINT64 value_array_[MAX_INTERFACES];
00064 ACE_UINT64 start_;
00065 ACE_CString scan_format_;
00066 };
00067 }
00068 }
00069
00070 ACE_END_VERSIONED_NAMESPACE_DECL
00071
00072 #endif
00073
00074 #include "ace/post.h"
00075
00076 #endif // LINUX_NETWORK_INTERFACE_MONITOR_H