mirror of
https://github.com/pion/webrtc.git
synced 2025-09-27 03:25:58 +08:00
@@ -54,6 +54,9 @@ type SettingEngine struct {
|
||||
dtls struct {
|
||||
retransmissionInterval time.Duration
|
||||
}
|
||||
sctp struct {
|
||||
maxReceiveBufferSize uint32
|
||||
}
|
||||
sdpMediaLevelFingerprints bool
|
||||
answeringDTLSRole DTLSRole
|
||||
disableCertificateFingerprintVerification bool
|
||||
@@ -304,3 +307,9 @@ func (e *SettingEngine) SetReceiveMTU(receiveMTU uint) {
|
||||
func (e *SettingEngine) SetDTLSRetransmissionInterval(interval time.Duration) {
|
||||
e.dtls.retransmissionInterval = interval
|
||||
}
|
||||
|
||||
// SetSCTPMaxReceiveBufferSize sets the maximum receive buffer size.
|
||||
// Leave this 0 for the default maxReceiveBufferSize.
|
||||
func (e *SettingEngine) SetSCTPMaxReceiveBufferSize(maxReceiveBufferSize uint32) {
|
||||
e.sctp.maxReceiveBufferSize = maxReceiveBufferSize
|
||||
}
|
||||
|
Reference in New Issue
Block a user