From cab831748a2a9cc18b7f18f3b5e14a4374b7ab68 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期一, 17 五月 2021 18:34:26 +0800
Subject: [PATCH] socket send using abs addr, avoid shm find by id.

---
 box/center.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/box/center.h b/box/center.h
index d68573b..ebe48b4 100644
--- a/box/center.h
+++ b/box/center.h
@@ -31,7 +31,7 @@
 	typedef Socket::PartialRecvCB MsgHandler;
 	typedef Socket::RawRecvCB RawHandler;
 	typedef Socket::IdleCB IdleHandler;
-	static bool Install(const std::string &name, MsgHandler handler, RawHandler raw_handler, IdleHandler idle, const MQId mqid, const int mq_len);
+	static bool Install(const std::string &name, MsgHandler handler, RawHandler raw_handler, IdleHandler idle, const MQInfo &mq, const int mq_len);
 
 	BHCenter(Socket::Shm &shm);
 	~BHCenter() { Stop(); }
@@ -44,7 +44,7 @@
 		MsgHandler handler_;
 		RawHandler raw_handler_;
 		IdleHandler idle_;
-		MQId mqid_;
+		MQInfo mq_;
 		int mq_len_ = 0;
 	};
 	typedef std::map<std::string, CenterInfo> CenterRecords;

--
Gitblit v1.8.0