⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 topn_c.h

📁 嵌入式RMON,RMON为Remote monitor的缩写,基于SNMP为网络提供主动监控及错误告警,智能交换路由必备协议
💻 H
字号:
/* Beholder RMON ethernet network monitor,Copyright (C) 1993 DNPAP group *//* See file COPYING 'GNU General Public Licence' for copyright details   */#ifndef _TOPN_C_H#define _TOPN_C_H#include <dnpap.h>#include <boolset.h>#include <hash.h>#include <mibsup.h>#include <timer.h>#include "topn_d.h"#define TOPN_BOOLEAN_DATASOURCE		1#define TOPN_BOOLEAN_OWNER			2typedef struct _TOPN_ENTRY{	BYTE  Address[HOST_SIZE_ADDR];    ULONG PrevValue;        /*  statistics in host structure are ULONG's too  */	ULONG Rate;    struct _TOPN_ENTRY  *Prev;    struct _TOPN_ENTRY  *Next;	} TOPN_ENTRY;typedef struct _TOPN_CONTROL{    LONG  HostIndex;    WORD  AddressLen;    LONG  RateBase;    LONG  TimeRemaining;    LONG  Duration;    LONG  RequestedSize;    ULONG StartTime;    BYTE  Owner[SNMP_SIZE_BUFCHR];    WORD  OwnerLen;    WORD  Status;    LONG  TableSize;    HashTable *Table;        TOPN_ENTRY  *TopNEntries;    TOPN_ENTRY  *TopNLast;    TOPN_ENTRY **TopNArray;        TIMER_DESCR *Timer;	BooleanSet   ObjectSet;    } TOPN_CONTROL;BOOLEAN TopNCInit(TOPN_CONTROL *topncontrol);BOOLEAN TopNCStart(TOPN_CONTROL *topncontrol);BOOLEAN TopNCStop(TOPN_CONTROL *topncontrol);BOOLEAN EntryAddList(TOPN_CONTROL *topncontrol, TOPN_ENTRY *entry);BOOLEAN EntryUpdateList(TOPN_CONTROL *topncontrol, TOPN_ENTRY *entry);TOPN_ENTRY* TopNEntrySearch(TOPN_CONTROL *topncontrol, SNMP_OBJECT *obj, WORD idlen);      BOOLEAN FillEntryTable(TOPN_CONTROL *topncontrol, LONG reqsize);#endif

⌨️ 快捷键说明

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