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

Method replaceRemoteInLocalCaches

agent.go:1225–1231  ·  view source on GitHub ↗
(oldRemote, newRemote Candidate)

Source from the content-addressed store, hash-verified

1223}
1224
1225func (a *Agent) replaceRemoteInLocalCaches(oldRemote, newRemote Candidate) {
1226 for _, locals := range a.localCandidates {
1227 for _, local := range locals {
1228 local.replaceRemoteCandidateCacheValues(oldRemote, newRemote)
1229 }
1230 }
1231}
1232
1233// replaceRedundantPeerReflexiveCandidates removes any peer-reflexive candidates
1234// from the given set that have the same transport address as cand.

Tested by

no test coverage detected