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/tls.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/tls.h (limited to 'src/tls.h') diff --git a/src/tls.h b/src/tls.h new file mode 100644 index 0000000..ff7998d --- /dev/null +++ b/src/tls.h @@ -0,0 +1,13 @@ +#ifndef _TLS_H_ +#define _TLS_H_ + +#include + +void tls_init(void); +int tls_connect(const char* const host, const unsigned short port); +int tls_read(int (*input_handler_callback)(const char* const sbuf, const int len)); +void tls_send(char *buf, int len); +void tls_close(void); +void tls_clean(void); + +#endif -- cgit v1.2.3