From 66e36f251a61c8b6722a90ecfb195e28c87dd99a Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期二, 28 七月 2020 17:52:57 +0800
Subject: [PATCH] dgram_mod_force_bind 注解

---
 src/socket/include/shm_socket.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/socket/include/shm_socket.h b/src/socket/include/shm_socket.h
index 822450d..0ca4cfd 100644
--- a/src/socket/include/shm_socket.h
+++ b/src/socket/include/shm_socket.h
@@ -44,6 +44,7 @@
 	shm_socket_type_t socket_type;
 	// 鏈湴port
 	int port;
+	bool force_bind;
 	shm_connection_status_t status;
 	SHMQueue<shm_msg_t> *queue;
 	SHMQueue<shm_msg_t> *remoteQueue;
@@ -65,6 +66,9 @@
 
 int shm_socket_bind(shm_socket_t * socket, int port) ;
 
+int shm_socket_force_bind(shm_socket_t * socket, int port) ;
+
+
 int shm_listen(shm_socket_t * socket) ;
 
 shm_socket_t* shm_accept(shm_socket_t* socket);
@@ -77,7 +81,7 @@
 
 int shm_recv(shm_socket_t * socket, void **buf, int *size) ;
 
-int shm_sendto(shm_socket_t *socket, const void *buf, const int size, const int port);
+int shm_sendto(shm_socket_t *socket, const void *buf, const int size, const int port, const struct timespec * timeout = NULL);
 
 int shm_recvfrom(shm_socket_t *socket, void **buf, int *size, int *port);
 

--
Gitblit v1.8.0