From 22cd4140502e67d32967160bee56375eaa285011 Mon Sep 17 00:00:00 2001 From: fujuntang <fujuntang@smartai.com> Date: 星期二, 07 十二月 2021 16:18:34 +0800 Subject: [PATCH] Fix the service query fail issue. --- src/net/net_mod_socket.h | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/net/net_mod_socket.h b/src/net/net_mod_socket.h index 0cb2fd0..a7619f5 100644 --- a/src/net/net_mod_socket.h +++ b/src/net/net_mod_socket.h @@ -73,6 +73,7 @@ ShmModSocket shmModSocket; int int_val; int svr_val; + std::map<std::string, int> recvbuf; // pthread_mutex_t sendMutex; // request header 缂栫爜涓虹綉缁滀紶杈撶殑瀛楄妭 @@ -180,9 +181,6 @@ int sendandrecv_timeout( const void *send_buf, const int send_size, const int send_key, void **recv_buf, int *recv_size, int sec, int nsec) ; int sendandrecv_nowait( const void *send_buf, const int send_size, const int send_key, void **recv_buf, int *recv_size) ; - - - /** * recvandsend */ @@ -250,7 +248,9 @@ */ static void free_recv_msg_arr(net_mod_recv_msg_t * arr, size_t size); - + void buf_data_set(std::string str, int val); + int buf_data_get(std::string str); + void buf_data_del(std::string str); }; -#endif \ No newline at end of file +#endif -- Gitblit v1.8.0