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
|
|
|
|
|
|
|
AwaitEarlyUpdate(keepalive time.Duration)
|
2020-11-25 19:35:31 +00:00
|
|
|
}
|