📄 defines.h
字号:
/* $Author: peltotas $ $Date: 2006/03/15 12:46:00 $ $Revision: 1.134 $ *//* * MAD-ALCLIB: Implementation of ALC/LCT protocols, Compact No-Code FEC, * Simple XOR FEC, Reed-Solomon FEC, and RLC Congestion Control 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 */#include <sys/types.h>#ifndef _DEFINES_H_#define _DEFINES_H_/**** Defines ****//* Receiver socket buffer size */#define RECEIVER_SOCKET_BUFFER_SIZE 2000000/* Release version & date */#define MAD_FCL_RELEASE_VERSION "1.4"#define MAD_FCL_RELEASE_DATE "March 21, 2006"/* SSM support for WIN XP (IPv4) or for Linux (IPv4 and IPv6) without GNU libc updates */#define SSM/* Use ZLIB compression library */#define USE_ZLIB/* bit field order is compiler/OS dependant */#if defined(LINUX) || defined(WIN32)#define _BIT_FIELDS_LTOH#undef _BIT_FIELDS_HTOL#elif defined(SOLARIS)#undef _BIT_FIELDS_LTOH#define _BIT_FIELDS_HTOL#endif#define FDT_TOI 0 /* TOI for FDT */ #define EXT_FDT 192 /* Extension header defined by FLUTE */#define EXT_CENC 193 /* Extension header defined by FLUTE *//* ALC version */#define ALC_VERSION 1#define FLUTE_VERSION 1/* FEC schemes */ #define COM_NO_C_FEC_ENC_ID 0#define SIMPLE_XOR_FEC_ENC_ID 2#define SB_LB_E_FEC_ENC_ID 128#define SB_SYS_FEC_ENC_ID 129#define COM_FEC_ENC_ID 130/* FEC algorithms */#define REED_SOL_FEC_INST_ID 0/* Congestion Control mechanism */#define Null 0#define RLC 1/* for RLC */#define RLC_SP_CYCLE 250 /* 250 ms, for fast layer addition */#define RLC_WAIT_AFTER_SP 2#define RLC_DEAF_PERIOD 10000 /* 10000 ms, due to IGMP leave latency */#define RLC_LATE_ACCEPTED 0#define RLC_LOSS_ACCEPTED 0#define RLC_PKT_TIMEOUT 500 /* 500 ms */#define RLC_LOSS_LIMIT 1#define RLC_LOSS_TIMEOUT 20#define RLC_MAX_LATES 100/* Extension headers defined by LCT */#define EXT_NOP 0#define EXT_AUTH 1/* Extension header defined by ALC */#define EXT_FTI 64/* Operation modes */#define SENDER 0#define RECEIVER 1#define TRANCEIVER 2 /* Maximum values for some parameters */#define MAX_ALC_SESSIONS 100#define MAX_CHANNELS_IN_SESSION 10#define MAX_PACKET_LENGTH 1500#define MAX_LENGTH 100/* Others */#define OK 4#define EMPTY_PACKET 3#define HDR_ERROR 2#define MEM_ERROR 1#define DUP_PACKET 0#ifndef MAX_PATH #define MAX_PATH 1024#endif#define MAX_LENGTH 100#define MAX_TX_QUEUE_SIZE 1000 /* default == 1000 *//* Content Encoding Algoriths */#define ZLIB 1#define DEFLATE 2#define GZIP 3#define PAD 4#ifdef USE_ZLIB#define ZLIB_BUFLEN 16384#define GZ_SUFFIX "~gz"#define GZ_SUFFIX_LEN (sizeof(GZ_SUFFIX)-1)#define ZLIB_FDT 1#define ZLIB_FDT_AND_GZIP_FILES 2#endif#define PAD_FILES 3#define PAD_SUFFIX "~pad" #define PAD_SUFFIX_LEN (sizeof(PAD_SUFFIX)-1)#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -