amqp_basic_properties_t props;
props._flags = AMQP_BASIC_CONTENT_TYPE_FLAG |
AMQP_BASIC_DELIVERY_MODE_FLAG | AMQP_BASIC_REPLY_TO_FLAG |
AMQP_BASIC_CORRELATION_ID_FLAG;
props.content_type = amqp_cstring_bytes("text/plain");
props.delivery_mode = 2; /* persistent delivery mode */
props.reply_to = amqp_bytes_malloc_dup(reply_to_queue);
if (props.reply_to.bytes == NULL) {
fprintf(stderr, "Out of memory while copying queue name");
return 1;
}
props.correlation_id = amqp_cstring_bytes("1");

2.
amqp_basic_properties_t props;
props._flags = AMQP_BASIC_CONTENT_TYPE_FLAG | AMQP_BASIC_DELIVERY_MODE_FLAG;
props.content_type = amqp_cstring_bytes("text/plain");
props.delivery_mode = 2; /* persistent delivery mode */

typedef struct amqp_basic_properties_t_ {
amqp_flags_t _flags; /**< bit-mask of set fields */
amqp_bytes_t content_type; /**< content-type */
amqp_bytes_t content_encoding; /**< content-encoding */
amqp_table_t headers; /**< headers */
uint8_t delivery_mode; /**< delivery-mode */
uint8_t priority; /**< priority */
amqp_bytes_t correlation_id; /**< correlation-id */
amqp_bytes_t reply_to; /**< reply-to */
amqp_bytes_t expiration; /**< expiration */
amqp_bytes_t message_id; /**< message-id */
uint64_t timestamp; /**< timestamp */
amqp_bytes_t type; /**< type */
amqp_bytes_t user_id; /**< user-id */
amqp_bytes_t app_id; /**< app-id */
amqp_bytes_t cluster_id; /**< cluster-id */
} amqp_basic_properties_t;

最新文章

  1. 【原】Github系列之三:开源iOS下 渐变颜色的进度条WGradientProgress
  2. [MVC学习笔记]5.使用Controller来代替Filter完成登录验证(Session校验)
  3. C:\Program Files (x86)\Common Files\microsoft shared\DevServer\10.0
  4. MySQL, 创建一个只读用户和一个所有权限用户
  5. 《Photon》
  6. WPF ,listbox,平滑滚动的2种方式。
  7. java 内存机制简介
  8. 聊聊Dataguard的三种保护模式实验(上)
  9. git强制覆盖本地文件
  10. SharedPreferences的基本用法
  11. MySQL 5.6.22 win32 zip版安装
  12. ceph增加osd流程
  13. iOS 测试驱动开发
  14. WebApi(五)-Swagger接口文档①简单集成
  15. new和malloc
  16. Hamming Problem(hdu3199)
  17. spark优化:spark.serializer修改序列化方式
  18. (原创)JAVA阻塞队列LinkedBlockingQueue 以及非阻塞队列ConcurrentLinkedQueue 的区别
  19. Java_单例模式
  20. Chapter 3 Phenomenon——10

热门文章

  1. JAVA学习笔记--ClassLoader
  2. Test 6.23 T1 扫雷
  3. 基于MaxCompute InformationSchema进行冷门表热门表访问分析
  4. 5,Vector
  5. c#Main()方法,java 是小写main
  6. JavaScript学习第一篇
  7. [CSP-S模拟测试]:Travel(贪心+构造)
  8. scau 1142 巡逻的士兵(分治)
  9. toutiao url
  10. mysql_DCL_grant/revoke