]> git.meshlink.io Git - utcp/blobdiff - utcp_priv.h
Don't call the poll callback unnecessarily.
[utcp] / utcp_priv.h
index 1cf9e8743da561020be4165e533b553778798639..0b2efe4e1efd9c8e81b5981554f29b8a8bc8f6cd 100644 (file)
@@ -106,6 +106,7 @@ struct utcp_connection {
        uint32_t flags;
 
        bool reapable;
+       bool do_poll;
 
        // Callbacks
 
@@ -145,6 +146,7 @@ struct utcp_connection {
 
        // Buffers
 
+       uint32_t prev_free;
        struct buffer sndbuf;
        struct buffer rcvbuf;
        struct sack sacks[NSACKS];