From b5fe7f9a3bcc2f20d127f9081c1cf132091f6a57 Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期五, 27 十一月 2020 15:25:13 +0800 Subject: [PATCH] update --- src/socket/shm_mod_socket.h | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/socket/shm_mod_socket.h b/src/socket/shm_mod_socket.h index 50ef4ef..34c78a5 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 鎴愬姛锛� 鍏朵粬鍊� 澶辫触鐨勯敊璇爜 @@ -104,6 +103,12 @@ // 瓒呮椂杩斿洖銆� @sec 绉� 锛� @nsec 绾崇 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) ; /** @@ -149,9 +154,9 @@ /** - * 鑾峰彇soket绔彛鍙� + * 鑾峰彇soket key */ - int get_port() ; + int get_key() ; }; -- Gitblit v1.8.0