From cc6224d6e7b3f451a3ee7ecfcc7a071552498388 Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期四, 15 四月 2021 10:11:16 +0800 Subject: [PATCH] use list<array> to avoid copy buffer. --- src/bh_api.cpp | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bh_api.cpp b/src/bh_api.cpp index 39e38d3..78b8a59 100644 --- a/src/bh_api.cpp +++ b/src/bh_api.cpp @@ -186,15 +186,14 @@ bool BHSendReply(void *src, const void *reply, - const int reply_len, - const int timeout_ms) + const int reply_len) { MsgRequestTopicReply rep; if (!rep.ParseFromArray(reply, reply_len)) { SetLastError(eInvalidInput, "invalid input."); return false; } - return ProcNode().ServerSendReply(src, rep, timeout_ms); + return ProcNode().ServerSendReply(src, rep); } int BHCleanUp() -- Gitblit v1.8.0