summaryrefslogtreecommitdiffstats
path: root/tcp.h
diff options
context:
space:
mode:
authorkraxel <kraxel>2007-08-08 16:00:20 +0000
committerkraxel <kraxel>2007-08-08 16:00:20 +0000
commit3a85ea7edc0cb352febcf1bc6ee242b672cf7965 (patch)
tree2d5b3b4b1070c58da7e0022efe82bf03d3eeb698 /tcp.h
downloadamtterm-3a85ea7edc0cb352febcf1bc6ee242b672cf7965.tar.gz
Initial revision
Diffstat (limited to 'tcp.h')
-rw-r--r--tcp.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/tcp.h b/tcp.h
new file mode 100644
index 0000000..f0224c0
--- /dev/null
+++ b/tcp.h
@@ -0,0 +1,11 @@
+#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);