updatemessage.h

来自「RSA algorithm implementation is given」· C头文件 代码 · 共 41 行

H
41
字号
#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 + =
减小字号Ctrl + -
显示快捷键?