From 2278df1493e064c197913e49b5d1935942d83448 Mon Sep 17 00:00:00 2001 From: daniel Date: Tue, 6 May 2025 16:57:32 -0700 Subject: initial import --- include/net.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 include/net.h (limited to 'include/net.h') diff --git a/include/net.h b/include/net.h new file mode 100644 index 0000000..83e1c47 --- /dev/null +++ b/include/net.h @@ -0,0 +1,9 @@ +#pragma once + +typedef int sock_t; +typedef unsigned short port_t; + +int sockprintf(int, const char *, ...); +bool validate_ip(const char *); +bool validate_ipv4(const char *); +char *get_default_iface(void); -- cgit v1.2.3