olsr_printer.h

来自「UM-OLSR is an OLSR (Optimized Link State」· C头文件 代码 · 共 60 行

H
60
字号
/*************************************************************************** *   Copyright (C) 2004 by Francisco J. Ros                                * *   fjrm@dif.um.es                                                        * *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * *   This program is distributed in the hope that it will be useful,       * *   but WITHOUT ANY WARRANTY; without even the implied warranty of        * *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         * *   GNU General Public License for more details.                          * *                                                                         * *   You should have received a copy of the GNU General Public License     * *   along with this program; if not, write to the                         * *   Free Software Foundation, Inc.,                                       * *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             * ***************************************************************************/////// \file	OLSR_printer.h/// \brief	Header file which includes all printing functions related to OLSR.///#ifndef __OLSR_printer_h__#define __OLSR_printer_h__#include <olsr/OLSR.h>#include <olsr/OLSR_pkt.h>#include <olsr/OLSR_repositories.h>#include <packet.h>#include <ip.h>#include <trace.h>/// Encapsulates all printing functions for OLSR data structures and messages.class OLSR_printer {	friend class OLSR;protected:	static void	print_linkset(Trace*, linkset_t&);	static void	print_nbset(Trace*, nbset_t&);	static void	print_nb2hopset(Trace*, nb2hopset_t&);	static void	print_mprset(Trace*, mprset_t&);	static void	print_mprselset(Trace*, mprselset_t&);	static void	print_topologyset(Trace*, topologyset_t&);		static void	print_olsr_pkt(FILE*, OLSR_pkt*);	static void	print_olsr_msg(FILE*, OLSR_msg&);	static void	print_olsr_hello(FILE*, OLSR_hello&);	static void	print_olsr_tc(FILE*, OLSR_tc&);	static void	print_olsr_mid(FILE*, OLSR_mid&);public:	static void	print_cmn_hdr(FILE*, struct hdr_cmn*);	static void	print_ip_hdr(FILE*, struct hdr_ip*);};#endif

⌨️ 快捷键说明

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