From 7832d82f93b031e3649ddd4c3b71937f1f10d5b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Thu, 12 Mar 2015 10:28:46 +0000 Subject: [PATCH] add pipeer selfinfo git-svn-id: svn://db.shs.com.ru/pip@18 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src/io/pipeer.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/io/pipeer.h b/src/io/pipeer.h index cd372415..3b0580e6 100755 --- a/src/io/pipeer.h +++ b/src/io/pipeer.h @@ -114,6 +114,7 @@ public: bool isPeerExists(const PIString & name) const {return getPeerByName(name) != 0;} const PeerInfo * getPeerByName(const PIString & name) const {piForeachC (PeerInfo & i, peers) if (i.name == name) return &i; return 0;} + const PeerInfo & selfInfo() {return self_info;} void lock() {mc_mutex.lock();} void unlock() {mc_mutex.unlock();}