X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=client.h;fp=client.h;h=f1d14e65cf2cbc321770d069aeed8f93fc087f94;hp=ed04bc02f888f85572364d1b363a7ce01b59175a;hb=019d476c729a6c1b6ac001e345d44339ba423221;hpb=1135808bf9df44b879994e6dac07a31eb78c2fdb diff --git a/client.h b/client.h index ed04bc0..f1d14e6 100644 --- a/client.h +++ b/client.h @@ -87,6 +87,10 @@ struct Client { // these negative values will be translated to real numbers. size_t stream_pos = 0; + // Position at which to end the stream (one-past-the-end, used for fragments). + // -1 means never to end; this is the common case. + size_t stream_pos_end = 0; + // Number of bytes we've sent of data. Only relevant for SENDING_DATA. size_t bytes_sent = 0;