From 19cafa40a1ad37bf95d2b2464d203f2792449d48 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Wed, 23 Oct 2019 17:49:24 -0400 Subject: Implement some amount of client connection --- bounce.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'bounce.h') diff --git a/bounce.h b/bounce.h index 491616b..0929da7 100644 --- a/bounce.h +++ b/bounce.h @@ -27,10 +27,6 @@ #define DEFAULT_PRIV_PATH "/usr/local/etc/letsencrypt/live/%s/privkey.pem" #endif -struct Client { - struct tls *tls; -}; - #define ARRAY_LEN(a) (sizeof(a) / sizeof(a[0])) enum { ParamCap = 15 }; @@ -73,6 +69,8 @@ void serverJoin(const char *join); void serverSend(const char *ptr, size_t len); void serverRecv(void); -struct Client *clientAlloc(void); +char *clientPass; +struct Client *clientAlloc(struct tls *tls); void clientFree(struct Client *client); +bool clientClose(const struct Client *client); void clientRecv(struct Client *client); -- cgit 1.4.1