MCPcopy Create free account
hub / github.com/pion/ice / WithEnableUseCandidateCheckPriority

Function WithEnableUseCandidateCheckPriority

agent_options.go:801–811  ·  view source on GitHub ↗

WithEnableUseCandidateCheckPriority enables checking for equal or higher priority when switching selected candidate pair if the peer requests USE-CANDIDATE and agent is a lite agent. This is disabled by default, i.e. when peer requests USE-CANDIDATE, the selected pair will be switched to that irresp

()

Source from the content-addressed store, hash-verified

799//
800// agent, err := NewAgentWithOptions(WithEnableUseCandidateCheckPriority())
801func WithEnableUseCandidateCheckPriority() AgentOption {
802 return func(a *Agent) error {
803 if a.constructed {
804 return ErrAgentOptionNotUpdatable
805 }
806
807 a.enableUseCandidateCheckPriority = true
808
809 return nil
810 }
811}
812
813// WithContinualGatheringPolicy sets the continual gathering policy for the agent.
814// When set to GatherContinually, the agent will continuously monitor network interfaces

Callers 2

TestAgentUpdateOptionsFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestAgentUpdateOptionsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…