This topic describes the sample code for sending and receiving messages by using the Apache RocketMQ SDK for C++.

Message typeSample code for sending messagesSample code for subscribing to messages
PushConsumerSimpleConsumer
Normal messagesExamplePushConsumer.cppExampleSimpleConsumer.cpp
Ordered messagesExampleProducerWithFifoMessage.cpp
Scheduled and delayed messagesExampleProducerWithTimedMessage.cpp
Transactional messagesExampleProducerWithTransactionalMessage.cpp