Add IceControllerEvent::ICE_CONTROLLER_RECHECK

This patch adds a new enum value in IceControllerEvent::Type,
that allows an IceController to request a recheck without
any of the predefined event occuring.

This patch is a NOP for BasicIceController.

BUG=webrtc:10647

Change-Id: Idf1d0946480437109ff272946679fef559ca7beb
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/161047
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Jonas Oreland <jonaso@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29976}
This commit is contained in:
Jonas Oreland
2019-12-03 09:59:11 +01:00
committed by Commit Bot
parent 464741276f
commit b5aa0a85f3
4 changed files with 25 additions and 16 deletions

View File

@ -44,10 +44,12 @@ std::string IceControllerEvent::ToString() const {
case SELECTED_CONNECTION_DESTROYED:
reason = "selected candidate pair destroyed";
break;
case ICE_CONTROLLER_RECHECK:
reason = "ice-controller-request-recheck";
break;
}
if (dampening_delay) {
reason += " (after switching dampening interval: " +
std::to_string(dampening_delay) + ")";
if (recheck_delay_ms) {
reason += " (after delay: " + std::to_string(recheck_delay_ms) + ")";
}
return reason;
}