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

Method replaceRemoteCandidateCacheValues

candidate_base.go:311–320  ·  view source on GitHub ↗
(oldRemote, newRemote Candidate)

Source from the content-addressed store, hash-verified

309}
310
311func (c *candidateBase) replaceRemoteCandidateCacheValues(oldRemote, newRemote Candidate) {
312 c.remoteCandidateCaches.Range(func(key, value any) bool {
313 candidate, ok := value.(Candidate)
314 if ok && candidate == oldRemote {
315 c.remoteCandidateCaches.Store(key, newRemote)
316 }
317
318 return true
319 })
320}
321
322func (c *candidateBase) handleInboundPacket(buf []byte, srcAddr net.Addr) {
323 agent := c.agent()

Callers

nothing calls this directly

Calls 1

StoreMethod · 0.80

Tested by

no test coverage detected