mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-05 13:17:36 +03:00
add version number to Frame.Write
This commit is contained in:
parent
a219b72968
commit
14b16a429c
21 changed files with 48 additions and 46 deletions
|
@ -70,7 +70,7 @@ func ParseStreamFrame(r *bytes.Reader) (*StreamFrame, error) {
|
|||
}
|
||||
|
||||
// WriteStreamFrame writes a stream frame.
|
||||
func (f *StreamFrame) Write(b *bytes.Buffer, packetNumber protocol.PacketNumber, packetNumberLen protocol.PacketNumberLen) error {
|
||||
func (f *StreamFrame) Write(b *bytes.Buffer, packetNumber protocol.PacketNumber, packetNumberLen protocol.PacketNumberLen, version protocol.VersionNumber) error {
|
||||
typeByte := uint8(0x80)
|
||||
if f.FinBit {
|
||||
typeByte ^= 0x40
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue