From cffeb8a3552d33e7e3de3fb6370881bfe6bcee9e Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 11 Aug 2016 13:20:39 +0200 Subject: Working bot answering PING, and its C wrapper. --- src/tcp.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/tcp.h (limited to 'src/tcp.h') 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 -- cgit v1.2.3