From 83956b12d863924936a98c9dfbece37feb0cce9c Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期四, 04 二月 2021 14:48:04 +0800
Subject: [PATCH] update

---
 test_net_socket/net_mod_socket.sh |   24 ++++++++++++++----------
 1 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/test_net_socket/net_mod_socket.sh b/test_net_socket/net_mod_socket.sh
index dd566b2..52eb54e 100755
--- a/test_net_socket/net_mod_socket.sh
+++ b/test_net_socket/net_mod_socket.sh
@@ -7,6 +7,8 @@
 
 	# 鎵撳紑璇锋眰搴旂瓟娴嬭瘯鐨勬帴鍙楃
 	./test_net_mod_socket --fun="start_reply" --key=100 & server_pid=$! &&  echo "pid: ${server_pid}" 
+	./test_net_mod_socket --fun="start_reply" --key=101 & server_pid=$! &&  echo "pid: ${server_pid}" 
+	./test_net_mod_socket --fun="start_reply" --key=102 & server_pid=$! &&  echo "pid: ${server_pid}" 
 }
 
 # 浜や簰寮忓鎴风
@@ -24,18 +26,20 @@
 	 
 }
 
-# 鏃犻檺寰幆send
+# one_to_many send
+function one_to_many() {
+	./test_net_mod_socket --fun="one_sendto_many" \
+	 --sendlist=" :5000:100, :5000:101, :5000:102"
+	 
+}
+
+#  
 function send() {
 	./test_net_mod_socket --fun="test_net_sendandrecv" \
-	 --sendlist="localhost:5000:100, localhost:5000:100"
+	 --sendlist=" :5000:100, :5000:101, :5000:102"
 	 
 }
-# 澶氱嚎绋媠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" \
@@ -67,8 +71,8 @@
   "client")
  	client
   ;;
-  "msend")
-	msend
+  "one_to_many")
+	one_to_many
   ;;
   "send")
 	send

--
Gitblit v1.8.0