[NUT-devel] max number of streams?

Rich Felker dalias at aerifal.cx
Tue Jan 23 22:37:18 CET 2007


On Tue, Jan 23, 2007 at 08:54:21AM +0100, Clemens Ladisch wrote:
> nut.txt doesn't specify a limit for the number of streams:
> | stream_count (v)
> |     number of streams in this file
> | ...
> | stream_id (v)
> |     Stream identifier
> |     stream_id MUST be < stream_count
> 
> but a stream id in the frame type table must be less than 250:
> | stream_id[frame_code] (v)
> |     if FLAG_STREAM_ID is not set then this is the stream number for the
> |     frame following this frame_code
> |     if FLAG_STREAM_ID is set then this value has no meaning
> |     MUST be <250
> 
> Does this imply that NUT files can have _any_ number of streams, but
> stream_id values of 250 or greater must be explicitly coded in frame
> headers?

yes that's the intent, iirc.

rich



More information about the NUT-devel mailing list