Cloak/internal/multiplex/recvBuffer.go

16 lines
276 B
Go
Raw Normal View History

package multiplex
2020-04-09 17:56:17 +00:00
import (
"io"
"time"
)
type recvBuffer interface {
2020-04-08 13:59:09 +00:00
// Read calls' err must be nil | io.EOF | io.ErrShortBuffer
io.ReadCloser
2020-04-12 10:33:11 +00:00
io.WriterTo
Write(Frame) (toBeClosed bool, err error)
2020-04-09 17:56:17 +00:00
SetReadDeadline(time time.Time)
SetWriteToTimeout(d time.Duration)
}