diff options
Diffstat (limited to 'include/net.h')
| -rw-r--r-- | include/net.h | 9 |
1 files changed, 9 insertions, 0 deletions
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); |
