From 2561a007b8d8999a4750046d0cfb3b1ad5af50ac Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期二, 09 四月 2024 15:29:32 +0800 Subject: [PATCH] test for perf --- src/net/net_mod_socket_wrapper.cpp | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/net/net_mod_socket_wrapper.cpp b/src/net/net_mod_socket_wrapper.cpp index 5233635..8203a0a 100644 --- a/src/net/net_mod_socket_wrapper.cpp +++ b/src/net/net_mod_socket_wrapper.cpp @@ -103,11 +103,6 @@ return sockt->sendandrecv(node_arr, arrlen, send_buf, send_size, recv_arr, recv_arr_size, err_arr, err_arr_size, -1); } -int net_mod_socket_bind_proc_id(void * _socket, char *proc_id, int len){ - NetModSocket *sockt = (NetModSocket *)_socket; - return sockt->bind_proc_id(proc_id, len); -} - void net_mod_socket_int_set(void * _socket, int data) { NetModSocket *sockt = (NetModSocket *)_socket; sockt->int_set(data); @@ -128,6 +123,21 @@ return sockt->svr_get(); } +void net_mod_socket_buf_data_set(void * _socket, std::string str, int val) { + NetModSocket *sockt = (NetModSocket *)_socket; + sockt->buf_data_set(str, val); +} + +int net_mod_socket_buf_data_get(void * _socket, std::string str) { + NetModSocket *sockt = (NetModSocket *)_socket; + return sockt->buf_data_get(str); +} + +void net_mod_socket_buf_data_del(void * _socket, std::string str) { + NetModSocket *sockt = (NetModSocket *)_socket; + sockt->buf_data_del(str); +} + /** * 濡傛灉寤虹珛杩炴帴鐨勮妭鐐规病鏈夋帴鍙楀埌娑堟伅绛夊緟timeout鐨勬椂闂村悗杩斿洖 * @timeout 绛夊緟鏃堕棿锛屽崟浣嶆槸鍗冨垎涔嬩竴绉� -- Gitblit v1.8.0