From e1bea2c6430ddadd589fd3377b69ca06226bb872 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期一, 08 二月 2021 11:52:53 +0800
Subject: [PATCH] update
---
test_net_socket/net_mod_socket.sh | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/test_net_socket/net_mod_socket.sh b/test_net_socket/net_mod_socket.sh
index 930cd5d..288f192 100755
--- a/test_net_socket/net_mod_socket.sh
+++ b/test_net_socket/net_mod_socket.sh
@@ -26,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"
}
-# 澶氱嚎绋媠end
-function msend() {
- ./test_net_mod_socket --fun="test_net_sendandrecv_threads" \
- --sendlist="localhost:5000:100, localhost:5000:100"
+
+#
+function send() {
+ ./test_net_mod_socket --fun="test_net_sendandrecv" \
+ --sendlist=" :5000:100, :5000:101, :5000:102"
}
+
# 鏃犻檺寰幆 pub
function pub() {
./test_net_mod_socket --fun="test_net_pub" \
@@ -51,6 +53,11 @@
}
+function stop() {
+ ps -ef | grep -e "test_net_mod_socket" -e "heart_beat"| awk '{print $2}' | xargs -i kill -15 {}
+
+}
+
function close() {
ps -ef | grep -e "test_net_mod_socket" -e "heart_beat"| awk '{print $2}' | xargs -i kill -9 {}
ipcrm -a
--
Gitblit v1.8.0