DTLS retransmission interval setting

Add SetDTLSRetranmissionInterval setting to SettingEngine.

Add test for SetDTLSRetransmissionInterval
This commit is contained in:
boks1971
2022-02-06 10:35:26 +05:30
committed by Raja Subramanian
parent 8da9a678c5
commit 1846813609
3 changed files with 32 additions and 0 deletions

View File

@@ -51,6 +51,9 @@ type SettingEngine struct {
SRTP *uint
SRTCP *uint
}
dtls struct {
retransmissionInterval time.Duration
}
sdpMediaLevelFingerprints bool
answeringDTLSRole DTLSRole
disableCertificateFingerprintVerification bool
@@ -296,3 +299,8 @@ func (e *SettingEngine) DisableMediaEngineCopy(isDisabled bool) {
func (e *SettingEngine) SetReceiveMTU(receiveMTU uint) {
e.receiveMTU = receiveMTU
}
// SetDTLSRetransmissionInterval sets the retranmission interval for DTLS.
func (e *SettingEngine) SetDTLSRetransmissionInterval(interval time.Duration) {
e.dtls.retransmissionInterval = interval
}