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

📄 nodelist.h

📁 linux/unix下c/s形式的资源监视,客户端负责搜集机器,再传送到服务端.
💻 H
字号:
#ifndef _NODELIST_H_#define _NODELIST_H_#include "statinfo.h"#include "config.h"#include <linux/proc_fs.h>struct node_entry {	char host[20];				/* host's ip address */	system_load_info* sysload;	/* system load */	long timestamp;				/* timestamp when system load is last modified */	struct proc_dir_entry *dir;	/* this node's dir entry in /proc/cluster */	struct node_entry* prev;	struct node_entry* next;};void nlist_init();system_load_info* nlist_get(const char* host_ip);/* update the node list according to the new sysload packet */void nlist_update(const char* host_ip, system_load_info* sysload);/* check the status of current node list */void nlist_check();/* remove all nodes in the list */void nlist_removeall();#endif

⌨️ 快捷键说明

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