diff options
Diffstat (limited to 'vendor/github.com/pion/webrtc/v3/icetcp.go')
-rw-r--r-- | vendor/github.com/pion/webrtc/v3/icetcp.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/vendor/github.com/pion/webrtc/v3/icetcp.go b/vendor/github.com/pion/webrtc/v3/icetcp.go new file mode 100644 index 0000000..a5f1d09 --- /dev/null +++ b/vendor/github.com/pion/webrtc/v3/icetcp.go @@ -0,0 +1,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, + }) +} |