The wire format of the muxed format

Each chunk of data sent to the network is prepended by an 8-byte header. The description of the header in C-syntax is as following:

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.


Generated on Wed Apr 11 06:40:52 2012 for Logging and output facility for DROPS by  doxygen 1.5.6