From db322f33ba13592f2492317e3f1a070454c97059 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期四, 13 五月 2021 19:34:46 +0800
Subject: [PATCH] center alloc all msgs.

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

diff --git a/box/center.h b/box/center.h
index 4d71bc9..d68573b 100644
--- a/box/center.h
+++ b/box/center.h
@@ -29,10 +29,9 @@
 
 public:
 	typedef Socket::PartialRecvCB MsgHandler;
-	typedef Socket::RawRecvCB MsgIHandler;
+	typedef Socket::RawRecvCB RawHandler;
 	typedef Socket::IdleCB IdleHandler;
-	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, MsgIHandler 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 MQId mqid, const int mq_len);
 
 	BHCenter(Socket::Shm &shm);
 	~BHCenter() { Stop(); }
@@ -43,7 +42,7 @@
 	struct CenterInfo {
 		std::string name_;
 		MsgHandler handler_;
-		MsgIHandler raw_handler_;
+		RawHandler raw_handler_;
 		IdleHandler idle_;
 		MQId mqid_;
 		int mq_len_ = 0;

--
Gitblit v1.8.0