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

Function WithNet

agent_options.go:515–525  ·  view source on GitHub ↗

WithNet sets the underlying network implementation for the agent.

(net transport.Net)

Source from the content-addressed store, hash-verified

513
514// WithNet sets the underlying network implementation for the agent.
515func WithNet(net transport.Net) AgentOption {
516 return func(a *Agent) error {
517 if a.constructed {
518 return ErrAgentOptionNotUpdatable
519 }
520
521 a.net = net
522
523 return nil
524 }
525}
526
527// WithMulticastDNSMode configures mDNS behavior for the agent.
528func WithMulticastDNSMode(mode MulticastDNSMode) AgentOption {

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…