From cbf4b60df6c6c8c7208dc29708677d24b2724deb Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Fri, 30 Oct 2026 13:17:39 +0100 Subject: Enforce the invariant that each socket is only ever expected to be read from or written to, never both --- ot_http.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ot_http.h') diff --git a/ot_http.h b/ot_http.h index 0f351c1..ba16de4 100644 --- a/ot_http.h +++ b/ot_http.h @@ -33,9 +33,8 @@ struct http_data { STRUCT_HTTP_FLAG flag; }; -/* Add to or drop from what this connection is waiting to be told about */ -void http_interest_add(const int64_t s, struct http_data *cookie, int what); -void http_interest_drop(const int64_t s, struct http_data *cookie, int what); +/* What this connection is waiting for: EVENT_IN, EVENT_OUT, or nothing */ +void http_interest_set(const int64_t s, struct http_data *cookie, int what); /* Close a connection and release everything that belongs to it */ void http_close(const int64_t s); -- cgit v1.3