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

Function copyCandidateActivity

agent.go:1132–1145  ·  view source on GitHub ↗
(dst, src Candidate)

Source from the content-addressed store, hash-verified

1130}
1131
1132func copyCandidateActivity(dst, src Candidate) {
1133 setter, ok := dst.(candidateActivitySetter)
1134 if !ok {
1135 return
1136 }
1137
1138 if lastReceived := src.LastReceived(); !lastReceived.IsZero() && dst.LastReceived().IsZero() {
1139 setter.setLastReceived(lastReceived)
1140 }
1141
1142 if lastSent := src.LastSent(); !lastSent.IsZero() && dst.LastSent().IsZero() {
1143 setter.setLastSent(lastSent)
1144 }
1145}
1146
1147func replacePairRemote(pair *CandidatePair, remote Candidate) *CandidatePair {
1148 replacement := newCandidatePair(pair.Local, remote, pair.iceRoleControlling)

Calls 4

LastReceivedMethod · 0.65
setLastReceivedMethod · 0.65
LastSentMethod · 0.65
setLastSentMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…