summaryrefslogtreecommitdiff
path: root/src/tcp.h
diff options
context:
space:
mode:
authorJulien Dessaux2016-08-11 13:20:39 +0200
committerJulien Dessaux2016-08-11 19:46:59 +0200
commitcffeb8a3552d33e7e3de3fb6370881bfe6bcee9e (patch)
tree75552ded0d5d95770d03095065830b7b69b07087 /src/tcp.h
parentInitial commit (diff)
downloadb98-cffeb8a3552d33e7e3de3fb6370881bfe6bcee9e.tar.gz
b98-cffeb8a3552d33e7e3de3fb6370881bfe6bcee9e.tar.bz2
b98-cffeb8a3552d33e7e3de3fb6370881bfe6bcee9e.zip
Working bot answering PING, and its C wrapper.
Diffstat (limited to 'src/tcp.h')
-rw-r--r--src/tcp.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tcp.h b/src/tcp.h
new file mode 100644
index 0000000..248f941
--- /dev/null
+++ b/src/tcp.h
@@ -0,0 +1,8 @@
+#ifndef _TCP_H_
+#define _TCP_H_
+
+int hostname_to_ip(const char* const hostname, char *ip);
+int tcp_connect(const char* const host, const int port);
+void tcp_close(const int sd);
+
+#endif