From f85c9b875b060681b51f57b15074ba1c7c9f5636 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期一, 20 七月 2020 11:10:02 +0800
Subject: [PATCH] update

---
 queue/include/mod_socket.h |   37 +++++++++++++++++++++++++++++++++++--
 1 files changed, 35 insertions(+), 2 deletions(-)

diff --git a/queue/include/mod_socket.h b/queue/include/mod_socket.h
index 79c86c5..21498ee 100644
--- a/queue/include/mod_socket.h
+++ b/queue/include/mod_socket.h
@@ -17,25 +17,58 @@
 	
 };
 
-
+/**
+ * 鍒涘缓socket
+ * @return socket鍦板潃
+*/
 void *mod_open_socket(int mod);
 
+/**
+ * 鍏抽棴socket
+*/
 int mod_close_socket(void * _socket);
 
+/**
+ * 缁戝畾绔彛鍒皊ocket, 濡傛灉涓嶇粦瀹氬垯绯荤粺鑷姩鍒嗛厤涓�涓�
+ * @return 0 鎴愬姛锛� 鍏朵粬鍊� 澶辫触鐨勯敊璇爜
+*/
 int mod_socket_bind(void * _socket, int port);
  
 
+/**
+ * 鏈嶅姟绔紑鍚繛鎺ョ洃鍚�
+ * @return 0 鎴愬姛锛� 鍏朵粬鍊� 澶辫触鐨勯敊璇爜
+ */
 int mod_listen(void * _socket);
 
-
+/**
+ * 瀹㈡埛绔彂璧疯繛鎺ヨ姹�
+ */
 int mod_connect(void * _socket, int port);
 
+/**
+ * 鍙戦�佷俊鎭�
+ * @return 0 鎴愬姛锛� 鍏朵粬鍊� 澶辫触鐨勯敊璇爜
+ */
 int mod_send(void * _socket, const void *buf, const int size);
 
+/**
+ * 鎺ユ敹淇℃伅
+ * @return 0 鎴愬姛锛� 鍏朵粬鍊� 澶辫触鐨勯敊璇爜
+*/
 int mod_recv(void * _socket, void **buf, int *size) ;
 
+/**
+ * 閲婃斁鎺ユ敹淇℃伅鐨刡uf
+ */
 void mod_free(void *buf);
 
+
+/**
+ * 鑾峰彇soket绔彛鍙�
+ */
+int mod_get_socket_port(void * _socket);
+
 #ifdef __cplusplus
 }
 #endif

--
Gitblit v1.8.0