Add new bond control commands to CLI
This commit is contained in:
parent
8af4eff43e
commit
ecfac0601a
7 changed files with 395 additions and 42 deletions
|
@ -76,6 +76,12 @@ bool BondController::assignBondingPolicyToPeer(int64_t identity, const std::stri
|
|||
return false;
|
||||
}
|
||||
|
||||
SharedPtr<Bond> BondController::getBondByPeerId(int64_t identity)
|
||||
{
|
||||
Mutex::Lock _l(_bonds_m);
|
||||
return _bonds.count(identity) ? _bonds[identity] : SharedPtr<Bond>();
|
||||
}
|
||||
|
||||
SharedPtr<Bond> BondController::createTransportTriggeredBond(const RuntimeEnvironment *renv, const SharedPtr<Peer>& peer)
|
||||
{
|
||||
Mutex::Lock _l(_bonds_m);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue