From 5410446ade40493d17f7e2d7f0d687b0998acc6a Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期三, 27 一月 2021 11:56:54 +0800
Subject: [PATCH] timeout wait 合一

---
 test_net_socket/net_mod_socket.sh |   22 +++++++++++++++++++++-
 1 files changed, 21 insertions(+), 1 deletions(-)

diff --git a/test_net_socket/net_mod_socket.sh b/test_net_socket/net_mod_socket.sh
index fc639ca..dd566b2 100755
--- a/test_net_socket/net_mod_socket.sh
+++ b/test_net_socket/net_mod_socket.sh
@@ -9,6 +9,7 @@
 	./test_net_mod_socket --fun="start_reply" --key=100 & server_pid=$! &&  echo "pid: ${server_pid}" 
 }
 
+# 浜や簰寮忓鎴风
 function client() {
 
 	# ./test_net_mod_socket --fun="start_net_client" \
@@ -23,12 +24,25 @@
 	 
 }
 
+# 鏃犻檺寰幆send
+function send() {
+	./test_net_mod_socket --fun="test_net_sendandrecv" \
+	 --sendlist="localhost:5000:100, localhost:5000:100"
+	 
+}
+# 澶氱嚎绋媠end
 function msend() {
 	./test_net_mod_socket --fun="test_net_sendandrecv_threads" \
 	 --sendlist="localhost:5000:100, localhost:5000:100"
 	 
 }
-
+# 鏃犻檺寰幆 pub
+function pub() {
+	./test_net_mod_socket --fun="test_net_pub" \
+	 --publist="localhost:5000, localhost:5000"
+	 
+}
+# 澶氱嚎绋媝ub
 function mpub() {
 	./test_net_mod_socket --fun="test_net_pub_threads" \
 	 --publist="localhost:5000, localhost:5000"
@@ -56,9 +70,15 @@
   "msend")
 	msend
   ;;
+  "send")
+	send
+  ;;
   "mpub")
 	mpub
   ;;
+  "pub")
+	pub
+  ;;
   "close")
  	close
   ;;

--
Gitblit v1.8.0