|
@@ -34,7 +34,7 @@ static void print_help()
|
|
|
printf(" --tun-dev <number> sepcify tun device name, for example: tun10, default: a random name such as tun987\n");
|
|
printf(" --tun-dev <number> sepcify tun device name, for example: tun10, default: a random name such as tun987\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, default: 8ms\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(" --mode <number> fec-mode,available values: 0, 1; 0 cost less bandwidth, 1 cost less latency;default: 0)\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(" --re-connect re-connect after lost connection,only for client. \n");
|
|
printf(" --re-connect re-connect after lost connection,only for client. \n");
|
|
|
|
|
|
|
@@ -100,6 +100,8 @@ int main(int argc, char *argv[])
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ g_fec_mode=0;
|
|
|
|
|
+
|
|
|
process_arg(argc,argv);
|
|
process_arg(argc,argv);
|
|
|
|
|
|
|
|
delay_manager.set_capacity(delay_capacity);
|
|
delay_manager.set_capacity(delay_capacity);
|
|
@@ -111,6 +113,7 @@ int main(int argc, char *argv[])
|
|
|
{
|
|
{
|
|
|
sprintf(tun_dev,"tun%u",get_true_random_number()%1000);
|
|
sprintf(tun_dev,"tun%u",get_true_random_number()%1000);
|
|
|
}
|
|
}
|
|
|
|
|
+ mylog(log_info,"using interface %s\n",tun_dev);
|
|
|
|
|
|
|
|
if(client_or_server==client_mode)
|
|
if(client_or_server==client_mode)
|
|
|
{
|
|
{
|