X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=utcp_priv.h;h=b9979539465a7ac7e5cbae1b9e5c3258fc8a445a;hb=619f181e8507d7195b5f855d9fb7922e956f8233;hp=184e3386bf00e8c3a3addabd1c39bd9086f5d40a;hpb=f60a19752749bf1d28031e78c46f8924325ffcdd;p=utcp diff --git a/utcp_priv.h b/utcp_priv.h index 184e338..b997953 100644 --- a/utcp_priv.h +++ b/utcp_priv.h @@ -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