From b90ba316b54db321d3e8aaac7df93b46d80b9d9c Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期二, 22 十二月 2020 15:47:41 +0800 Subject: [PATCH] 三个没有回收的信号 --- src/socket/shm_stream_mod_socket.h | 14 +++++--------- 1 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/socket/shm_stream_mod_socket.h b/src/socket/shm_stream_mod_socket.h index 7af8fbc..305c2fd 100644 --- a/src/socket/shm_stream_mod_socket.h +++ b/src/socket/shm_stream_mod_socket.h @@ -2,9 +2,7 @@ #define __shm_stream_mod_socket_SOCKET_H__ -#ifdef __cplusplus -extern "C" { -#endif + enum socket_mod_t { @@ -33,7 +31,7 @@ * 缁戝畾绔彛鍒皊ocket, 濡傛灉涓嶇粦瀹氬垯绯荤粺鑷姩鍒嗛厤涓�涓� * @return 0 鎴愬姛锛� 鍏朵粬鍊� 澶辫触鐨勯敊璇爜 */ -int shm_stream_mod_socket_bind(void * _socket, int port); +int shm_stream_mod_socket_bind(void * _socket, int key); /** @@ -45,7 +43,7 @@ /** * 瀹㈡埛绔彂璧疯繛鎺ヨ姹� */ -int shm_stream_mod_socket_connect(void * _socket, int port); +int shm_stream_mod_socket_connect(void * _socket, int key); /** * 鍙戦�佷俊鎭� @@ -68,10 +66,8 @@ /** * 鑾峰彇soket绔彛鍙� */ -int shm_stream_mod_socket_get_port(void * _socket); +int shm_stream_mod_socket_get_key(void * _socket); -#ifdef __cplusplus -} -#endif + #endif \ No newline at end of file -- Gitblit v1.8.0