From 57e6cf6b01e981ce159d472f3e3ed92f893ad443 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Wed, 5 May 2021 10:39:22 +0200 Subject: changing server logic --- src/server.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/server.h') diff --git a/src/server.h b/src/server.h index d0139aa..1751fae 100644 --- a/src/server.h +++ b/src/server.h @@ -29,13 +29,15 @@ typedef struct server_config { char* bind_ip; uint16_t bind_port; + char* zonefile; + char* user; } server_config_t; static int sock_server; -int init_socket ( ); +void server_start ( server_config_t* _config ); -void run_dns_server ( server_config_t* _config ); +int server_get_socket ( char* _bind_ip, uint16_t _bind_port ); int handle_connection ( int _socket, struct sockaddr_in *sockaddr_client, -- cgit v1.2.3