From 3788226ee9332945e90066b58f2b85026c2a0460 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期二, 18 五月 2021 10:56:32 +0800
Subject: [PATCH] change node init, no shm lock any more.

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

diff --git a/box/center.h b/box/center.h
index aea0897..ebe48b4 100644
--- a/box/center.h
+++ b/box/center.h
@@ -29,12 +29,11 @@
 
 public:
 	typedef Socket::PartialRecvCB MsgHandler;
+	typedef Socket::RawRecvCB RawHandler;
 	typedef Socket::IdleCB IdleHandler;
-	static bool Install(const std::string &name, MsgHandler handler, IdleHandler idle, const std::string &mqid, const int mq_len);
-	static bool Install(const std::string &name, MsgHandler 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();
 	~BHCenter() { Stop(); }
 	bool Start();
 	bool Stop();
@@ -43,8 +42,9 @@
 	struct CenterInfo {
 		std::string name_;
 		MsgHandler handler_;
+		RawHandler raw_handler_;
 		IdleHandler idle_;
-		std::string mqid_;
+		MQInfo mq_;
 		int mq_len_ = 0;
 	};
 	typedef std::map<std::string, CenterInfo> CenterRecords;

--
Gitblit v1.8.0