dissertation-2-code/udp/congestion.go
Jake Hillion ff4ce07b05
All checks were successful
continuous-integration/drone/push Build is passing
functional udp
2020-11-27 20:17:59 +00:00

18 lines
247 B
Go

package udp
import "time"
type Congestion interface {
Sequence() uint32
ReceivedPacket(seq uint32)
ReceivedAck(uint32)
NextAck() uint32
ReceivedNack(uint32)
NextNack() uint32
AwaitEarlyUpdate(keepalive time.Duration) uint32
Reset()
}