Files
webrtc/quicrole.go
Michael MacDonald 64eecd6d39 Disable quic by default; enable with build tag
Taking a more extreme approach than #588... This patch
disables quic by default. The advantage here would be
that webrtc builds with older versions of go than
quic-go supports (currently 1.12+).
2019-04-05 15:32:40 -04:00

33 lines
677 B
Go

// +build quic
package webrtc
// QUICRole indicates the role of the Quic transport.
type QUICRole byte
const (
// QUICRoleAuto defines the Quic role is determined based on
// the resolved ICE role: the ICE controlled role acts as the Quic
// client and the ICE controlling role acts as the Quic server.
QUICRoleAuto QUICRole = iota + 1
// QUICRoleClient defines the Quic client role.
QUICRoleClient
// QUICRoleServer defines the Quic server role.
QUICRoleServer
)
func (r QUICRole) String() string {
switch r {
case QUICRoleAuto:
return "auto"
case QUICRoleClient:
return "client"
case QUICRoleServer:
return "server"
default:
return unknownStr
}
}