summaryrefslogtreecommitdiff
path: root/vendor/github.com/pion/webrtc/v3/icetcp.go
blob: a5f1d0942c6d34174c47b82288704e34b1f66283 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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,
	})
}