dissertation-2-code/udp/congestion.go

18 lines
247 B
Go
Raw Normal View History

2020-11-25 19:35:31 +00:00
package udp
2020-11-26 22:10:37 +00:00
import "time"
2020-11-25 19:35:31 +00:00
type Congestion interface {
2020-11-26 18:55:29 +00:00
Sequence() uint32
ReceivedPacket(seq uint32)
2020-11-25 19:35:31 +00:00
2020-11-26 18:55:29 +00:00
ReceivedAck(uint32)
NextAck() uint32
2020-11-25 19:35:31 +00:00
2020-11-26 18:55:29 +00:00
ReceivedNack(uint32)
NextNack() uint32
2020-11-26 22:10:37 +00:00
2020-11-27 17:31:32 +00:00
AwaitEarlyUpdate(keepalive time.Duration) uint32
Reset()
2020-11-25 19:35:31 +00:00
}