Network stats

来自MudWiki

名称

   network_stats() - 返回网络连接统计信息

语法

   mapping network_stats();

描述

   返回网络相关数据统计的映射,内容如下:

   - incoming packets total : int
   - incoming volume total : int
   - outgoing packets total : int
   - outgoing volume total : int

   - incoming packets port X : int
   - incoming volume port X : int
   - outgoing packets port X : int
   - outgoing volume port X : int

   如果驱动编译时定义了 PACKAGE_SOCKETS,还会有以下内容:

   - incoming packets sockets : int
   - incoming volume sockets : int
   - outgoing packets sockets : int
   - outgoing volume sockets : int

   这是 FLUFFOS 新增的外部函数,要求驱动程序编译时定义了 PACKAGE_CONTRIB 包。

参考

   sys_network_ports(3)

翻译

   雪风(i@mud.ren)