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/bot.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/bot.c (limited to 'src/bot.c') diff --git a/src/bot.c b/src/bot.c new file mode 100644 index 0000000..f18e8a1 --- /dev/null +++ b/src/bot.c @@ -0,0 +1,18 @@ +#include "b98.h" +#include "config.h" +#include "tls.h" + +int main() +{ + int err = bot_init(); + if (err) + return err; + + tls_init(); + int socket_fd = tls_connect(HOST, PORT); + + bot_loop(socket_fd); + + tls_clean(); + return 0; +} -- cgit v1.2.3