summaryrefslogtreecommitdiffhomepage
path: root/src/sock.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sock.h')
-rw-r--r--src/sock.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sock.h b/src/sock.h
index f1225ea..a516d4f 100644
--- a/src/sock.h
+++ b/src/sock.h
@@ -28,8 +28,14 @@
#define MAXLINE (1024 * 4)
+#include "common.h"
#include "vector.h"
+union sockaddr_union {
+ struct sockaddr_in v4;
+ struct sockaddr_in6 v6;
+};
+
extern int opensock (const char *host, int port, const char *bind_to);
extern int listen_sock (const char *addr, uint16_t port, vector_t listen_fds);