diff options
Diffstat (limited to 'src/server.h')
-rw-r--r-- | src/server.h | 6 |
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, |