summaryrefslogtreecommitdiff
path: root/src/client/client.h
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-04-17 22:49:49 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-04-17 22:49:49 -0400
commit7d650d5d9bcba940ae312657d51e366e7401fd6b (patch)
treed7283c146aaa625920cf85582a2e4099df86759d /src/client/client.h
downloadwig-7d650d5d9bcba940ae312657d51e366e7401fd6b.tar.gz
wig-7d650d5d9bcba940ae312657d51e366e7401fd6b.tar.bz2
wig-7d650d5d9bcba940ae312657d51e366e7401fd6b.zip
Diffstat (limited to 'src/client/client.h')
-rw-r--r--src/client/client.h15
1 files changed, 15 insertions, 0 deletions
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);