From f8c7aec85fdbf6b98fbb6ff50d98733b79c26dad Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期四, 26 十一月 2020 10:29:04 +0800 Subject: [PATCH] udpate --- test_net_socket/test_net_mod_socket.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test_net_socket/test_net_mod_socket.c b/test_net_socket/test_net_mod_socket.c index a65cd20..f389c59 100644 --- a/test_net_socket/test_net_mod_socket.c +++ b/test_net_socket/test_net_mod_socket.c @@ -28,9 +28,9 @@ net_mod_recv_msg_t *recv_arr; //192.168.20.104 - int node_arr_size = 2; + int node_arr_size = 3; net_node_t node_arr[] = { - // {"192.168.5.22", port, 11}, + {"192.168.5.22", port, 11}, {"192.168.20.10", port, 11}, {"192.168.20.104", port, 11} }; @@ -99,12 +99,12 @@ int i,j, n, recv_arr_size; net_mod_recv_msg_t *recv_arr; - int node_arr_size = 2; + int node_arr_size = 1; //192.168.20.104 net_node_t node_arr[] = { - // {"192.168.5.22", port, 11}, - {"192.168.20.10", port, 11}, - {"192.168.20.104", port, 11} + //{0, port, 11} + {"192.168.20.10", port, 11} + // {"192.168.20.104", port, 11} }; void * client = net_mod_socket_open(); @@ -140,7 +140,7 @@ void mclient(int port) { - int status, i = 0, processors = 2; + int status, i = 0, processors = 1; void *res[processors]; // Targ *targs = (Targ *)calloc(processors, sizeof(Targ)); Targ targs[processors]; -- Gitblit v1.8.0