From 233f169f507e31472b23a64269878557d6f0f9fe Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sun, 28 Feb 2021 23:23:54 +0100 Subject: construct answer/question --- src/server.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/server.h') diff --git a/src/server.h b/src/server.h index 388dbae..d59eba6 100644 --- a/src/server.h +++ b/src/server.h @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -24,9 +25,14 @@ #define UDP_BUFFER_LEN 512 +typedef struct server_config { + char* bind_ip; + uint16_t bind_port; +} server_config_t; + static int sock_server; -void run_dns_server ( void ); +void run_dns_server ( server_config_t* _config ); int handle_connection ( int _socket, struct sockaddr_in *sockaddr_client, -- cgit v1.2.3