split the stream into a receive and a send stream

This commit is contained in:
Marten Seemann 2017-12-16 15:55:01 +07:00
parent c0eb12bb29
commit e926b0805a
12 changed files with 1942 additions and 1626 deletions

View file

@ -14,8 +14,8 @@ var _ = Describe("Stream", func() {
It("sets the read offset", func() {
str.SetReadOffset(0x42)
Expect(str.readOffset).To(Equal(protocol.ByteCount(0x42)))
Expect(str.frameQueue.readPosition).To(Equal(protocol.ByteCount(0x42)))
Expect(str.receiveStream.readOffset).To(Equal(protocol.ByteCount(0x42)))
Expect(str.receiveStream.frameQueue.readPosition).To(Equal(protocol.ByteCount(0x42)))
})
It("says if it has data for writing", func() {