summaryrefslogtreecommitdiff
path: root/ot_fdstate.h
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-10-30 23:11:41 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-10-30 23:11:41 +0100
commit15f9f81b5a8398fefca023e90d8d1c168ecef620 (patch)
tree5661bcf9e01ea89784de285ae27312a1e752167d /ot_fdstate.h
parent36e396fd30bf098fa2459f11f4dd4430f7a8396e (diff)
Introduce a fast path assuming that a tcp connection's payload already has arrived at accept time
Diffstat (limited to 'ot_fdstate.h')
-rw-r--r--ot_fdstate.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ot_fdstate.h b/ot_fdstate.h
index c09f018..93890d1 100644
--- a/ot_fdstate.h
+++ b/ot_fdstate.h
@@ -56,6 +56,9 @@ int fdstate_next_expired(ot_time now, int *cursor);
56 56
57/* Both only valid while the caller holds the descriptor. */ 57/* Both only valid while the caller holds the descriptor. */
58void *fdstate_cookie(int fd); 58void *fdstate_cookie(int fd);
59
60/* Hand the slot a different cookie, for a connection whose state has moved */
61void fdstate_set_cookie(int fd, void *cookie);
59void fdstate_set_expiry(int fd, ot_time expiry); 62void fdstate_set_expiry(int fd, ot_time expiry);
60 63
61#endif 64#endif