mirror of
https://github.com/wangyu-/UDPspeeder.git
synced 2025-01-31 12:19:35 +08:00
changed default values ,changed makefile
This commit is contained in:
parent
34cb20a464
commit
709732a2ec
12
main.cpp
12
main.cpp
@ -33,10 +33,10 @@ int debug_force_flush_fec=0;
|
|||||||
|
|
||||||
int fec_data_num=20;
|
int fec_data_num=20;
|
||||||
int fec_redundant_num=10;
|
int fec_redundant_num=10;
|
||||||
int fec_mtu=1200;
|
int fec_mtu=1250;
|
||||||
int fec_pending_num=200;
|
int fec_pending_num=200;
|
||||||
int fec_pending_time=10*1000; //10ms
|
int fec_pending_time=8*1000; //8ms
|
||||||
int fec_type=0;
|
int fec_type=1;
|
||||||
|
|
||||||
int jitter_min=0*1000;
|
int jitter_min=0*1000;
|
||||||
int jitter_max=0*1000;
|
int jitter_max=0*1000;
|
||||||
@ -1170,8 +1170,8 @@ void print_help()
|
|||||||
|
|
||||||
printf("main options:\n");
|
printf("main options:\n");
|
||||||
printf(" -f,--fec x:y forward error correction,send y redundant packets for every x packets\n");
|
printf(" -f,--fec x:y forward error correction,send y redundant packets for every x packets\n");
|
||||||
printf(" --timeout <number> how long could a packet be held in queue before doing fec,unit: ms\n");
|
printf(" --timeout <number> how long could a packet be held in queue before doing fec,unit: ms,default :8ms\n");
|
||||||
printf(" --mode <number> fec-mode,available values: 0,1 ; 0 cost less bandwidth,1 cost less latency\n");
|
printf(" --mode <number> fec-mode,available values: 0,1 ; 0 cost less bandwidth,1 cost less latency(default)\n");
|
||||||
printf(" --report <number> turn on send/recv report,and set a period for reporting,unit:s\n");
|
printf(" --report <number> turn on send/recv report,and set a period for reporting,unit:s\n");
|
||||||
|
|
||||||
printf("advanced options:\n");
|
printf("advanced options:\n");
|
||||||
@ -1190,7 +1190,7 @@ void print_help()
|
|||||||
printf(" -j ,--jitter jmin:jmax similiar to -j above,but create jitter randomly between jmin and jmax\n");
|
printf(" -j ,--jitter jmin:jmax similiar to -j above,but create jitter randomly between jmin and jmax\n");
|
||||||
printf(" -i,--interval imin:imax similiar to -i above,but scatter randomly between imin and imax\n");
|
printf(" -i,--interval imin:imax similiar to -i above,but scatter randomly between imin and imax\n");
|
||||||
printf(" -q,--queue-len <number> max fec queue len,only for mode 0\n");
|
printf(" -q,--queue-len <number> max fec queue len,only for mode 0\n");
|
||||||
printf(" --decode-buf <number> size of buffer of fec decoder,unit:packet,default:2000\n");
|
printf(" --decode-buf <number> size of buffer of fec decoder,unit:packet,default:2000\n");
|
||||||
printf(" --fix-latency <number> try to stabilize latency,only for mode 0\n");
|
printf(" --fix-latency <number> try to stabilize latency,only for mode 0\n");
|
||||||
printf(" --delay-capacity <number> max number of delayed packets\n");
|
printf(" --delay-capacity <number> max number of delayed packets\n");
|
||||||
printf(" --disable-fec <number> completely disable fec,turn the program into a normal udp tunnel\n");
|
printf(" --disable-fec <number> completely disable fec,turn the program into a normal udp tunnel\n");
|
||||||
|
2
makefile
2
makefile
@ -10,7 +10,7 @@ FLAGS= -std=c++11 -Wall -Wextra -Wno-unused-variable -Wno-unused-parameter -Wn
|
|||||||
|
|
||||||
SOURCES=main.cpp log.cpp common.cpp lib/fec.c lib/rs.c packet.cpp delay_manager.cpp fd_manager.cpp connection.cpp fec_manager.cpp
|
SOURCES=main.cpp log.cpp common.cpp lib/fec.c lib/rs.c packet.cpp delay_manager.cpp fd_manager.cpp connection.cpp fec_manager.cpp
|
||||||
|
|
||||||
NAME=speeder
|
NAME=speederv2
|
||||||
TARGETS=amd64 arm mips24kc_be x86 mips24kc_le
|
TARGETS=amd64 arm mips24kc_be x86 mips24kc_le
|
||||||
|
|
||||||
TAR=${NAME}_binaries.tar.gz `echo ${TARGETS}|sed -r 's/([^ ]+)/speeder_\1/g'`
|
TAR=${NAME}_binaries.tar.gz `echo ${TARGETS}|sed -r 's/([^ ]+)/speeder_\1/g'`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user