The sample C client program files include the following:
Producer.c and Consumer.c, which illustrate how you send a message and receive it synchronously.
ProducerAsyncConsumer.c, which illustrates how you send a message and receive it asynchronously.
RequestReply.c, which illustrates how you send and respond to a message that specifies a reply-to destination.
Before you run any sample programs, you should start the broker. You can display output describing the command-line options for each program by starting the program with the -help option.
The directory that contains the sample programs also includes a README file that explains how you should run these samples. For example, the following command, runs the program Producer. It specifies that the program should connect to the broker running on the host MyHost and port 8585, and that it should send a message to the destination My Topic :
C: Producer -h MyHost -p 8585 -d MyTopic