tfstat

所属分类:交通/航空行业
开发工具:C++
文件大小:0KB
下载次数:0
上传日期:2023-10-01 19:56:19
上 传 者sh-1993
说明:  流量使用监视器,
(Traffic Usage Monitor,)

文件列表:
LICENSE (1327, 2023-10-01)
Makefile (583, 2023-10-01)
src/ (0, 2023-10-01)
src/Common.cpp (8211, 2023-10-01)
src/Common.hpp (5311, 2023-10-01)
src/Database.cpp (9049, 2023-10-01)
src/Database.hpp (2474, 2023-10-01)
src/Signals.cpp (577, 2023-10-01)
src/defaults.hpp (1149, 2023-10-01)
src/tfstat.cpp (12357, 2023-10-01)
src/tfstat.hpp (1828, 2023-10-01)
src/traffic.cpp (10255, 2023-10-01)
src/traffic.hpp (1545, 2023-10-01)

# tfstat Traffic Usage Monitor (pre-alpha/proof-of-concept state) # Purpose tfstat is meant to overcome some of the shortcomings of current UNIX-based traffic monitors. tfstat continuously stores data (at specified intervals) such that a user can recall historical network bandwidth usage. # Usage Currently tfstat is in a pre-alpha phase. It has the basic functionality to work on Linux, however lacks the ability to grab traffic data on bsd-based systems. Furthermore, most command line inputs are ignored and the program simply runs per the specified values in src/defaults.hpp. For these reasons, I do not reccommend using tfstat in its current state beyond testing functionality. The code requires the user to rewrite/recompile the src/tfstat.cpp file in order to test the traffic monitoring functionality. There is a large block of code commented out in the `main` function which can be uncommented for testing. # Storage Methods tfstat uses a database-type method of storing historical data. When an interface's network stats are being saved, tfstat generates both a database file and a table file. The database file is never loaded into memory in full because it may cause issues depending on the size. While the table file is only about 50% smaller, it is easier to manage in memory. # Future Plans In the future, I plan to make tfstat a functioning traffic monitoring package such that a user can have it run indefinitely in the background and recall traffic usage statistics for any period in time. By default, tfstat saves network statistics in 5 minute intervals. Given the 40-byte data structure being saved, if tfstat were left running for 5 years, the database file would only reach about 21MB of disk usage. There will be an option to overwrite old database entries beyond a specified period.

近期下载者

相关文件


收藏者