wangzhengquan
2020-12-04 aa2f3b2a9968bb4928463bdae05fb026d16b60bb
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