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

Method addRemoteCandidateCache

candidate_base.go:304–309  ·  view source on GitHub ↗
(candidate Candidate, srcAddr net.Addr)

Source from the content-addressed store, hash-verified

302}
303
304func (c *candidateBase) addRemoteCandidateCache(candidate Candidate, srcAddr net.Addr) {
305 if c.validateSTUNTrafficCache(srcAddr) {
306 return
307 }
308 c.remoteCandidateCaches.Store(toAddrPort(srcAddr), candidate)
309}
310
311func (c *candidateBase) replaceRemoteCandidateCacheValues(oldRemote, newRemote Candidate) {
312 c.remoteCandidateCaches.Range(func(key, value any) bool {

Callers 2

handleInboundPacketMethod · 0.95
TestHandlePeerReflexiveFunction · 0.80

Calls 3

toAddrPortFunction · 0.85
StoreMethod · 0.80

Tested by 1

TestHandlePeerReflexiveFunction · 0.64