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

📄 respmd.h

📁 Linux内核监控工具。 Linux内核监控工具。 Linux内核监控工具。
💻 H
字号:
#ifdef HAVE_CONFIG_H#include <config.h>#endif#include<errno.h>#ifdef HAVE_UNISTD_H#include<unistd.h>#else# error no unistd.h#endif#ifdef HAVE_SYSLOG_H#include <syslog.h> //openlog,closelog#else# error no syslog.h#endif#ifdef HAVE_STRING_H#include <string.h>  //strlen#else# error no string.h#endif#ifdef HAVE_STDLIB_H#include <stdlib.h> //atof,getloadavg...#else# error no stdlib.h#endif#ifdef HAVE_SIGNAL_H#include <signal.h> //signal#else# error no signal.h#endif#ifdef HAVE_SYS_TYPES_H#include<sys/types.h> // Include these for socket(), connect(), bind(), etc.#else# error no sys/types.h#endif#ifdef HAVE_SYS_SOCKET_H#include <sys/socket.h> // Include these for socket(), connect(), bind(), etc.#else# error no sys/socket.h#endif#ifdef HAVE_NETINET_IN_H#include<netinet/in.h>  // Include this for htonl(), htons(), etc.#else# error no netinet/in.h#endif#ifdef HAVE_ARPA_INET_H#include<arpa/inet.h>  //inet_pton#else# error no arpa/inet.h#endif#ifdef HAVE_CTYPE_H#include <ctype.h>#else# error no ctype.h#endif#include<sys/time.h>#include <netdb.h>typedef enum{        CFG_PARAMETER,        CFG_VALUE,        CFG_SECTION,} cfgKeywordValue;struct smtps_t{char name[61];char serv[6];char url[51];char port[7];char proxy[31];char proxy_port[7];int polltime;int disable;time_t lastpoll;int up;int down;struct smtps_t *next;};int read_confd(char *filename, struct smtps_t *serverpointer); //for read_cfgd.cvoid *parse_entry(char *buf); //for read_cfgd.cvoid show_menu(int n);  //for help.cint poll_smtp(struct smtps_t *smtppointer);int poll_http(struct smtps_t *smtppointer);int poll_nntp(struct smtps_t *smtppointer);int poll_imap(struct smtps_t *smtppointer);char *rm_first_spaces(char *k);int is_comment(char *c);int make_deamon();int slog(int k, char *fmt, ...);int client(char *addr, char *port,char *machine, char *status, char *error, char *Amachine, char *actionid, char *Sstate, char *service);int send_to_server(char *service,char *status, int updown, struct smtps_t *smtppointer, char *fmt, ...);int send_tcp(unsigned char *buf, int buf_len, int sockfd);int encrypt_stuff(char *key, unsigned char **outbuf, char *fmt, ...);int decrypt_stuff(char *key, unsigned char **outbuf, unsigned char *inbuf, int inlen);

⌨️ 快捷键说明

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