add
This commit is contained in:
parent
9fcaf84ac3
commit
b8b216c115
6
main.go
6
main.go
@ -84,8 +84,8 @@ Usage:
|
|||||||
-tcp_bs tcp的发送接收缓冲区大小,默认1MB
|
-tcp_bs tcp的发送接收缓冲区大小,默认1MB
|
||||||
Tcp send and receive buffer size, default 1MB
|
Tcp send and receive buffer size, default 1MB
|
||||||
|
|
||||||
-tcp_mw tcp的最大窗口,默认10000
|
-tcp_mw tcp的最大窗口,默认100000
|
||||||
The maximum window of tcp, the default is 10000
|
The maximum window of tcp, the default is 100000
|
||||||
|
|
||||||
-tcp_rst tcp的超时发送时间,默认400ms
|
-tcp_rst tcp的超时发送时间,默认400ms
|
||||||
Tcp timeout resend time, default 400ms
|
Tcp timeout resend time, default 400ms
|
||||||
@ -130,7 +130,7 @@ func main() {
|
|||||||
key := flag.Int("key", 0, "key")
|
key := flag.Int("key", 0, "key")
|
||||||
tcpmode := flag.Int("tcp", 0, "tcp mode")
|
tcpmode := flag.Int("tcp", 0, "tcp mode")
|
||||||
tcpmode_buffersize := flag.Int("tcp_bs", 1*1024*1024, "tcp mode buffer size")
|
tcpmode_buffersize := flag.Int("tcp_bs", 1*1024*1024, "tcp mode buffer size")
|
||||||
tcpmode_maxwin := flag.Int("tcp_mw", 10000, "tcp mode max win")
|
tcpmode_maxwin := flag.Int("tcp_mw", 100000, "tcp mode max win")
|
||||||
tcpmode_resend_timems := flag.Int("tcp_rst", 400, "tcp mode resend time ms")
|
tcpmode_resend_timems := flag.Int("tcp_rst", 400, "tcp mode resend time ms")
|
||||||
tcpmode_compress := flag.Int("tcp_gz", 0, "tcp data compress")
|
tcpmode_compress := flag.Int("tcp_gz", 0, "tcp data compress")
|
||||||
nolog := flag.Int("nolog", 0, "write log file")
|
nolog := flag.Int("nolog", 0, "write log file")
|
||||||
|
Loading…
Reference in New Issue
Block a user