commit | 2223b1c28973344f50e87b955ff39115add0a12c | [log] [tgz] |
---|---|---|
author | Jonnxu <jonnxu@163.com> | Fri Jan 25 09:22:40 2019 +0800 |
committer | dinglei <libya_003@163.com> | Fri Jan 25 09:22:40 2019 +0800 |
tree | 300b37f63c9e8d527d65417ce4c045f3e8a230c5 | |
parent | 990c3f259f89b37ed54e7804b6a8fbd0f701b854 [diff] |
Add send body content (#76)
diff --git a/example/Producer.c b/example/Producer.c index 97fe6ed..cfffd77 100644 --- a/example/Producer.c +++ b/example/Producer.c
@@ -44,6 +44,7 @@ CSendResult result; for (i = 0; i < 10; i++) { memset(body, 0, sizeof(body)); + snprintf(body, sizeof(body), "new message body, index %d", i); SetMessageBody(msg, body); SendMessageSync(producer, msg, &result); printf("send message[%d] result status:%d, msgId:%s\n", i, (int)result.sendStatus, result.msgId);