rpc_stats.hh

来自「定向扩散路由协议」· HH 代码 · 共 46 行

HH
46
字号
// *********************************************************// // rpc_stats.hh  : Collect statistics from the RPC radio// authors       : Chalermek Intanagonwiwat and Fabio Silva//// $Id: rpc_stats.hh,v 1.2 2002/03/21 06:58:26 fabio Exp $//// *********************************************************#ifndef rpc_stats_hh#define rpc_stats_hh#ifdef HAVE_CONFIG_H#include "config.h"#endif // HAVE_CONFIG_H#include "stdio.h"#include "stdlib.h"class RPCStats {public:  RPCStats(int id);  void printStats(FILE *output);private:  int node_id;  // Counters  int rpc_tx_bytes;  int rpc_rx_bytes;  int rpc_tx_frames;  int rpc_rx_frames;  // RPC Interface files  FILE *tx_bytes;  FILE *rx_bytes;  FILE *tx_frames;  FILE *rx_frames;  void readCounters();  void openFiles();  void closeFiles();};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?