struct muxed_header { unsigned char version; // =0x01 unsigned char channel; unsigned char type; // =2 unsigned char flags; // =0 unsigned int data_length; };
The channel
field contains the channel the data should be sent on (1..255). The data_length
field contains the length of the data that will immediately follow the header in the output TCP stream. Note that channel 1 is used by the logserver for sending the standard logging text.
While the version
must be 1 for this format, the type
is somewhat up to the user. It has no specific meaning at the moment. The same holds for the flags
, there are no flags defined now.