summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
author童宗振 <[email protected]>2024-04-19 04:33:00 +0000
committer童宗振 <[email protected]>2024-04-19 04:33:00 +0000
commitd2ca0568ef45016f45eec16f788dcfa1d0bcca52 (patch)
tree520d0ed37cb43dbfd53598493102f1834ab54a6d /include
parentf23ca6048de819961182e15ce8e0fd8de0b9cfe3 (diff)
Add keep alive port
Diffstat (limited to 'include')
-rw-r--r--include/config.h5
-rw-r--r--include/http_serv.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 7bd942c..967d337 100644
--- a/include/config.h
+++ b/include/config.h
@@ -23,6 +23,11 @@ struct config
char * sled_ip;
char device_group[MR_SYMBOL_MAX];
+ // server
+ char str_listen_addr[INET6_ADDRSTRLEN];
+ unsigned int listen_port;
+ char keep_alive_path[MR_SYMBOL_MAX];
+
// kafka
char topic_name[MR_SYMBOL_MAX];
char broker_list[1024];
diff --git a/include/http_serv.h b/include/http_serv.h
new file mode 100644
index 0000000..918d1c1
--- /dev/null
+++ b/include/http_serv.h
@@ -0,0 +1,5 @@
+#pragma once
+#include "common.h"
+
+int http_serv_init();
+int http_serv_deinit(); \ No newline at end of file