Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeHost = "host" TypeServerReflexive = "srflx" TypePeerReflexive = "prflx" TypeRelay = "relay" )
View Source
const ( AttrPriority = uint16(0x0024) AttrUseCandidate = uint16(0x0025) AttrIceControlled = uint16(0x8029) AttrIceControlling = uint16(0x802a) )
STUN attributes introduced by the RFC 5245 Section 19.1
View Source
const (
CodeRoleConflict = 487
)
STUN errors codes introduced by the RFC 5245 Section 19.2
Variables ¶
View Source
var DefaultConfig = &Config{}
Functions ¶
func ErrorText ¶
ErrorText returns a reason phrase text for the STUN error code. It returns the empty string if the code is unknown.
func GetAttributeCodec ¶
GetAttributeCodec returns a STUN attribute codec for TURN.
func GetAttributeName ¶
GetAttributeName returns a STUN attribute name. It returns the empty string if the attribute is unknown.
Types ¶
type Candidate ¶
type Candidate struct { Type string Transport string Address *stun.Addr BaseAddr *stun.Addr Priority uint32 Foundation int }
func NewLocalCandidates ¶
Click to show internal directories.
Click to hide internal directories.