From f7337200b6703c9d64f49efc0bc571a13d479973 Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期四, 04 二月 2021 09:58:27 +0800 Subject: [PATCH] add void * userdata --- src/net/net_mod_socket.h | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/net/net_mod_socket.h b/src/net/net_mod_socket.h index 5b2e930..7d64bb1 100644 --- a/src/net/net_mod_socket.h +++ b/src/net/net_mod_socket.h @@ -193,11 +193,10 @@ int sendandrecv_nowait( const void *send_buf, const int send_size, const int send_key, void **recv_buf, int *recv_size) ; - int recvandsend(void **recvbuf, int *recvsize, int *key, recv_callback_fn callback) ; + - int recvandsend_timeout(void **recvbuf, int *recvsize, int *key, recv_callback_fn callback, - const struct timespec *timeout ); - int recvandsend_nowait(void **recvbuf, int *recvsize, int *key, recv_callback_fn callback); + int recvandsend(void **recvbuf, int *recvsize, int *key, recv_callback_fn callback, + const struct timespec *timeout = NULL , int flag = 0, void * user_data = NULL ); /** * 鍚憂ode_arr 涓殑鎵�鏈夌綉缁滆妭鐐瑰彂甯冩秷鎭� -- Gitblit v1.8.0