aboutsummaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2021-05-05 10:39:22 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2021-05-05 10:39:22 +0200
commit57e6cf6b01e981ce159d472f3e3ed92f893ad443 (patch)
treeec90834b00596e8a2992182341263f242fcfc753 /src/server.h
parent98c68ed8cc11fa8932e480256b2544c50aaa790b (diff)
downloaddns-57e6cf6b01e981ce159d472f3e3ed92f893ad443.tar.gz
changing server logic
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h6
1 files changed, 4 insertions, 2 deletions
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,