mirror of
https://github.com/pion/webrtc.git
synced 2025-10-13 02:43:48 +08:00
19 lines
444 B
Go
19 lines
444 B
Go
package webrtc
|
|
|
|
import (
|
|
"net"
|
|
|
|
"github.com/pion/ice/v2"
|
|
"github.com/pion/logging"
|
|
)
|
|
|
|
// NewICETCPMux creates a new instance of ice.TCPMuxDefault. It enables use of
|
|
// passive ICE TCP candidates.
|
|
func NewICETCPMux(logger logging.LeveledLogger, listener net.Listener, readBufferSize int) ice.TCPMux {
|
|
return ice.NewTCPMuxDefault(ice.TCPMuxParams{
|
|
Listener: listener,
|
|
Logger: logger,
|
|
ReadBufferSize: readBufferSize,
|
|
})
|
|
}
|