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

📄 snmp_util.h

📁 -
💻 H
字号:
/* * $Id: snmp_util.h,v 1.6 1998/09/23 17:20:04 wessels Exp $ */#ifndef SNMP_UTIL_H#define SNMP_UTIL_H/* * call a function at regular intervals (in seconds): */extern void snmp_alarm(int ival, void (*handler) (void));/* * service for filedescriptors: */extern void fd_add(int fd, void (*func) (int fd));extern void fd_service(void);/* ---------------------------------------------------------------------- *//* * **  SNMP Agent extension for Spacer-Controler Management * ** * **  Copyright (c) 1997 FT/CNET/DES/GRL Olivier Montanuy * **  *//* * ** Function to safely copy a string, and ensure the last * ** character is always '\0'. */void     strcpy_safe(char *str, int str_len, char *val);/* * ** Function to get IP address of this agent * ** WARNING: this scans all interfaces (slow) */u_longUtil_local_ip_address(void);/* * ** Function to get the current time in seconds */long     Util_time_now(void);/* * ** Function to determine how long the agent has been running * *  (WARNING: this seems rather slow) */long     Util_time_running();/* * ** Read data from file */int    Util_file_read(char *file, int offset, char *data, int dataSz);/* * ** Write data into file */int    Util_file_write(char *file, int offset, char *data, int dataSz);/* ---------------------------------------------------------------------- */#endif

⌨️ 快捷键说明

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