This topic describes the sample code for sending and receiving messages by using the Apache RocketMQ SDK for C++.
Message type | Sample code for sending messages | Sample code for subscribing to messages | |
---|---|---|---|
PushConsumer | SimpleConsumer | ||
Normal messages |
| ExamplePushConsumer.cpp | ExampleSimpleConsumer.cpp |
Ordered messages | ExampleProducerWithFifoMessage.cpp | ||
Scheduled and delayed messages | ExampleProducerWithTimedMessage.cpp | ||
Transactional messages | ExampleProducerWithTransactionalMessage.cpp |