Querying message data

The primary method of retrieving data from a message is the msgget command. By default, it returns the entire contents of the message.

For example:

Input: msgget message6
Output: some protocol reply data

Specify an offset to skip that many characters.

For example:

Input: msgget message6 5
Output: protocol reply data

Input: msgget message6 5 end
Output: protocol reply data

Use a length value to limit the retrieval.

For example:

Input: msgget message6 5 8
Output: protocol