server.h
来自「Linux下server与client的通信实现。Server支持多线程。附有m」· C头文件 代码 · 共 36 行
H
36 行
struct ElementList { char *element; struct ElementList *next;};struct ConfigLine { struct ElementList *uids; struct ElementList *programs; struct ElementList *IPAddresses; struct ElementList *ports;};struct ConfigEntry { char *uid; char *program; char *IPAddress; int port;};struct FirewallConfig { struct ConfigEntry *entry; struct FirewallConfig *left; struct FirewallConfig *right;};extern struct FirewallConfig *addRule (char *, struct FirewallConfig *, int *); extern void showTable (struct FirewallConfig *);extern int compareEntry (struct ConfigEntry *, struct ConfigEntry *);extern struct ConfigLine *parseLine (char *, int *);extern char checkEntry (char *, struct FirewallConfig *, int *);void freeElementList (struct ElementList *);#define WRONG_IP_ADDRESS 1
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?