summaryrefslogtreecommitdiff
path: root/vchat-connection.h
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2022-05-16 15:53:39 +0200
committerDirk Engling <erdgeist@erdgeist.org>2022-05-16 15:53:39 +0200
commitd1ac67f6d73f24a165ccc008440bb8b208ae140f (patch)
tree0da0184ec2273ffa6f642ab06e776fcdda9f4ac3 /vchat-connection.h
parent43b74147212ddc5e619ac17dd1b5967b6b293d8a (diff)
Decouple IO openssl's BIO abstraction and split connection and tls handling to allow for other TLS libs
Diffstat (limited to 'vchat-connection.h')
-rw-r--r--vchat-connection.h9
1 files changed, 9 insertions, 0 deletions
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 @@
1#pragma once
2
3#include <stdint.h>
4
5int vc_connect(const char *host, const char *port);
6void vc_sendmessage(const char *message);
7ssize_t vc_receivemessage(char *buffer, size_t size);
8int vc_poll();
9void vc_disconnect();