Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef BSD_NETWORK_INTERFACE_MONITOR_H
00014 #define BSD_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 (__NetBSD__) || defined (__OpenBSD__)
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 BSD_Network_Interface_Monitor
00041 {
00042 protected:
00043 BSD_Network_Interface_Monitor (const ACE_TCHAR *lookup_str);
00044
00045
00046 void update_i (void);
00047
00048
00049 void clear_impl (void);
00050
00051 protected:
00052 ACE_UINT64 value_;
00053
00054 private:
00055 void init (void);
00056 void fetch (ACE_UINT64& value) const;
00057
00058 ACE_UINT64 start_;
00059 ACE_CString lookup_str_;
00060 };
00061 }
00062 }
00063
00064 ACE_END_VERSIONED_NAMESPACE_DECL
00065
00066 #endif
00067
00068 #include "ace/post.h"
00069
00070 #endif // BSD_NETWORK_INTERFACE_MONITOR_H