From 36e6a90a33983154633c99f7ac95d09dd68f7bcb Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期三, 24 二月 2021 16:53:06 +0800 Subject: [PATCH] update --- src/net/net_mod_socket.h | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/net/net_mod_socket.h b/src/net/net_mod_socket.h index 9eb0a23..b02ea6e 100644 --- a/src/net/net_mod_socket.h +++ b/src/net/net_mod_socket.h @@ -55,6 +55,14 @@ }; +struct net_mod_recv_err_t +{ + char host[NI_MAXHOST]; + int port; + int key; + int code; +}; + class NetModSocket { @@ -83,7 +91,7 @@ NetConnPool* _get_pool(); //璇诲彇杩斿洖淇℃伅 - int read_response(int clientfd, net_mod_recv_msg_t *recv_msg); + int read_response(int clientfd, net_mod_recv_msg_t *recv_msg, net_mod_recv_err_t *err_arr); // 鍙戦�佽姹備俊鎭� int write_request(int clientfd, net_mod_request_head_t &request_head, const void *send_buf, int send_size, const void *topic_buf, int topic_size); @@ -247,10 +255,6 @@ int pub_timeout( char *topic, int topic_size, void *content, int content_size, int key, int sec, int nsec); int pub_nowait( char *topic, int topic_size, void *content, int content_size, int key); - - - - /** * 鑾峰彇soket key -- Gitblit v1.8.0