From 0bde715af72b7b3d55ad3aac816d7cd153a60b42 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期一, 03 八月 2020 13:29:21 +0800
Subject: [PATCH] add timeout api

---
 libcsoftbus_func.h |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/libcsoftbus_func.h b/libcsoftbus_func.h
index d921639..6ef5dc7 100644
--- a/libcsoftbus_func.h
+++ b/libcsoftbus_func.h
@@ -175,18 +175,26 @@
  * @return 0 鎴愬姛锛� 鍏朵粬鍊� 澶辫触鐨勯敊璇爜
  */
 typedef int(*tfn_dgram_socket_sendto) (void*, const void*, const int, const int);
+// 鍙戦�佷俊鎭秴鏃惰繑鍥炪�� @sec 绉� 锛� @nsec 绾崇
+typedef int(*tfn_dgram_socket_sendto_timeout) (void*, const void*, const int, const int, int, int);
+// 鍙戦�佷俊鎭珛鍒昏繑鍥炪��
+typedef tfn_dgram_socket_sendto tfn_dgram_socket_sendto_nowait;
 /**
  * 鎺ユ敹淇℃伅
  * @port 浠庤皝鍝噷鏀跺埌鐨勪俊鎭�
  * @return 0 鎴愬姛锛� 鍏朵粬鍊� 澶辫触鐨勯敊璇爜
 */
 typedef int(*tfn_dgram_socket_recvfrom) (void*, void**, int*, int*);
+typedef int(*tfn_dgram_socket_recvfrom_timeout) (void*, void**, int*, int*, int, int);
+typedef tfn_dgram_socket_recvfrom tfn_dgram_socket_recvfrom_nowait;
 /**
  * 鍙戦�佽姹備俊鎭苟绛夊緟鎺ユ敹搴旂瓟
  * @port 鍙戦�佺粰璋�
  * @return 0 鎴愬姛锛� 鍏朵粬鍊� 澶辫触鐨勯敊璇爜
 */
 typedef int(*tfn_dgram_socket_sendandrecv) (void*, const void*, const int, const int, void**, int*);
+typedef int(*tfn_dgram_socket_sendandrecv_timeout) (void*, const void*, const int, const int, void**, int*, int, int);
+typedef tfn_dgram_socket_sendandrecv tfn_dgram_socket_sendandrecv_nowait;
 /**
  * 鍚姩bus
  *
@@ -200,6 +208,8 @@
  * @port 鎬荤嚎绔彛
  */
 typedef int(*tfn_dgram_socket_sub) (void*, void*, int, int);
+typedef int(*tfn_dgram_socket_sub_timeout) (void*, void*, int, int, int, int);
+typedef tfn_dgram_socket_sub tfn_dgram_socket_sub_nowait;
 /**
  * 鍙戝竷涓婚
  * @topic 涓婚
@@ -207,6 +217,8 @@
  * @port 鎬荤嚎绔彛
  */
 typedef int(*tfn_dgram_socket_pub) (void*, void*, int, void*, int, int);
+typedef int(*tfn_dgram_socket_pub_timeout) (void*, void*, int, void*, int, int, int, int);
+typedef tfn_dgram_socket_pub tfn_dgram_socket_pub_nowait;
 /**
  * 鑾峰彇soket绔彛鍙�
  */

--
Gitblit v1.8.0