From d7d05fb334db91e3ecbf009ca2650d88f9ed7b46 Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期一, 07 十二月 2020 14:21:08 +0800 Subject: [PATCH] update doc --- test_net_socket/net_mod_socket.sh | 25 +++++++++++++++++-------- 1 files changed, 17 insertions(+), 8 deletions(-) diff --git a/test_net_socket/net_mod_socket.sh b/test_net_socket/net_mod_socket.sh index d9f6096..68d4ff1 100755 --- a/test_net_socket/net_mod_socket.sh +++ b/test_net_socket/net_mod_socket.sh @@ -6,7 +6,7 @@ ./test_net_mod_socket --fun="start_net_proxy" --port=5000 & server_pid=$! && echo "pid: ${server_pid}" # 鎵撳紑璇锋眰搴旂瓟娴嬭瘯鐨勬帴鍙楃 - ./test_net_mod_socket --fun="start_reply" --key=11 & server_pid=$! && echo "pid: ${server_pid}" + ./test_net_mod_socket --fun="start_reply" --key=100 & server_pid=$! && echo "pid: ${server_pid}" } function client() { @@ -17,15 +17,21 @@ ./test_net_mod_socket --fun="start_net_client" \ - --sendlist="localhost:5000:11" \ - --publist="localhost:5000:8" + --sendlist="localhost:5000:100" \ + --publist="localhost:5000" } -function mclient() { - ./test_net_mod_socket --fun="start_net_mclient" \ - --sendlist="localhost:5000:11" +function msend() { + ./test_net_mod_socket --fun="test_net_sendandrecv_threads" \ + --sendlist="localhost:5000:100, localhost:5000:100" + +} + +function mpub() { + ./test_net_mod_socket --fun="test_net_pub_threads" \ + --publist="localhost:5000, localhost:5000" } @@ -48,8 +54,11 @@ "client") client ;; - "mclient") - mclient + "msend") + msend + ;; + "mpub") + mpub ;; "close") close -- Gitblit v1.8.0