This commit is contained in:
esrrhs committed 2019-10-26 19:54:49 +08:00
1 parent a2f8819782
commit 2ffba2224b
4 files changed
+86 -39

No files matched your search

+4 -4
View File
@@ -41,11 +41,11 @@ Usage:
-tcp_bs tcp的发送接收缓冲区大小,默认1MB
Tcp send and receive buffer size, default 1MB
-tcp_mw tcp的最大窗口,默认100
-tcp_mw tcp的最大窗口,默认10000
The maximum window of tcp, the default is 100
-tcp_rst tcp的超时发送时间,默认200ms
Tcp timeout resend time, default 200ms
-tcp_rst tcp的超时发送时间,默认400ms
Tcp timeout resend time, default 400ms
`
func main() {
@@ -59,7 +59,7 @@ func main() {
tcpmode := flag.Int("tcp", 0, "tcp mode")
tcpmode_buffersize := flag.Int("tcp_bs", 1024*1024, "tcp mode buffer size")
tcpmode_maxwin := flag.Int("tcp_mw", 100, "tcp mode max win")
tcpmode_resend_timems := flag.Int("tcp_rst", 200, "tcp mode resend time ms")
tcpmode_resend_timems := flag.Int("tcp_rst", 400, "tcp mode resend time ms")
flag.Usage = func() {
fmt.Printf(usage)
}