From 12cde42c929b63a1ef1b2ad7f3482336419980b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Wed, 2 Feb 2022 09:29:10 +0800 Subject: Asynchronous connection Important updates: 1. Emscripten port. 2. HTTP request code copied from libicclient & slightly fixed. 3. Cookies, for maintaining authorisation between different async handles. --- rtclient/typedefs.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 rtclient/typedefs.h (limited to 'rtclient/typedefs.h') diff --git a/rtclient/typedefs.h b/rtclient/typedefs.h new file mode 100644 index 0000000..e15b1df --- /dev/null +++ b/rtclient/typedefs.h @@ -0,0 +1,18 @@ +#ifndef RTCLIENT_TYPEDEFS_H +#define RTCLIENT_TYPEDEFS_H + +#include +#ifdef __EMSCRIPTEN__ +#include +typedef emscripten_fetch_t rtclient_response; +#else +#include +typedef struct { + void *userData; + char *data; + size_t numBytes; + CURL *curl; +} rtclient_response; +#endif + +#endif -- cgit v1.2.3