X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=utcp_priv.h;h=b9979539465a7ac7e5cbae1b9e5c3258fc8a445a;hb=aef3cad25ea81f727608689ef97fce9e0dbe5285;hp=d8f65546dcd810f9d6fe33259dbda4578e5a89b9;hpb=f4c52312544ee99bcce46ebcfc0c8e6ac6356fd5;p=utcp diff --git a/utcp_priv.h b/utcp_priv.h index d8f6554..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,9 +120,7 @@ struct utcp_connection { // Send buffer - char *sndbuf; - uint32_t sndbufsize; - uint32_t maxsndbufsize; + struct buffer sndbuf; // Per-socket options