From 038678a597ca562ea0c10c0b842947eea436a114 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiesner=20Andr=C3=A1s?= Date: Tue, 21 Nov 2023 11:21:23 +0100 Subject: [PATCH] TCP Connection Manager initials --- tcp_connection_manager.c | 5 +++++ tcp_connection_manager.h | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 tcp_connection_manager.c create mode 100644 tcp_connection_manager.h diff --git a/tcp_connection_manager.c b/tcp_connection_manager.c new file mode 100644 index 0000000..ea48189 --- /dev/null +++ b/tcp_connection_manager.c @@ -0,0 +1,5 @@ +#include "tcp_connection_manager.h" + +void tcpconmgr_add_connection(TcpConMgrCtrl * mgr) { + +} diff --git a/tcp_connection_manager.h b/tcp_connection_manager.h new file mode 100644 index 0000000..a1c00c8 --- /dev/null +++ b/tcp_connection_manager.h @@ -0,0 +1,19 @@ +#ifndef CORE_ETHERLIB_TCP_CONNECTION_MANAGER +#define CORE_ETHERLIB_TCP_CONNECTION_MANAGER + +#include + +#include + +#include "cbd_table.h" + +typedef struct { + uint16_t activeConns; ///< Number of active connections + ConnBlock * cb[] +} TcpConMgrCtrl; + +void tcpconmgr_new(); + +void tcpconmgr_add_connection(TcpConMgrCtrl * mgr); + +#endif /* CORE_ETHERLIB_TCP_CONNECTION_MANAGER */