From af85260254bacac40a68d4f5f61950523beb3a27 Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期一, 19 十月 2020 17:02:41 +0800 Subject: [PATCH] update --- src/socket/shm_mod_socket.h | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/socket/shm_mod_socket.h b/src/socket/shm_mod_socket.h index 50ef4ef..b6dadee 100644 --- a/src/socket/shm_mod_socket.h +++ b/src/socket/shm_mod_socket.h @@ -14,7 +14,7 @@ #define TOPIC_LIDENTIFIER "{" #define TOPIC_RIDENTIFIER "}" -static Logger logger = LoggerFactory::getLogger(); +static Logger *logger = LoggerFactory::getLogger(); #define BUS_MAP_KEY 1 //typedef std::basic_string<char, std::char_traits<char>, SHM_STL_Allocator<char> > SHMString; typedef std::set<int, std::less<int>, SHM_STL_Allocator<int> > SHMKeySet; @@ -62,7 +62,6 @@ ShmModSocket(); ~ShmModSocket(); - /** * 缁戝畾绔彛鍒皊ocket, 濡傛灉涓嶇粦瀹氬垯绯荤粺鑷姩鍒嗛厤涓�涓� * @return 0 鎴愬姛锛� 鍏朵粬鍊� 澶辫触鐨勯敊璇爜 @@ -105,6 +104,11 @@ int sendandrecv_timeout(const void *send_buf, const int send_size, const int port, void **recv_buf, int *recv_size, struct timespec *timeout) ; int sendandrecv_nowait(const void *send_buf, const int send_size, const int port, void **recv_buf, int *recv_size) ; + int sendandrecv_unsafe(const void *send_buf, const int send_size, const int port, void **recv_buf, int *recv_size) ; + // 瓒呮椂杩斿洖銆� @sec 绉� 锛� @nsec 绾崇 + int sendandrecv_unsafe_timeout(const void *send_buf, const int send_size, const int port, void **recv_buf, int *recv_size, struct timespec *timeout) ; + int sendandrecv_unsafe_nowait(const void *send_buf, const int send_size, const int port, void **recv_buf, int *recv_size) ; + /** * 鍚姩bus -- Gitblit v1.8.0