mirror of
https://github.com/pion/webrtc.git
synced 2025-10-05 15:16:52 +08:00
Add SetDTLSConnectionState
Allow a DTLS Connection to be resumed from DTLS ConnectionState
This commit is contained in:
@@ -60,6 +60,7 @@ type SettingEngine struct {
|
||||
insecureSkipHelloVerify bool
|
||||
retransmissionInterval time.Duration
|
||||
ellipticCurves []dtlsElliptic.Curve
|
||||
connectionState *dtls.State
|
||||
}
|
||||
sctp struct {
|
||||
maxReceiveBufferSize uint32
|
||||
@@ -370,3 +371,7 @@ func (e *SettingEngine) SetDTLSEllipticCurves(ellipticCurves ...dtlsElliptic.Cur
|
||||
func (e *SettingEngine) SetSCTPMaxReceiveBufferSize(maxReceiveBufferSize uint32) {
|
||||
e.sctp.maxReceiveBufferSize = maxReceiveBufferSize
|
||||
}
|
||||
|
||||
func (e *SettingEngine) SetDTLSConnectionState(connectionState *dtls.State) {
|
||||
e.dtls.connectionState = connectionState
|
||||
}
|
||||
|
Reference in New Issue
Block a user