Skip to content

Commit

Permalink
changed default values ,changed makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu- committed Oct 19, 2017
1 parent 34cb20a commit 709732a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ int debug_force_flush_fec=0;

int fec_data_num=20;
int fec_redundant_num=10;
int fec_mtu=1200;
int fec_mtu=1250;
int fec_pending_num=200;
int fec_pending_time=10*1000; //10ms
int fec_type=0;
int fec_pending_time=8*1000; //8ms
int fec_type=1;

int jitter_min=0*1000;
int jitter_max=0*1000;
Expand Down Expand Up @@ -1170,8 +1170,8 @@ void print_help()

printf("main options:\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(" --mode <number> fec-mode,available values: 0,1 ; 0 cost less bandwidth,1 cost less latency\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(default)\n");
printf(" --report <number> turn on send/recv report,and set a period for reporting,unit:s\n");

printf("advanced options:\n");
Expand All @@ -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(" -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(" --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(" --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");
Expand Down
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

NAME=speeder
NAME=speederv2
TARGETS=amd64 arm mips24kc_be x86 mips24kc_le

TAR=${NAME}_binaries.tar.gz `echo ${TARGETS}|sed -r 's/([^ ]+)/speeder_\1/g'`
Expand Down

0 comments on commit 709732a

Please sign in to comment.