diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-30 13:17:39 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-30 13:17:39 +0100 |
| commit | cbf4b60df6c6c8c7208dc29708677d24b2724deb (patch) | |
| tree | 8b4cec720c1fe6464309b1de6ba441fc4e2191c3 /ot_http.h | |
| parent | 4b1264cb26a481faf8448322ebb19b8993ae6aaf (diff) | |
Enforce the invariant that each socket is only ever expected to be read from or written to, never both
Diffstat (limited to 'ot_http.h')
| -rw-r--r-- | ot_http.h | 5 |
1 files changed, 2 insertions, 3 deletions
| @@ -33,9 +33,8 @@ struct http_data { | |||
| 33 | STRUCT_HTTP_FLAG flag; | 33 | STRUCT_HTTP_FLAG flag; |
| 34 | }; | 34 | }; |
| 35 | 35 | ||
| 36 | /* Add to or drop from what this connection is waiting to be told about */ | 36 | /* What this connection is waiting for: EVENT_IN, EVENT_OUT, or nothing */ |
| 37 | void http_interest_add(const int64_t s, struct http_data *cookie, int what); | 37 | void http_interest_set(const int64_t s, struct http_data *cookie, int what); |
| 38 | void http_interest_drop(const int64_t s, struct http_data *cookie, int what); | ||
| 39 | 38 | ||
| 40 | /* Close a connection and release everything that belongs to it */ | 39 | /* Close a connection and release everything that belongs to it */ |
| 41 | void http_close(const int64_t s); | 40 | void http_close(const int64_t s); |
