add pipeer selfinfo

git-svn-id: svn://db.shs.com.ru/pip@18 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
2015-03-12 10:28:46 +00:00
parent a8af3bb87f
commit 7832d82f93

View File

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