wangzhengquan
2020-12-07 d7d05fb334db91e3ecbf009ca2650d88f9ed7b46
test_net_socket/test_net_mod_socket.c
@@ -41,7 +41,7 @@
   }
}
// 打印接受到的订阅消息
void *print_sub_msg(void *sockt) {
  pthread_detach(pthread_self());
  void *recvbuf;
@@ -83,7 +83,7 @@
  }
}
// 交互式客户端
void start_net_client(char *sendlist, char*publist ){
   client = net_mod_socket_open();
   char content[MAXLINE];
@@ -95,6 +95,7 @@
   net_mod_recv_msg_t *recv_arr;
  pthread_t tid;
  // 创建一个线程接受订阅消息
  pthread_create(&tid, NULL, print_sub_msg, client);
    
  //192.168.5.10:5000:11, 192.168.5.22:5000:11, 192.168.5.104:5000:11