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();}