summary refs log tree commit diff
path: root/bounce.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-10-23 17:49:24 -0400
committerJune McEnroe <june@causal.agency>2019-10-23 17:49:24 -0400
commit19cafa40a1ad37bf95d2b2464d203f2792449d48 (patch)
tree61f58410131c0bc108b1d1ea1cc373fa0e96b58e /bounce.h
parentSet clients non-blocking (diff)
downloadpounce-19cafa40a1ad37bf95d2b2464d203f2792449d48.tar.gz
pounce-19cafa40a1ad37bf95d2b2464d203f2792449d48.zip
Implement some amount of client connection
Diffstat (limited to '')
-rw-r--r--bounce.h8
1 files changed, 3 insertions, 5 deletions
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);