MCPcopy Create free account
hub / github.com/encodeous/nylon / timersDataSent

Method timersDataSent

polyamide/device/timers.go:138–142  ·  view source on GitHub ↗

* Should be called after an authenticated data packet is sent. */

()

Source from the content-addressed store, hash-verified

136
137/* Should be called after an authenticated data packet is sent. */
138func (peer *Peer) timersDataSent() {
139 if peer.timersActive() && !peer.timers.newHandshake.IsPending() {
140 peer.timers.newHandshake.Mod(KeepaliveTimeout + RekeyTimeout + time.Millisecond*time.Duration(fastrandn(RekeyTimeoutJitterMaxMs)))
141 }
142}
143
144/* Should be called after an authenticated data packet is received. */
145func (peer *Peer) timersDataReceived() {

Callers 1

Calls 4

timersActiveMethod · 0.95
fastrandnFunction · 0.85
IsPendingMethod · 0.80
ModMethod · 0.80

Tested by

no test coverage detected