From d1ac67f6d73f24a165ccc008440bb8b208ae140f Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Mon, 16 May 2022 15:53:39 +0200 Subject: Decouple IO openssl's BIO abstraction and split connection and tls handling to allow for other TLS libs --- vchat-connection.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 vchat-connection.h (limited to 'vchat-connection.h') diff --git a/vchat-connection.h b/vchat-connection.h new file mode 100644 index 0000000..140e467 --- /dev/null +++ b/vchat-connection.h @@ -0,0 +1,9 @@ +#pragma once + +#include + +int vc_connect(const char *host, const char *port); +void vc_sendmessage(const char *message); +ssize_t vc_receivemessage(char *buffer, size_t size); +int vc_poll(); +void vc_disconnect(); -- cgit v1.2.3