From c95e44f010c06f82d95d4264a90ec230e4bf307e Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期二, 01 十二月 2020 17:52:08 +0800
Subject: [PATCH] add server socket

---
 libcbhomebus.h |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/libcbhomebus.h b/libcbhomebus.h
index c43abc3..d637d63 100644
--- a/libcbhomebus.h
+++ b/libcbhomebus.h
@@ -44,6 +44,9 @@
 static tfn_shm_mod_socket_remove_key            fn_socket_remove_key = NULL;
 static tfn_shm_mod_socket_remove_keys           fn_socket_remove_keys = NULL;
 
+static tfn_net_mod_server_socket_open           fn_server_socket_open = NULL;
+static tfn_net_mod_server_socket_close          fn_server_socket_close = NULL;
+static tfn_net_mod_server_socket_start          fn_server_socket_start = NULL;
 //////////////////////////////////////////////////////////////////////
 
 // labels
@@ -82,6 +85,10 @@
 const static char l_net_mod_socket_free[] = "net_mod_socket_free";
 const static char l_shm_mod_socket_remove_key[] = "shm_mod_socket_remove_key";
 const static char l_shm_mod_socket_remove_keys[] = "shm_mod_socket_remove_keys";
+
+const static char l_net_mod_server_socket_open[] = "net_mod_server_socket_open";
+const static char l_net_mod_server_socket_close[] = "net_mod_server_socket_close";
+const static char l_net_mod_server_socket_start[] = "net_mod_server_socket_start";
 //////////////////////////////////////////////////////////////////////
 
 // dlopen dynamic library
@@ -129,6 +136,9 @@
 int wrap_fn_socket_remove_key(hbhomebus lib, int key);
 int wrap_fn_socket_remove_keys(hbhomebus lib, void *keys, int length);
 
+void *wrap_fn_server_socket_open(hbhomebus lib, int port);
+void wrap_fn_server_socket_close(hbhomebus lib, void* _socket);
+int wrap_fn_server_socket_start(hbhomebus lib, void* _socket);
 
 #ifdef __cplusplus
 }

--
Gitblit v1.8.0