]> git.meshlink.io Git - utcp/blobdiff - utcp_priv.h
Don't call abort() in retransmit().
[utcp] / utcp_priv.h
index 184e3386bf00e8c3a3addabd1c39bd9086f5d40a..b9979539465a7ac7e5cbae1b9e5c3258fc8a445a 100644 (file)
@@ -71,6 +71,13 @@ static const char *strstate[] __attribute__((unused)) = {
        [TIME_WAIT] = "TIME_WAIT"
 };
 
+struct buffer {
+       char *data;
+       uint32_t used;
+       uint32_t size;
+       uint32_t maxsize;
+};
+
 struct utcp_connection {
        void *priv;
        struct utcp *utcp;
@@ -80,6 +87,7 @@ struct utcp_connection {
        // Callbacks
 
        utcp_recv_t recv;
+       utcp_poll_t poll;
 
        // TCP State
 
@@ -112,10 +120,7 @@ struct utcp_connection {
 
        // Send buffer
 
-       char *sndbuf;
-       uint32_t sndbufused;
-       uint32_t sndbufsize;
-       uint32_t maxsndbufsize;
+       struct buffer sndbuf;
 
        // Per-socket options