📄 updatemessage.h
字号:
#ifndef _UPDATE_MESSAGE_H_#define _UPDATE_MESSAGE_H_#include "broadcastEntry.h"class updateMessage{ u_int8_t type; u_int8_t reserved1; u_int8_t reserved2; u_int8_t entries_cnt; list<broadcast_entry> brentry_list; public: updateMessage() { //type = DSDV_PERIODIC_UPDATE; reserved1 = 0; reserved2 = 0; } u_int8_t getEntriesCnt() { return entries_cnt; } void setEntriesCnt(u_int8_t cnt) { entries_cnt = cnt; } void setType(u_int8_t val) { type = val;} void printUpdate(); void createMessage(char * buf); void applyUpdates(u_int32_t src); void copyIntoBuf(char * buf); void insertIntoList(u_int32_t dst, u_int32_t seq, u_int32_t metric); void addToBrdcstList(u_int32_t dst, u_int32_t seq, u_int32_t metric); };#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -