diff options
Diffstat (limited to '')
-rw-r--r-- | src/libmdsclient/inbound.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libmdsclient/inbound.h b/src/libmdsclient/inbound.h index 158ca10..f0e3d20 100644 --- a/src/libmdsclient/inbound.h +++ b/src/libmdsclient/inbound.h @@ -56,11 +56,6 @@ typedef struct libmds_message size_t payload_size; /** - * How much of the payload that has been stored (internal data) - */ - size_t payload_ptr; - - /** * Internal buffer for the reading function (internal data) */ char* buffer; @@ -76,6 +71,11 @@ typedef struct libmds_message size_t buffer_ptr; /** + * The number of bytes read from `buffer` (internal data) + */ + size_t buffer_off; + + /** * 0 while reading headers, 1 while reading payload, and 2 when done (internal data) */ int stage; |