From 27d8bc7cad4a8f68c2da3efbb77f45ec70ae40e6 Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期三, 05 一月 2022 14:11:39 +0800 Subject: [PATCH] pb.go MsgQueryProcReply add subLocalTopics and subNetTopics --- test_net_socket/test_recvandsend.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test_net_socket/test_recvandsend.cpp b/test_net_socket/test_recvandsend.cpp index 2211a4e..cb2ac1e 100644 --- a/test_net_socket/test_recvandsend.cpp +++ b/test_net_socket/test_recvandsend.cpp @@ -8,9 +8,9 @@ #include <getopt.h> #include "logger_factory.h" +//娴嬭瘯浼犻�掑嚱鏁版寚閽� - -void sendback(void ** buf, int *size){ +void sendback(void ** buf, int *size, void * user_data){ char sendbuf[512]; printf( "server: RECEIVED REQUEST FROM \n "); sprintf(sendbuf, "RECEIVED REQUEST \n"); @@ -30,7 +30,7 @@ int rv; int key; while(true) { - rv = net_mod_socket_recvandsend_timeout(ser, &recvbuf, &recvsize, &key, sendback, 2, 2000000 ); + rv = net_mod_socket_recvandsend_timeout(ser, &recvbuf, &recvsize, &key, sendback, 2, 2000000, NULL ); if(rv == 0) free(recvbuf); } -- Gitblit v1.8.0