basic ACK frame parsing

This commit is contained in:
Marten Seemann
2016-04-15 16:00:15 +07:00
parent 281706fda8
commit a5a7021fed
2 changed files with 86 additions and 7 deletions

View File

@@ -88,6 +88,13 @@ func (s *Session) HandlePacket(addr *net.UDPAddr, publicHeaderBinary []byte, pub
}
} else if typeByte&0xC0 == 0x40 { // ACK
fmt.Println("Detected ACK")
frame, err := ParseAckFrame(r, typeByte)
if err != nil {
return err
}
fmt.Printf("%#v\n", frame)
continue // not yet implemented
} else if typeByte&0xE0 == 0x20 { // CONGESTION_FEEDBACK
fmt.Println("Detected CONGESTION_FEEDBACK")