diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2022-05-16 15:53:39 +0200 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2022-05-16 15:53:39 +0200 |
| commit | d1ac67f6d73f24a165ccc008440bb8b208ae140f (patch) | |
| tree | 0da0184ec2273ffa6f642ab06e776fcdda9f4ac3 /vchat-connection.h | |
| parent | 43b74147212ddc5e619ac17dd1b5967b6b293d8a (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.h | 9 |
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 | |||
| 5 | int vc_connect(const char *host, const char *port); | ||
| 6 | void vc_sendmessage(const char *message); | ||
| 7 | ssize_t vc_receivemessage(char *buffer, size_t size); | ||
| 8 | int vc_poll(); | ||
| 9 | void vc_disconnect(); | ||
