From 7d650d5d9bcba940ae312657d51e366e7401fd6b Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Mon, 17 Apr 2023 22:49:49 -0400 Subject: first --- src/client/client.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/client/client.h (limited to 'src/client/client.h') diff --git a/src/client/client.h b/src/client/client.h new file mode 100644 index 0000000..7e0e391 --- /dev/null +++ b/src/client/client.h @@ -0,0 +1,15 @@ +#pragma once + +#include "addr.h" +#include "../packet/packet.h" + +typedef struct { + uint16_t port; + bool force_tcp; +} Options; + +void resolve_default_server(IpAddr* addr); + +void resolve_questions(int argc, char** argv, uint8_t* len, Question** questions); + +void resolve(IpAddr server, Options options, Question* questions, uint8_t lem); -- cgit v1.2.3-freya