From 26ed48c4e616014ee760fd13d13dbdc8539c34e3 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期二, 22 十二月 2020 19:21:55 +0800
Subject: [PATCH] 解决sendandrecv发送到一个不存在key的情况

---
 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