+#include "proxy.h"
+
+#ifndef MIN
+static ssize_t MIN(ssize_t x, ssize_t y) {
+ return x < y ? x : y;
+}
+#endif
+
+bool send_meta_sptps(void *handle, uint8_t type, const void *buffer, size_t length) {
+ (void)type;
+ connection_t *c = handle;
+
+ if(!c) {
+ logger(DEBUG_ALWAYS, LOG_ERR, "send_meta_sptps() called with NULL pointer!");
+ abort();
+ }
+
+ buffer_add(&c->outbuf, buffer, length);
+ io_set(&c->io, IO_READ | IO_WRITE);
+
+ return true;
+}
+
+bool send_meta(connection_t *c, const void *buffer, size_t length) {
+ if(!c) {
+ logger(DEBUG_ALWAYS, LOG_ERR, "send_meta() called with NULL pointer!");
+ abort();
+ }