From 546bdaa58724ec6a19b56e800ad60963bd3bd1bc Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期四, 04 二月 2021 11:42:24 +0800 Subject: [PATCH] modify callback function --- src/net/net_mod_socket.h | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/net/net_mod_socket.h b/src/net/net_mod_socket.h index 612f784..a2acc55 100644 --- a/src/net/net_mod_socket.h +++ b/src/net/net_mod_socket.h @@ -192,8 +192,16 @@ 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 + */ + int recvandsend( recvandsend_callback_fn callback, + const struct timespec *timeout = NULL , int flag = 0, void * user_data = NULL ); + + /** * 鍚憂ode_arr 涓殑鎵�鏈夌綉缁滆妭鐐瑰彂甯冩秷鎭� * @node_arr 缃戠粶鑺傜偣缁�, @node_arr_len璇ユ暟缁勯暱搴� * @topic 涓婚锛孈topic_size 璇ヤ富棰樼殑闀垮害 -- Gitblit v1.8.0