diff options
author | Julien Dessaux | 2016-08-11 13:20:39 +0200 |
---|---|---|
committer | Julien Dessaux | 2016-08-11 19:46:59 +0200 |
commit | cffeb8a3552d33e7e3de3fb6370881bfe6bcee9e (patch) | |
tree | 75552ded0d5d95770d03095065830b7b69b07087 /src/bot.c | |
parent | Initial commit (diff) | |
download | b98-cffeb8a3552d33e7e3de3fb6370881bfe6bcee9e.tar.gz b98-cffeb8a3552d33e7e3de3fb6370881bfe6bcee9e.tar.bz2 b98-cffeb8a3552d33e7e3de3fb6370881bfe6bcee9e.zip |
Working bot answering PING, and its C wrapper.
Diffstat (limited to '')
-rw-r--r-- | src/bot.c | 18 |
1 files changed, 18 insertions, 0 deletions
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; +} |