soclog.h

来自「一个可以执行Client端传来的Shell命令的服务器程序」· C头文件 代码 · 共 49 行

H
49
字号
/**** * soclog.h *  - This file contains the headers for the routines for logging  *    usage of Socket Demon. If logging is not 'turning on' via *    the define LOG_TO_DEATH then this file willbe null. ****/#ifndef _SOCLOG_H_#define _SOCLOG_H_#include "socdefs.h"#ifdef LOG_TO_DEATHtypedef struct {  unsigned char class;  unsigned char netid;  unsigned char subnetid;  unsigned char hostid;} dotted_quad;/* ok ok, I know that the fields aren't really class,net,sub,host  *//* as above, but that's about as close as you can fit them for the *//* dotted quad format, and class two addresses are pretty close to *//* that format..                                                   *//* now a structure for log records.. */typedef enum {  accepting_connection,  bad_password,  connection_closed,  killed_by_command} t_log_type;extern boolean log_to_file;extern boolean command_log;extern char log_file[PROG_SPEC_LEN];extern char cmd_log_file[PROG_SPEC_LEN];extern dotted_quad client_dotted_q;extern char dotted_4_str[20];extern char log_string[MAX_OUTPUT_LEN];extern void log_stuff ();extern void log_command();#endif /* LOG_TO_DEATH */#endif /* _SOCLOG_H_ */

⌨️ 快捷键说明

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