17 lines
231 B
Go
17 lines
231 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)
|
|
}
|