add pipeer selfinfo
git-svn-id: svn://db.shs.com.ru/pip@18 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -114,6 +114,7 @@ public:
|
|||||||
bool isPeerExists(const PIString & name) const {return getPeerByName(name) != 0;}
|
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 * 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 lock() {mc_mutex.lock();}
|
||||||
void unlock() {mc_mutex.unlock();}
|
void unlock() {mc_mutex.unlock();}
|
||||||
|
|||||||
Reference in New Issue
Block a user