From e994d555ba64d68d874099ed7c1b9e22c0b592b0 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期二, 01 十二月 2020 15:45:11 +0800
Subject: [PATCH] update

---
 test_net_socket/test_net_mod_socket.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/test_net_socket/test_net_mod_socket.c b/test_net_socket/test_net_mod_socket.c
index 6527a4e..77237ce 100644
--- a/test_net_socket/test_net_mod_socket.c
+++ b/test_net_socket/test_net_mod_socket.c
@@ -1,6 +1,6 @@
 #include "net_mod_server_socket_wrapper.h"
 #include "net_mod_socket_wrapper.h"
-#include "shm_mm.h"
+#include "shm_mm_wraper.h"
 #include "usg_common.h"
 #include <getopt.h>
 
@@ -29,7 +29,7 @@
   printf("Start net proxy\n");
 	void *serverSocket  = net_mod_server_socket_open(port);
 	if(net_mod_server_socket_start(serverSocket) != 0) {
-		err_msg(errno, "net_mod_server_socket_start");
+		err_exit(errno, "net_mod_server_socket_start");
 	}
 }
 
@@ -87,8 +87,8 @@
     	
 		  if (fgets(content, MAXLINE, stdin) != NULL) {
 		  	// 鏀跺埌娑堟伅鐨勮妭鐐瑰嵆浣挎病鏈夊搴旂殑淇℃伅锛� 涔熻鍥炲涓�涓〃绀烘棤鐨勬秷鎭�,鍚﹀垯浼氫竴鐩寸瓑寰�
-		    n = net_mod_socket_sendandrecv_timeout(client, node_arr, node_arr_size, content, 
-          strlen(content), &recv_arr, &recv_arr_size, 5000);
+		    n = net_mod_socket_sendandrecv(client, node_arr, node_arr_size, content, 
+          strlen(content), &recv_arr, &recv_arr_size);
 		    printf("send %d nodes\n", n);
 		    for(i=0; i<recv_arr_size; i++) {
 		    	printf("host:%s, port: %d, key:%d, content: %s\n", 
@@ -257,7 +257,7 @@
 
 
 int main(int argc, char *argv[]) {
-	shm_init(512);
+	shm_mm_wrapper_init(512);
  
   argument_t opt = parse_args(argc, argv);
 

--
Gitblit v1.8.0