From b60f3590794bbc0451f755056a69dae754e2025a Mon Sep 17 00:00:00 2001 From: Daniel Fu Date: Sun, 26 Jun 2016 13:43:28 +0800 Subject: [PATCH 1/2] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 572ce598c..5457bf531 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,12 @@ TCP流转换为KCP+UDP流,:zap:***[下载地址](https://github.com/xtaci/kcpt ***kcptun是[kcp](https://github.com/xtaci/kcp-go)协议的一个简单应用,可以用于任意tcp网络程序的传输承载,以提高在丢包环境下的网络流畅度。*** _采用极简设计,客户端+服务器源码总共400行,方便用户自己扩展_ 。 +### *快速设定* :lollipop: +``` +./server_linux_amd64 -t "127.0.0.1:1080" -l ":554" -sndwnd 2048 -rcvwnd 2048 -mode fast2 +./client_darwin_amd64 -r "IP地址:554" -l ":1080" -sndwnd 256 -rcvwnd 2048 -mode fast2 +``` + ### *使用の方法* :lollipop: ![client](client.png) ![server](server.png) From 8ee35e13e3ca5ebe177e02c8f4dfe16ee55d30e9 Mon Sep 17 00:00:00 2001 From: Daniel Fu Date: Sun, 26 Jun 2016 13:48:42 +0800 Subject: [PATCH 2/2] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5457bf531..c85aa5147 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,8 @@ _采用极简设计,客户端+服务器源码总共400行,方便用户自 ### *快速设定* :lollipop: ``` -./server_linux_amd64 -t "127.0.0.1:1080" -l ":554" -sndwnd 2048 -rcvwnd 2048 -mode fast2 -./client_darwin_amd64 -r "IP地址:554" -l ":1080" -sndwnd 256 -rcvwnd 2048 -mode fast2 +服务器: ./server_linux_amd64 -t "127.0.0.1:1080" -l ":554" -mode fast2 // 转发到本地1080端口 +客户端: ./client_darwin_amd64 -r "IP地址:554" -l ":1080" -mode fast2 // 监听本地1080端口 ``` ### *使用の方法* :lollipop: