aboutsummaryrefslogtreecommitdiffstats
path: root/tcp.h
diff options
context:
space:
mode:
Diffstat (limited to 'tcp.h')
-rw-r--r--tcp.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/tcp.h b/tcp.h
new file mode 100644
index 0000000..963ab83
--- /dev/null
+++ b/tcp.h
@@ -0,0 +1,15 @@
+#include <sys/un.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#include <netdb.h>
+
+extern int tcp_verbose;
+
+int tcp_connect(struct addrinfo *ai,
+ char *addr, char *port,
+ char *host, char *serv);
+
+int tcp_listen(struct addrinfo *ai, char *addr, char *port);
+
+int unix_connect(char *path);
+int pipe_connect(char *path);