dsdv.h
来自「RSA algorithm implementation is given」· C头文件 代码 · 共 56 行
H
56 行
#ifndef _DSDV_H_#define _DSDV_H_#include "const.h"typedef void (*hfunc_t) (void);class dsdv{ dsdvSocket dsdvSock; u_int64_t lastFullDumpTime; struct handler{ int fd; hfunc_t func; }handlers[MAX_HANDLERS]; int handler_cnt; bool is_broadcast; public: dsdv(){ handler_cnt = 0; } void dsdv_init(char *interface); void process_dsdv(); void processRecvMsg(u_int32_t src); void processPeriodicUpdate(u_int32_t src); int dsdv_daemon(char *interface); void setRebootTimer(); void rebootHandler(); void startUpdateTimer(); void updateHandler(); void setPeriodicTimer(); void periodicHandler(); void mainDaemonLoop(); int registerSignal(); void register_handler_function(int fd, hfunc_t fun); void handler(int type); void sigint_handler(int type); void broadcastRTable(); bool isFullDumpNeeded(); void send_datagram(void *data_buf, int data_len); void settling_time_handler(void *data); void process_traffic_data(); };#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?