📄 flute_defines.h
字号:
/* $Author: peltotas $ $Date: 2006/03/15 12:46:00 $ $Revision: 1.9 $ *//* * MAD-FLUTELIB: Implementation of FLUTE protocol. * Copyright (c) 2003-2006 TUT - Tampere University of Technology * main authors/contacts: jani.peltotalo@tut.fi and sami.peltotalo@tut.fi * * 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 */#ifndef _FLUTE_DEFINES_H_#define _FLUTE_DEFINES_H_/**** Defines ****//* Use OpenSSL for MD5 check */#define USE_OPENSSL/* Include host name to fileURI in FDT *//*#define HOSTNAME_TO_FDT*//* FDT Instance FEC OTI place */#define FDT_INST_FEC_OTI_COMMON/*#define FDT_INST_FEC_OTI_FILE*//* MAX encoding symbol lengths for IPv4 */#define MAX_SYMB_LENGTH_IPv4_FEC_ID_0_130 1428 /* calculated for FDT with TSI&TOI 4+4bytes */#define MAX_SYMB_LENGTH_IPv4_FEC_ID_128_129 1424/* MAX encoding symbol length for IPv6 */#define MAX_SYMB_LENGTH_IPv6_FEC_ID_0_130 1408#define MAX_SYMB_LENGTH_IPv6_FEC_ID_128_129 1404 #define MAX_SB_LEN_NULL_FEC 255#define MAX_SB_LEN_SIMPLE_XOR_FEC 10#define MAX_N_REED_SOLOMON 255#define MAX_PACKET_LENGTH 1500 /* MTU */#define MAX_LENGTH 100/* Default values for some parameters */#define DEF_FEC 0 /* 0 = Null-FEC, 1 = Simple XOR FEC, 2 = Reed-Solomon FEC */#define DEF_CC Null#define DEF_MCAST_IPv4_ADDR "226.10.40.1"#define DEF_MCAST_IPv6_ADDR "ff1a::1"#define DEF_MCAST_PORT "4001"#define DEF_NB_CHANNEL 1#define DEF_TSI 0#define DEF_FDT "fdt.xml"#define DEF_SYMB_LENGTH MAX_SYMB_LENGTH_IPv4_FEC_ID_0_130#define DEF_MAX_SB_LEN 64 #define DEF_TX_RATE 250#define DEF_TTL 1#define DEF_TX_NB 1#define DEF_BASE_DIR "flute-downloads"#define DEF_FEC_ENC_ID COM_NO_C_FEC_ENC_ID#define DEF_FEC_INST_ID REED_SOL_FEC_INST_ID#define DEF_FEC_RATIO 50#define DEF_ADDR_FAMILY PF_INET#define DEF_DURATION 604800 /* Sender will send one week if -C is set *//* Packet loss probabilities */#define P_LOSS_WHEN_OK 5#define P_LOSS_WHEN_LOSS 50/* Sent FDT Instance between x*MB */ #define FDT_INTERVAL (1*1048576)#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -