summaryrefslogtreecommitdiff
path: root/lib/socket.h
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2021-10-20 23:08:58 +0200
committerMaria Matejka <mq@ucw.cz>2021-11-22 19:05:43 +0100
commit6e841b3153565632b6753f6b1fe74850c37f2808 (patch)
tree2673e3718fec066c90a000c0ad216f62a4de3755 /lib/socket.h
parent94eb0858c2b938549d9d1703c872c6149901e7dd (diff)
Adding a generic cork mechanism for events
Diffstat (limited to 'lib/socket.h')
-rw-r--r--lib/socket.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/socket.h b/lib/socket.h
index 5bdab7f3..ff07660f 100644
--- a/lib/socket.h
+++ b/lib/socket.h
@@ -57,6 +57,7 @@ typedef struct birdsock {
uint fast_rx; /* RX has higher priority in event loop */
uint rbsize;
int (*rx_hook)(struct birdsock *, uint size); /* NULL=receiving turned off, returns 1 to clear rx buffer */
+ struct event_cork *cork; /* Cork to temporarily stop receiving data */
byte *tbuf, *tpos; /* NULL=allocate automatically */
byte *ttx; /* Internal */