dissertation-2-code/udp/congestion.go
Jake Hillion fad829803a
Some checks failed
continuous-integration/drone/push Build is failing
initial context propagation
2021-03-30 20:57:53 +01:00

17 lines
279 B
Go

package udp
import (
"context"
"time"
)
type Congestion interface {
Sequence(ctx context.Context) (uint32, error)
NextAck() uint32
NextNack() uint32
ReceivedPacket(seq, nack, ack uint32)
AwaitEarlyUpdate(ctx context.Context, keepalive time.Duration) (uint32, error)
}