| | |
| | | return fn_socket_sendandrecv_nowait(_socket, (net_node_t*)node_arr, arrlen, send_buf, send_size, (net_mod_recv_msg_t**)recv_arr, recv_arr_size); |
| | | } |
| | | |
| | | // add recvandsend funcs |
| | | int wrap_fn_socket_recvandsend(hbhomebus lib, void *_sockt, recvandsend_callback_fn fn, void *user_data){ |
| | | if (!fn_socket_recvandsend){ |
| | | fn_socket_recvandsend = (tfn_net_mod_socket_recvandsend)dlsym(lib, l_net_mod_socket_recvandsend); |
| | | check_with_ret(fn_socket_recvandsend, lib, -1); |
| | | } |
| | | return fn_socket_recvandsend(_sockt, fn, user_data); |
| | | } |
| | | |
| | | int wrap_fn_socket_recvandsend_timeout(hbhomebus lib, void *_sockt, recvandsend_callback_fn fn, int sec, int nsec, void *user_data){ |
| | | if (!fn_socket_recvandsend_timeout){ |
| | | fn_socket_recvandsend_timeout = (tfn_net_mod_socket_recvandsend_timeout)dlsym(lib, l_net_mod_socket_recvandsend_timeout); |
| | | check_with_ret(fn_socket_recvandsend_timeout, lib, -1); |
| | | } |
| | | return fn_socket_recvandsend_timeout(_sockt, fn, sec, nsec, user_data); |
| | | } |
| | | |
| | | int wrap_fn_socket_recvandsend_nowait (hbhomebus lib, void *_sockt, recvandsend_callback_fn fn, void *user_data){ |
| | | if (!fn_socket_recvandsend_nowait){ |
| | | fn_socket_recvandsend_nowait = (tfn_net_mod_socket_recvandsend_nowait)dlsym(lib, l_net_mod_socket_recvandsend_nowait); |
| | | check_with_ret(fn_socket_recvandsend_nowait, lib, -1); |
| | | } |
| | | return fn_socket_recvandsend_nowait(_sockt, fn, user_data); |
| | | } |
| | | |
| | | //int wrap_fn_socket_start_bus(hbhomebus lib, void * _socket) |
| | | //{ |
| | | // if(!fn_socket_start_bus){ |