From 9bf199a4770b08c03d553129757d960b605e598a Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期五, 14 五月 2021 18:05:21 +0800
Subject: [PATCH] add center info at fixed address in shm.

---
 src/socket.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/socket.h b/src/socket.h
index d69b8d4..8e9db69 100644
--- a/src/socket.h
+++ b/src/socket.h
@@ -49,11 +49,12 @@
 
 	ShmSocket(Shm &shm, const MQId id, const int len);
 	ShmSocket(Shm &shm, const bool create_or_else_find, const MQId id, const int len);
-	ShmSocket(Shm &shm, const int len = 12);
+	ShmSocket(int64_t offset, Shm &shm, const MQId id);
 	~ShmSocket();
 	static bool Remove(SharedMemory &shm, const MQId id) { return Queue::Remove(shm, id); }
 	bool Remove() { return Remove(shm(), id()); }
 	MQId id() const { return mq().Id(); }
+	int64_t AbsAddr() const { return mq().AbsAddr(); }
 	void SetNodeProc(const int proc_index, const int socket_index)
 	{
 		node_proc_index_ = proc_index;

--
Gitblit v1.8.0