|
|
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| README.md | ||
| asiohandler.cpp | ||
| asiohandler.h | ||
| emit_log.cpp | ||
| emit_log_direct.cpp | ||
| emit_log_topic.cpp | ||
| new_task.cpp | ||
| receive.cpp | ||
| receive_logs.cpp | ||
| receive_logs_direct.cpp | ||
| receive_logs_topic.cpp | ||
| rpc_client.cpp | ||
| rpc_server.cpp | ||
| send.cpp | ||
| tools.h | ||
| worker.cpp | ||
README.md
C++ code for RabbitMQ tutorials
Requirements
- Boost Asio
- Boost Uuid
Code
send
receive
new_task "A very hard task which takes two seconds.."
worker
Tutorial three: Publish/Subscribe:
receive_logs
emit_log "info: This is the log message"
receive_logs_direct info
emit_log_direct info "The message"
receive_logs_topic "*.rabbit"
emit_log_topic red.rabbit Hello
rpc_server
rpc_client