Sending a command message with the RFH structure
Figure 15 shows how the RFH structure (including the NameValueString) is appended to the Message Descriptor to send
a message to a broker. In this case, the message is to register a subscriber
to the topic "IBM(R) Stock Price". Part of the message descriptor is shown, together with
the message data that consists of the RFH structure. Pad the NameValueString
to a multiple of four bytes.
Details of the name/value pairs for all the command messages are given
in Publish/Subscribe command messages.
Figure 15. Message descriptor and RFH structure. The message descriptor
indicates that the subscriber has nominated its subscriber queue to be the
same as its reply queue. It also defines the encoding and CCSID of the RFH
structure, which follows as the message data. The encoding and CCSID fields
in the RFH structure are not set, because there is no data following the RFH
structure (compare with Figure 16). Note that the length of the
RFH structure includes the NameValueString (which contains the name/value
pairs defining the Register Subscriber command). The topic string is quoted
because it contains significant blanks.