* Should be called after an authenticated data packet is received. */
()
| 143 | |
| 144 | /* Should be called after an authenticated data packet is received. */ |
| 145 | func (peer *Peer) timersDataReceived() { |
| 146 | if peer.timersActive() { |
| 147 | if !peer.timers.sendKeepalive.IsPending() { |
| 148 | peer.timers.sendKeepalive.Mod(KeepaliveTimeout) |
| 149 | } else { |
| 150 | peer.timers.needAnotherKeepalive.Store(true) |
| 151 | } |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | /* Should be called after any type of authenticated packet is sent -- keepalive, data, or handshake. */ |
| 156 | func (peer *Peer) timersAnyAuthenticatedPacketSent() { |
no test coverage detected