1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 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; }